I just checked my nagios logs, and i found that my email notifications were not working.
[1250176586] SERVICE NOTIFICATION: nagiosadmin;sql01;/dev/sdb1 Free Space;OK;notify-service-by-email;DISK OK – free space: /var/lib/mysql 478954 MB (89% inode=99%):
[1250176586] Warning: Attempting to execute the command “/usr/bin/printf “%b” “***** Nagios *****\n\nNotification Type: RECOVERY\n\nService: /dev/sdb1 Free Space\nHost:myhost\nAddress: 64.x.x.x\nState: OK\n\nDate/Time: Thu Aug 13 10:16:26 CDT 2009\n\nAdditional Info:\n\nDISK OK – free space: /var/lib/mysql 478954 MB (89% inode=99%):” | /bin/mail -s “** RECOVERY Service Alert: myhost//dev/sdb1 Free Space is OK **” my@mail.com” resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists…
Easy fix for this one also:
yum -y install mailx
Tags: Admin Side, email notifications, nagios mail notifications, nagios not sending mail, not working


Try and keep the blog for personal things – and create a new technical blog for this kind of issues
Actually, i am not posting these issues for you, but for myself, so that whenever i find the issue again, i quick search the blog, and find myself the answer