E-mail notifications not working with nagios
The last time i was setting up nagios was on a quite big event and it worked like it should, but there was a problem with the e-mail notifications for nagios. Nagios was suppose to send out notifications when there were any problems with the servers, but this never happend / worked like it should. (Yes, i have read the nagios doc. and then also created the contact objects, contact groups etc.)
To troubleshoot this problem i first checked the nagios logs which indicated that nagios couldnt find the "mail" program which is used to send out the notification emails. It tried to look for the program in a directory on the system, but it wasnt the correct one. I fixed this problem with making a symlink from the directory the mail program was to the directory where nagios were looked for it. I now checked the logs for nagios again and it didnt say anything now about not finding the mail program and there was nothing that indicated that the emails werent sent..so they should then be sent. ..But even after a while (1 hour) i didnt receive any emails from nagios.
I now checked the mail logs for sendmail because i guess nagios is using this as the default MTA. There was no indication from these logs that the mails werent sent, so they should have been sent. I then looked in the mail queue where i found all the mails, lined up together, waiting to be sent. ..But after a while they just timed out, all of them.
I cant seem to see what the problem is there, nagios is sending mail when there is a problem, but the mail just stays in the mail queue and times out..what is wrong here? ..I have tried to remove all firewall, but there is no change at all. Port 25 is after what i understand the only one needed to be open for these email notifications to work..and it should be open.
I dont have the logs now from this, because this happened a some weeks ago now, but i still have some test config for nagios which have the exact same problem.
I would appericiate any help with this problem as it seems to be q tricky subject. Thanks.
Last edited by hondo; 10-26-2007 at 04:47 PM.