An email on acknowledge, and onlyonacknowledge? Nagios and RT
Nathan Oyler
noyler at khimetrics.com
Tue Jul 26 17:29:00 CEST 2005
Hey Chris,
> > Because if when there's a problem, a notification is sent. A ticket
is
> > opened.
> >
> > Now an hour goes by, and the problem still exists, so another
> > notification is sent. Another ticket is opened.
> >
> > Now a recovery message is sent. Another ticket is opened.
>
> It's easy enough to write your handler so that no email is sent unless
> the message type is ACKNOWLEDGEMENT.
>
It is? I was unaware of that. I will reread the documentation and try to
get a grasp on this.
> > There's already a patch to Nagios to call the RT api during
> > acknowledgements, but my RT machine isn't my Nagios machine, and I
don't
> > know enough of anything other than perl to edit it to do as I wish.
>
> perl -i -pe 's/localhost/my.rt.server/g' api-script.c
>
> :-)
>
[Nathan Oyler]
:)
> > There's also writing handlers to merge tickets when they come in, if
new
> > alert comes in, search for if a ticket is created for this host,
grab
> > that ticket number, send the new alert to comment on the ticket.
>
> This is much trickier. Basically you need to write a mail handler that
> gets the responses from RT, captures the ticket number, and associates
> it in some way with a permanent record of the problem (maybe hostname
+
> service name). It's been discussed in the past, you could check the
> archives. But it sounds like more than you need.
>
[Nathan Oyler]
It's been discussed, and all together I think I have a pretty good idea
of how to do it. It's just more than I need. Exactly.
> > This is how I'm leaning if I find nothing else out, but I'm thinking
> > just on an acknowledge if a ticket was open, that would make sense.
>
[Nathan Oyler]
Thanks
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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