Stephen Most email systems move messages to a retry queue if the first attempt at sending fails. If your email does something like that you can just write a simple script to check whether it is empty or not and return a status to Nagios. There might be a genuine reason why the first send fails, but at least you get alerted. You could even get the script to send a test email at this point and check whether the queue grows by one. Regards Paul Willis
>>> "Stephen H. Dawson" <serv...@shdawson.com> 04/05/10 10:57 >>> Hi, We have looked at the check_smtp option to meet our need, but do not believe this option will work. Looking for perhaps another option. Failure of an SMTP connection to our ISP's mail server with Nagios will only tell us that the Nagios attempt to connect has failed, at that particular point in time. We are running our Nagios box on CentOS. The CentOS attempt itself could well connect and send a message a few seconds/minutes before or after that. We also run the risk of being accused of 'excessive' number of emails with our ISP's email server. So the only reliable way of checking if ISP SMTP relay connection works is to parse the CentOS logs and look for failures to authenticate/send. Has anyone parsed a log for review with Nagios? If so, please advise. Thanks, SHD
------------------------------------------------------------------------------
_______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null