host up as reply to host down?

Andreas Ericsson ae at op5.se
Mon Mar 22 23:25:52 CET 2004


Dan Stromberg wrote:
> On Mon, 2004-03-22 at 13:05, Andreas Ericsson wrote:
> 
>>Dan Stromberg wrote:
>>
>>>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?
>>>
>>
>>Basically that you write your own notification script. This isn't really 
>>hard at all, assuming mutt (or whatever) threads by
>>'Re: <previous-subject>'
>>
>>I have one lying around that would be easy to modify to do what you 
>>want. I'll post a version someday when I've found the time to remove the 
>>integrations to proprietary software (ticket handling, inventory 
>>systems) we use.
> 
> 
> Threading on subject would be good enough for my purposes, but I was
> thinking more in terms of threading on these headers, which tend to give
> more accurate threading:
> 
> References:  <1079987765.2662.16.camel at sabaki.dcs.uci.edu>
> In-Reply-To:  <1079987765.2662.16.camel at sabaki.dcs.uci.edu>
> 
> I pulled these out of your reply to me.
> 
> Seems like it might mean storing the message-id somewhere.  In fact,
> given that normally I think sendmail fills that header in, it might mean
> the notification script would have to generate its own message-id, in
> order to be able to store it somewhere.
> 
> Is this sounding reasonable?
> 
Yup. Adding headers isn't very hard with the default unix mail-package.

> What about service checks?
> 
What about them? The same script can be used for both types of 
notifications, and it shouldn't be too hard to get a unique message id 
for services as well as for hosts (md5sum comes to mind).

-- 
Mvh
Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se


-------------------------------------------------------
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_id=1470&alloc_id=3638&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