No Email Notifications

Gregory Wong gwong at wong-consulting.com
Tue Feb 5 23:33:37 CET 2008


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" <patrick.morris at hp.com> 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
Nagios-users at 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





More information about the Users mailing list