i changed upsmon.conf:
Code: Select all
MONITOR ups@192.168.0.4 1 monuser secret slave
i tried:
http://www.mtom.cz/url/Linux/QNAP+a+NUT
but again it dies after reboot.
are there other configuration changes i need to make?
Code: Select all
MONITOR ups@192.168.0.4 1 monuser secret slave
Code: Select all
MONITOR qnapups@localhost 0 admin 123456 slave
Code: Select all
# Used by Qnap QTS to monitor this server
[admin]
password = 123456
upsmon slave
Code: Select all
#qnapups allows qnap machines to be slaves to this master
[qnapups]
driver = %%%the driver appropriate for your UPS%%%
port = %%%The port needed to connect to the real UPS using the driver you choose%%%
Hi,ewerber wrote: ↑Mon Feb 15, 2021 1:28 am Hi
I am running an RPI 4 which runs a NUT server with the following settings, should not be terribly difficult for you to adapt this to other platforms if you have SSH access to config files or better yet do like I did and run everything in dockers.
Add the following line to upsmon.confAdd the qnap user to the upsd.users fileCode: Select all
MONITOR qnapups@localhost 0 admin 123456 slave
Add the qnap slave "UPS" in the ups.conf file, note it is important to choose the correct driver etc.Code: Select all
# Used by Qnap QTS to monitor this server [admin] password = 123456 upsmon slave
After this you simply go to the Qnap slave UPS settings in QTS, type the IP of the NUT server and everything should work, I have 3 Qnap machines feeding from my RPI and another Grafana slave that saves the UPS statistics.Code: Select all
#qnapups allows qnap machines to be slaves to this master [qnapups] driver = %%%the driver appropriate for your UPS%%% port = %%%The port needed to connect to the real UPS using the driver you choose%%%
Code: Select all
maxretry = 3
[CyberPower]
driver = usbhid-ups
port = auto
desc = "CyberPower CP1500EPFCLCDUK"
vendorid = 0764
productid = 0501
serial = XXXXXXXXXXXX
vendor = CPS
product = CP1500EPFCLCD
pollinterval = 15
#qnapups allows qnap machines to be slaves to this master
[qnapups]
driver = usbhid-ups
port = auto
Code: Select all
MONITOR CyberPower@localhost 1 upsmon_master <password> master
MONITOR qnapups@localhost 0 admin 123456 slave
DEADTIME 25
Code: Select all
[administrator]
password = <password>
actions = SET
instcmds = ALL
[upsmon_master]
password = <password>
upsmon master
[upsmon_slave]
password = <password>
upsmon slave
[admin]
password = 123456
upsmon slave
[testuser]
password = <password>
instcmds = test.battery.start.quick
instcmds = test.battery.stop
instcmds = test.battery.start.deep
Code: Select all
MAXAGE 25
Thanks again.For the Synology all I did was enter this in uspd.users
I guess you are mistaken.
Code: Select all
qnapups@localhost
[qnapups]
password=123456
upsmon slave