8 декабря 2015 г. 6:05:23 CET, Gernot Zander <[email protected]> 
пишет:
>Hi,
>
>am  7 Dez schrieb Charles Lepple:
>>> MONITOR dummyups@localhost 1 monmaster masterpass master
>>> MONITOR  testups@localhost 0 monmaster masterpass master
>>> MINSUPPLIES 1
>> To simplify, you could eliminate "dummyups" and use "MINSUPPLIES 0".
>
>Maybe there's a bug. To monitor an UPS wich doesn't supply power to a
>raspi I used:
>MONITOR usv1vr@localhost 0 monmaster XXXXX master
>MONITOR usv2vr@localhost 0 monmaster XXXXX master
>MINSUPPLIES 0
>
>But each time usv1.vr does its selftest or has a voltage dip I get mail
>"raspixx on battery". That's why I added the dummy ups. It didn't came
>to a shutdown yet, fortunatly, so I'm not sure.
>
>CU,
>Gernot
>
>
>
>_______________________________________________
>Nut-upsdev mailing list
>[email protected]
>http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev

Why bug? You monitor the ups, so you're assumed interested about its state 
changes (wording might be wrong for this case in a particular implementation of 
NOTIFYCMD - but feel free to write your own as in the old days). You wrote that 
it feeds zero supplies of this host so you don't power off because of its 
events.

Also as noted by somebody else, feel free to adapt SHUTDOWNCMD e.g. to a script 
that would

echo 'upsmon would shut down thus host now' | wall

so instead of shutting down you just get a console message (and/or syslog via 
'logger', email, etc.) that the shutdown routine would've kicked in if you 
didn't override it in this manner.

Hope this helps,
Jim Klimov
--
Typos courtesy of K-9 Mail on my Samsung Android

_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev

Reply via email to