This is not an issue, but a question.
For years I have run NUT to share UPS status information with my HA, Proxmox, OPNsense, etc. devices. But I always struggle with the dance I have to do when replacing the APC UPS batteries, which goes like this:
- Try to run apctest, find out it is not installed
- Install apcupsd to get apctest, and apcupsd "helpfully" wipes out NUT install without me noticing
- Try to use apctest to update battery date but it complains it can't get access because apcupsd has the device
- Stop apcupsd
- Sucessfully use apctest to finally update battery date on the UPS
- Try to restart NUT "systemctl start nut-driver" only to be told it doesn't exist
- Reinstall NUT and spend an hour getting it happy again
- Repeat the above every few years, LOL
I really like your wrapper script. I am thinking it would avoid the messy middle of my steps with NUT and I can simply do steps 4 and 5.
Thoughts? I'm willing to give it a try and will report back.
This is not an issue, but a question.
For years I have run NUT to share UPS status information with my HA, Proxmox, OPNsense, etc. devices. But I always struggle with the dance I have to do when replacing the APC UPS batteries, which goes like this:
I really like your wrapper script. I am thinking it would avoid the messy middle of my steps with NUT and I can simply do steps 4 and 5.
Thoughts? I'm willing to give it a try and will report back.