simulate complete email

Jason Martens jmartens at cityofevanston.org
Mon Jul 28 17:54:32 CEST 2003


> Let a script run periodically (perhaps via cron) on a remote machine.
> remotemachine gets the email, and parses the message for the timestamp,
> and validates against machine time.
 When the delta is too big, give warning.
> When within a certain time (say, 5 minutes) no email arrives at all,
> give critical.

You can use sendmail to run a script if an e-mail is sent to a certain
user by putting the following in the alias file:

username :| /path/to/script

perhaps you could have the script submit the check result. So it would
look like this:
Nagios check_smtp sends an e-mail to mailcheck at hostname, the receiving
host receives the e-mail and submits a success message to nagios, or
perhaps to the check_smtp command somehow? If there is no response
within the predetermined time (1min maybe) a critical response is
logged. Does that make sense?

Jason


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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