...
Code Block |
---|
$ upsc qnapups@192.168.1.52 |
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 Mar 16 03:10:11 pihole upsd[374]: fopen /var/run/nut/upsd.pid: No such file or directory
|
Querying UPS | upsc qnapups@localhost $ upsc qnapups@192.168.1.52 battery.charge: 100 battery.charge.low: 10 ... ups.vendorid: 051d |
...