I have the nut package installed and running - everything perfect (or so I thought). My syslog shows everything looks great, and pulling the UPS plug for a few seconds triggers a WALL event, but not my notifycmd (which should write a test message to syslog). Can someone offer insight/ideas as to why my NOTIFYCMD is not running? Thanks, Michelle ----------------------- Extract from messages showing everything seems to install ok: (note that I use SNMP to access ups): Jan 17 16:04:17 vmhost2 snmp-ups[6741]: Startup successful Jan 17 16:04:17 vmhost2 upsd[6743]: Connected to UPS [upsmasonville]: snmp-ups-42.31.244.8 Jan 17 16:04:17 vmhost2 upsd[6744]: Startup successful Jan 17 16:04:17 vmhost2 upsmon[6747]: Startup successful Jan 17 16:04:17 vmhost2 upsd[6744]: Connection from 127.0.0.1 Jan 17 16:04:17 vmhost2 upsd[6744]: Client monuser@127.0.0.1 logged into UPS [upsmasonville -------------------------- When I pull the plug to simulate a failure I see; Jan 17 16:05:57 vmhost2 upsmon[6748]: UPS upsmasonville@localhost on battery Jan 17 16:05:57 vmhost2 wall[6755]: wall: user nutmon broadcasted 1 lines (40 chars) Jan 17 16:06:27 vmhost2 upsmon[6748]: UPS upsmasonville@localhost on line power Jan 17 16:06:27 vmhost2 wall[6762]: wall: user nutmon broadcasted 1 lines (43 chars) -------------------------- And my upsmon.conf has these settings (snipped): NOTIFYCMD logger "upsmon: test running notify command" NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC NOTIFYFLAG FSD SYSLOG+WALL+EXEC NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20070117/6ef614af/attachment.htm
On 1/17/07, Michelle Dupuis <support@ocg.ca> wrote:> Can someone offer insight/ideas as to why my NOTIFYCMD is not running?[...]> NOTIFYCMD logger "upsmon: test running notify command">From "man upsmon.conf":Remember, this also needs to be one element in the configuration file, so if your command has spaces, then wrap it in quotes. NOTIFYCMD "/path/to/script --foo --bar" It looks like you have two arguments to NOTIFYCMD, "logger" and "upsmon: test running notify command". Odd that you didn't get an error message from upsmon that the syntax was not right, though. -- - Charles Lepple