/usr/bin/printf, /usr/bin/mail should be after the pipe ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: [EMAIL PROTECTED]'
Telesphere Networks, Inc > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Gregory Wong > Sent: Tuesday, February 05, 2008 3:34 PM > To: Patrick Morris > Cc: [email protected] > Subject: Re: [Nagios-users] No Email Notifications > > In /usr/bin there is mail and printf. Should I be using /usr/bin/mail > or > /usr/bin/printf before the notification string? > > > On 2/5/08 5:24 PM, "Patrick Morris" <[EMAIL PROTECTED]> wrote: > > > On Tue, 05 Feb 2008, Gregory Wong wrote: > > > >> Hi Everyone, > >> > >> I am having some problems getting email notifications on a new > Nagios server > >> I just built. I have only setup PING and SMTP checks to see if > everything is > >> working properly. The Event Log on the web interface shows the > following > >> message: > >> > >> [02-05-2008 17:14:02] Warning: Attempting to execute the command > >> "/usr/bin/mail/printf "%b" "***** Nagios 2.6 *****\n\nNotification > Type: > >> PROBLEM\nHost: SMTP\nState: DOWN\nAddress: <IP ADDRESS>\nInfo: PING > CRITICAL > >> - Packet loss = 100%\n\nDate/Time: Tue Feb 5 17:14:02 EST 2008\n" | > -s "Host > >> DOWN alert for SMTP!" <EMAIL ADDRESS>" resulted in a return code of > 127. Make > >> sure the script or binary you are trying to execute actually > exists... > > > > Have you done what the error message suggests, and looked to see if > > /usr/bin/mail/printf actually exists? > > > > Betchya it doesn't. > > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > [email protected] > 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list [email protected] 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
