[Nut-upsdev] Stopping Machine powering off

Charles Lepple clepple at gmail.com
Tue Dec 8 01:16:40 UTC 2015

On Dec 7, 2015, at 4:21 PM, Gernot Zander <debian at scorpio.in-berlin.de> wrote:
> Hi,
> am  7 Dez schrieb Marks, Connor:
>> Well I just need to monitor the UPS battery for testing and I do about
>> 10 UPS's a day. So having to restart my computer every time gets old
>> real quick.
> In that case - what about not starting nut-client (upsmon) at all? upsc
> (to see the output of the ups) requires nut-server only.
> Or, if you really want upsmon:
> - Set up a dummy ups _and_ the ups to be tested.
> - in upsmon.conf set
> MONITOR dummyups at localhost 1 monmaster masterpass master
> MONITOR  testups at localhost 0 monmaster masterpass master
> and
> That way the dummy ups will "power your computer" and the testups will
> supply 0 power so its power outage gets ignored.

To simplify, you could eliminate "dummyups" and use "MINSUPPLIES 0".

Or Rob's suggestion of changing "SHUTDOWNCMD" would work - it really depends on what portion of upsmon you are still using (if at all). As Gernot mentioned, upsc does not require upsmon, and neither does upslog. (I can't remember if you mentioned what flavor of Linux you are using, but the service names ("nut-server" for upsd, and "ups-client" for upsmon) might be slightly different.)

Charles Lepple
clepple at gmail

More information about the Nut-upsdev mailing list