Nagios and SendMail configuration issues
Posted: Wed Mar 06, 2013 5:36 pm
Good Afternoon
I am having an issue with nagios and sendmail. I have both installed on a CentOS6 box. from the CMD line "I CAN" successfully send internally and externally. the emails come from [email protected]
however.. I CANNOT get nagios to send the alerts. I am using nagios 3.2.3 and here is some information below
this is from the maillog
rodan2 sendmail[1525]: STARTTLS=client, relay=mx1.emailsrvr.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256
rodan2 sendmail[1525]: r26M3Scb001522: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120311, relay=mx1.emailsrvr.com. [50.57.0.16], dsn=2.0.0, stat=Sent (Ok: queued as B6/33-12662-8ACB7315)
and this is from nagios.log
[1362604830] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios 1.0b6 *****\n\nNotification Type: PROBLEM\nHost: NagiosNAME\nState: DOWN\nAddress: 10.1.1.249\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/Mail -s "Host DOWN alert for NagiosNAME!" [email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
i know that the hostgroups.. contacts.. etc are all set up correctly, as I copied these from a working server...
I have also attached a copy of my commands.cfg
any help would be greatly appreciated...
Thanks
Brian
I am having an issue with nagios and sendmail. I have both installed on a CentOS6 box. from the CMD line "I CAN" successfully send internally and externally. the emails come from [email protected]
however.. I CANNOT get nagios to send the alerts. I am using nagios 3.2.3 and here is some information below
this is from the maillog
rodan2 sendmail[1525]: STARTTLS=client, relay=mx1.emailsrvr.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256
rodan2 sendmail[1525]: r26M3Scb001522: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120311, relay=mx1.emailsrvr.com. [50.57.0.16], dsn=2.0.0, stat=Sent (Ok: queued as B6/33-12662-8ACB7315)
and this is from nagios.log
[1362604830] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios 1.0b6 *****\n\nNotification Type: PROBLEM\nHost: NagiosNAME\nState: DOWN\nAddress: 10.1.1.249\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/Mail -s "Host DOWN alert for NagiosNAME!" [email protected]" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
i know that the hostgroups.. contacts.. etc are all set up correctly, as I copied these from a working server...
I have also attached a copy of my commands.cfg
any help would be greatly appreciated...
Thanks
Brian