I've followed the config setup docs and also the excellent guide from Roger Price. I'm using openSUSE 13.1 and built NUT 2.7.2 from the sources (latest stable). I'm hooked up to a dummy UPS that basically just cycles from fully charged down to about 20% discharged. I was pleased when I started seeing the messages on my screen indicating the UPS was online or on-battery. Given how often the unit cycles, however (about every 30 seconds), it was quickly annoying to get the system messages, so I went into the upsmon.conf file and commented out the "online" and "onbatt" NOTIFYFLAG messages. I then did a reload of upsmon...but found I was still getting the messages. Long story short, my upsmon.conf file now consists of a single entry: MONITOR rtdups at localhost 1 upsmaster sekret master I'm still getting the onbattery, online, comm good, comm bad, etc system messages. Clearly there is some default behavior going on. How do I keep these system messages from happening? Thanks Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140911/820500c3/attachment.html>
On Sep 11, 2014, at 10:38 AM, Rob Groner <rgroner at RTD.com> wrote:> I?m still getting the onbattery, online, comm good, comm bad, etc system messages. Clearly there is some default behavior going on. How do I keep these system messages from happening?From http://www.networkupstools.org/docs/man/upsmon.conf.html: "NOTIFYFLAG type flag[+flag][+flag]? By default, upsmon sends walls global messages to all logged in users) via /bin/wall and writes to the syslog when things happen. You can change this." To suppress just the on-battery/online messages: NOTIFYFLAG ONLINE IGNORE NOTIFYFLAG ONBATT IGNORE The full list is just above NOTIFYFLAG in the upsmon.conf documentation. -- Charles Lepple clepple at gmail
Excellent, thank you!> -----Original Message----- > From: Charles Lepple [mailto:clepple at gmail.com] > Sent: Thursday, September 11, 2014 10:20 PM > To: Rob Groner > Cc: nut-upsuser at lists.alioth.debian.org > Subject: Re: [Nut-upsuser] How do I disable messages from upsmon? > > On Sep 11, 2014, at 10:38 AM, Rob Groner <rgroner at RTD.com> wrote: > > > I'm still getting the onbattery, online, comm good, comm bad, etc system > messages. Clearly there is some default behavior going on. How do I keep > these system messages from happening? > > From http://www.networkupstools.org/docs/man/upsmon.conf.html: > > "NOTIFYFLAG type flag[+flag][+flag]... > By default, upsmon sends walls global messages to all logged in users) via > /bin/wall and writes to the syslog when things happen. You can change this." > > To suppress just the on-battery/online messages: > > NOTIFYFLAG ONLINE IGNORE > NOTIFYFLAG ONBATT IGNORE > > The full list is just above NOTIFYFLAG in the upsmon.conf documentation. > > -- > Charles Lepple > clepple at gmail > >