Nagios does not send email notifications

Marc Powell marc at ena.com
Tue Dec 8 21:41:00 CET 2009


On Dec 8, 2009, at 1:41 PM, ReynierPM wrote:

> Hi every:
> I have problems now with email notification unless I didn't receive one. 
>   I check Nagios Event Logs and see this:
> 
> [12-08-2009 14:53:28] Warning: Attempting to execute the command 
> "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: 
> PROBLEM\n\nService: Bacula Dir Daemon\nHost: bacula\nAddress: 
> 10.128.50.11\nState: UNKNOWN\n\nDate/Time: Tue Dec 8 14:53:28 CST 
> 2009\n\nAdditional Info:\n\nRemote command execution failed: Permission 
> denied, please try again." | /bin/mail -s "** PROBLEM Service Alert: 
> bacula/Bacula Dir Daemon is UNKNOWN **" rperezm at uci.cu" resulted in a 
> return code of 127. Make sure the script or binary you are trying to 
> execute actually exists...
> 
> But the mail never arrive to my Inbox. Why? 

Because it wasn't sent. Either /usr/bin/printf doesn't exist or /bin/mail doesn't exist. Make sure the packages that provide them for your system are installed.

Was nagios compiled on this same box? Did you change this command in any way after install? Nagios is pretty good about detecting these kinds of things during the ./configure phase and/or your package maintainer should have detected it.

--
Marc


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
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