host up as reply to host down?

Marc Powell marc at ena.com
Mon Mar 22 21:56:43 CET 2004


On Monday, March 22, 2004 2:36 PM, Dan Stromberg shared with us:

> When I get a host down warning, I've found myself tending to ignore
> it as I go through my mailbox, because often there's a host up notice
> shortly thereafter.  So I try to keep in mind that there was a host
> down warning for this, that and the other machine, and take action if
> I don't see a corresponding host up notice.    
> 
> However, if my mailbox is large enough that day (and my mailbox is
> normally full of new messages), there's a non-0 chance I'll forget
> that I never saw a host up notice corresponding to some host down
> warning.   

That's the kind of thing that the web interface is for; to see what's
down that you missed or didn't know about.
 
> So my question is, what would it take to make nagios' host up notices
> be sent as replies to host down warnings in a way that would allow
> mutt, evolution, and other threaded mailreaders to put the two mail
> messages right next to each other in my (and your) mailbox like your
> usual threaded discussion?    

Modify your host/service-notify-by-email command to do it. It would be a
very trivial task to make host/service-notify-by-email a wrapper script
that simply changes the subject based on the current state of the host
or service, prefacing it with 'RE:' if the state was OK for example. You
could even use the OCSP submit-check-result sample script as a starting
point.

--
Marc



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
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