Email Notifications have stopped working

Hi All,

For some reason our Nagios 3.2.2 box running on Ubuntu Server 10.04 has decided to stop sending out email alerts. Previously it was sending alerts perfectly fine.

Nagios Evenlogs show

[11-02-2011 12:13:25] Warning: Attempting to execute the command “/usr/bin/printf “%b” “***** Nagios ***\n\nNotification Type: PROBLEM\nHost: DURAP01\nState: DOWN\nAddress: 192.168.4.4\nInfo: (Host Check Timed Out)\n\nDate/Time: Fri Feb 11 12:13:25 GMT 2011\n" | /bin/mail -s " PROBLEM Host Alert: DURAP01 is DOWN **” [email protected]” resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists…

Postfix is working correctly as I’m able to send emails perfectly fine using sendmail.

Thanks
Skip

Turns out someone had reinstalled the nagios plugin tools which created a new /usr/local/nagions/etc/objects/commands.cfg I just changed definition to use /usr/bin/mail rather than /bin/mail which didnt exist