> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Brian Loe > Sent: Wednesday, January 24, 2007 8:21 AM > To: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: > > > > Well, I really don't get this. That worked. If I just copy and paste > > > > that output (from echo) to the command line it works fine... > > > >
[chop] > > So, any other thoughts on this? Running it in echo I see that the > command line is correct for this application, and I know that it is > configured to run correctly but it still doesn't get ran. Well, it should be working. Stepping through the process -- 1) nagios is running the notification command as necessary 2) the notification command is properly formatted (seen by echo output) 3) the notification command succeeds when run as the nagios user from the command line That really should be sufficient. The only other issue I can think of is that your pager program relies on some program, path, environment variable or library that is available when in a login shell but unavailable to forked processes. Do you set any special variables, aliases or anything in your login scripts? Can the people that wrote it provide any insight or add debugging code to the program? Try this to see if the program is reporting any errors -- # 'notify-by-pager' command definition define command{ command_name notify-by-pager command_line /usr/local/pager/client $CONTACTADDRESS1$ "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$"'>> /tmp/nagios_notification.log 2>&1 -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null