Parsing Logs

Paul WILLIS PSE 55499 paul.willis at kent.pnn.police.uk
Wed May 5 10:44:01 CEST 2010


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" <service at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100505/f125ab76/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list