APC UPS plugin for OPNsense
This plugin allows you to configure a APC UPS for use with OPNsense. The setup page allows you to set the most common options for connecting your UPS to your OPNsense server.
MANUAL INSTALLATION You will need the apcupsd package installed - currently version 3.14.14_4. ( Run "pkg install apcupsd" from a shell on your server. ) (done automatically when deployed as real opnsense plugin when migration is complete.)
This is the main settings page:
These are the advanced options available:
The status page shows you information about the connected UPS:
I use the OPNsense Monit service to control the running of the apcupsd service. The Monit service monitors the PID file of the apcupsd daemon, and restarts it should it fail.
The monit service can be configured like this:
INSTALLATION
MANUAL INSTALLATION This should make the apcupsd daemon appear in the Services widget on the dashboard. Also do a "chmod +x /usr/local/opnsense/scripts/OPNsense/Apcupsd/*.py" to allow script execution. (done automatically when deployed as real opnsense plugin when migration is complete.)
Until I can work out how to create an installable package, copy the files here to their locations on your server.