Never managed to get NUT working with my APC Backup UPS, so I did this
pkg install apcupsd
pkg install nano (easier to edit files)
edit /usr/local/etc/apcupsd/apcupsd.conf for your ups model
edit more /etc/rc.conf.d/apcupsd
apcupsd_enable="YES"
run apctest , select test alarm, listen for a beep.
service apcupsd start
service apcupsd status
Don't use an apcupsd from free bsd, it wont work, use the one from opnsense's repository.
Did the reboot test, still running, not sure if an update will remove any changes?
No, Update will not touch it
Hi
Thanks for that.
Now here is a bit of a mystery.
I setup collectd to send apsupsd information to my influxdb and grafana reporting system.
I added the relevant lines to /usr/local/etc/collectd.conf and got data into the database, along with the plot.
I rebooted opnsense, and when I checked /usr/local/etc/collectd.conf, the entries had been removed, but the data is still being received by influx and plotting is working.
Where did my additions go?
Did you also installed collectd plugin?
I only installed the collectd plugin. (ie I did not use pkg on the command line)
If you install the plugin, it will install the package and the UI around. If you also "enable" the plugin, it will always overwrite your config. So, you can either deinstall the plugin (os-collectd) and keep only the package, or disable the plugin