Skip to content


nagios not sending mail

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: , , , ,

Ar mai trebui sa citesti si ...

Posted in Admin Side.

Tagged with , , , .


2 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Alexandrescu Mihai says

    Try and keep the blog for personal things – and create a new technical blog for this kind of issues

    • admin says

      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 :)



Some HTML is OK

or, reply to this post via trackback.

CommentLuv Enabled