Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Nut, APC ups, another way
« previous
next »
Print
Pages: [
1
]
Author
Topic: Nut, APC ups, another way (Read 4518 times)
aimdev
Full Member
Posts: 126
Karma: 5
Nut, APC ups, another way
«
on:
May 31, 2020, 08:09:35 am »
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?
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Nut, APC ups, another way
«
Reply #1 on:
May 31, 2020, 02:59:32 pm »
No, Update will not touch it
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
aimdev
Full Member
Posts: 126
Karma: 5
Re: Nut, APC ups, another way
«
Reply #2 on:
May 31, 2020, 07:11:12 pm »
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?
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Nut, APC ups, another way
«
Reply #3 on:
May 31, 2020, 10:30:50 pm »
Did you also installed collectd plugin?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
aimdev
Full Member
Posts: 126
Karma: 5
Re: Nut, APC ups, another way
«
Reply #4 on:
May 31, 2020, 10:57:52 pm »
I only installed the collectd plugin. (ie I did not use pkg on the command line)
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Nut, APC ups, another way
«
Reply #5 on:
June 01, 2020, 06:56:59 am »
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
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Nut, APC ups, another way