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. -----Original Message----- From: Rob Crittenden [mailto:rcrit at greyoak.com] Sent: Monday, December 07, 2015 11:49 AM To: Marks, Connor; nut-upsdev at lists.alioth.debian.org Subject: Re: [Nut-upsdev] Stopping Machine powering off On 12/07/2015 10:26 AM, Marks, Connor wrote:> Hey guys and gals, > > Just got nut up and running (finally..) now every time I monitor my > UPS and the UPS shuts down it also shuts my machine down. What script > do I have to write for this to NOT happen?Isn't that the idea? Look in upsmon.conf for SHUTDOWNCMD. rob
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 MINSUPPLIES 1 That way the dummy ups will "power your computer" and the testups will supply 0 power so its power outage gets ignored. CU, Gernot
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 > MINSUPPLIES 1 > > 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