...
Code Block |
---|
$ upsc qnapups@192.168.1.52 |
Troubleshooting
Installing NUT on Mac
Code Block |
---|
> brew install nut
==> Downloading https://ghcr.io/v2/homebrew/core/nut/manifests/2.8.1
######################################################################### 100.0%
==> Fetching nut
==> Downloading https://ghcr.io/v2/homebrew/core/nut/blobs/sha256:e89241f392bb9f
######################################################################### 100.0%
==> Pouring nut--2.8.1.arm64_sonoma.bottle.tar.gz
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall nut
==> Caveats
To start nut now and restart at login:
brew services start nut
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/nut/sbin/upsmon -D
==> Summary
🍺 /opt/homebrew/Cellar/nut/2.8.1: 94 files, 12MB
==> Running `brew cleanup nut`...
|
Didn't work.....
Troubleshooting
Problem | Details |
---|---|
UPS Shutting Down | Sometimes the UPS shutdown for no reason. No power outage. cat /var/log/syslog |grep ups Mar 16 02:09:28 pihole upsmon[390]: UPS qnapups@localhost on battery Unplugging the power and querying the UPS showed a charge of 0! > upsc qnapups@localhost |grep battery
|
Get NUT status | sudo service nut-server status |
Sometimes the UPS shutdown for no reason. No power outage.
cat /var/log/syslog |grep ups
Mar 16 02:09:28 pihole upsmon[390]: UPS qnapups@localhost on batteryMar 16 02:09:28 pihole upsd[381]: Client upsmon@127.0.0.1 set FSD on UPS [qnapups]
Mar 16 02:09:36 pihole upsmon[390]: Executing automatic power-fail shutdown
Mar 16 02:09:36 pihole upsmon[390]: Auto logout and shutdown proceeding
Mar 16 03:10:07 pihole kernel: [ 0.000000] ftrace: allocated 60 pages with 4 groups
Mar 16 03:10:07 pihole dbus-daemon[275]: [system] Activating systemd to hand-off: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.1' (uid=0 pid=252 comm="/usr/sbin/cupsd -l ")
Mar 16 03:10:10 pihole upsdrvctl[342]: Using subdriver: APC HID 0.96
Mar 16 03:10:10 pihole upsdrvctl[342]: Network UPS Tools - Generic HID driver 0.41 (2.7.4)
Mar 16 03:10:10 pihole upsdrvctl[342]: USB communication driver 0.33
Mar 16 03:10:10 pihole upsdrvctl[342]: Network UPS Tools - UPS driver controller 2.7.4
Mar 16 03:10:10 pihole usbhid-ups[368]: Startup successful
Mar 16 03:10:11 pihole upsd[374]: fopen /var/run/nut/upsd.pid: No such file or directory |
0.0 |
Mar 16 03:10:11 pihole upsd[374]: Connected to UPS [qnapups]: usbhid-ups-qnapups
.0.0 port 3493 |
11 pihole upsd[ |
Mar 16 03:10:14 pihole upsmon[389]: fopen /var/run/nut/upsmon.pid: No such file or directory
Mar 16 03:10:14 pihole upsmon[389]: UPS: qnapups@localhost (master) (power value 1)
374]: Connected to UPS [qnapups]: usbhid-ups-qnapups |
12 pihole |
upsd[ |
381]: Startup successful |
12 pihole systemd[1]: |
Started Network UPS Tools - power devices information server. |
upsd[ |
381]: User upsmon@127.0.0.1 logged into UPS [qnapups] |
09: |
26: |
09 pihole upsd[381]: User upsmon@127.0.0. |
1 logged into UPS [qnapups] |
Mar 16 03:10:14 pihole upsmon[392]: UPS qnapups@localhost battery is low
| |
Querying UPS | upsc qnapups@localhost
$ upsc qnapups@192.168.1.52
battery.charge: 100
battery.charge.low: 10
...
ups.vendorid: 051d |
References
Reference | URL |
---|---|
Network UPS Tools User Manual | https://networkupstools.org/docs/user-manual.chunked/index.html |
Configuration | https://networkupstools.org/docs/user-manual.chunked/ar01s06.html |
UPSMON Man Page | https://networkupstools.org/docs/man/upsmon.conf.html |
NUT Introduction to Network UPS Tools - Configuration Examples | http://rogerprice.org/NUT/ConfigExamples.A5.pdf |
Raspberry Pi Home Server v2: Network UPS Tools | https://melgrubb.com/2016/12/11/rphs-v2-ups/ |
...