Michelle Dupuis wrote: > > I changed the line to: > NOTIFYCMD "logger 'upsmon: test running notify command'"
I wouldn't assume that NUT's configuration file parser interprets these quotes and spaces correctly. Have you checked that it is not calling logger ('upsmon:) (test) (running) (notify) (command') instead of logger (upsmon: test running notify command) [parentheses added to show individual command line arguments]? -- Peter > But my simulated powerfailure has the same results: > > Jan 17 22:50:21 vmhost2 upsmon[6800]: UPS [EMAIL PROTECTED] on battery > Jan 17 22:50:21 vmhost2 wall[7835]: wall: user nutmon broadcasted 1 lines > (40 chars) > Jan 17 22:50:21 vmhost2 logger: UPS [EMAIL PROTECTED] on battery > Jan 17 22:50:51 vmhost2 upsmon[6800]: UPS [EMAIL PROTECTED] on line > power > Jan 17 22:50:51 vmhost2 wall[7840]: wall: user nutmon broadcasted 1 lines > (43 chars) > Jan 17 22:50:51 vmhost2 logger: UPS [EMAIL PROTECTED] on line power > > Any ideas why the NOTIFYCMD is not running? > > Thanks, > MD > > -----Original Message----- > From: Charles Lepple [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 17, 2007 9:03 PM > To: Michelle Dupuis > Cc: nut-upsuser@lists.alioth.debian.org > Subject: Re: [Nut-upsuser] NOTIFYCMD not running > > On 1/17/07, Michelle Dupuis <[EMAIL PROTECTED]> 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 _______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser