NUT server and UPS general question
-
@netboy Probably last question....
I want to shutdown everything attached to ups in netgate only when "battery low" in ups - How do I configure this functionality
-
@netboy said in NUT server and UPS general question:
I want to shutdown everything attached to ups in netgate only when "battery low" in ups - How do I configure this functionality
Well, you are in luck... that is the default behavior of NUT.
Anything else connected to the UPS that is capable of running NUT would monitor the master on pfSense just like the setup you did for the pi, with the exception being that they would use power value 1 rather than power value 0. Like so:
MONITOR ups@192.168.0.1 1 monuser secret slave
All the hosts will shut down when the UPS declares a low battery situation. You can read more here.
-
-
@netboy Since synology also uses NUT I am struggling to MONITOR the same using raspberry pi..... Created a user in
/usr/syno/etc/ups/upsd.users
[monslave]
password = xxxxxx
upsmon slaveOpened port 3493
Included entries in pi upsmon.conf :
MONITOR ups@{syn IP} 0 monslave xxxxxx slaveand hosts.conf:
MONITOR ups@{syn IP} "Synology UPS"But get "access error"
Any suggestions....
-
@netboy Synology uses a hard-coded username/password for remote NUT access. You can either use their hard-coded values for monitoring (strongly recommended), or try to hand edit Synology's generated files. Note that if you go the hand-edit route, the files will overwritten by DSM whenever an OS update occurs and you will need to re-edit the files.
-
@dennypage I used the built in user and configured my raspberry pi upsmon.conf as follows
MONITOR ups@{syn IP} 1 monuser secret slave
[used 1 above ok?]Tried this as well [ 0 ] with same results.
MONITOR ups@{syn IP} 0 monuser secret slaveTried pinging from raspberry pi and get the access denied mesg:
root@raspberrypi:/home/piNUT# upsc ups@{syn IP}
Init SSL without certificate database
Error: Access denied -
@netboy Never mind was able to mine your forum and I found a post from you here
"egardless of the username/password, if you host on the Synology, you need explicitly list the IP address of pfSense in the list of permitted remote hosts in the Synology (Control Panel -> Hardware & Power -> UPS). This may have been why you were getting permission denied previously."
And now it works!
-
And now it works!
-
@dennypage I have to really thank you very much for such quick feedbacks in this forum. I have learned a lots from you and NUT documentation.
Here is my finale!
Need to drink scotch now....Bye
-
@netboy You’re welcome. Glad you got everything working.