An email on acknowledge, and only onacknowledge? Nagios and RT

Chris Wilson chris at aidworld.org
Tue Jul 26 17:19:59 CEST 2005


Hi Nathan,

> 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.

> 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

:-)

> 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.

> 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.

Cheers, Chris.
-- 
(aidworld) chris wilson | chief engineer (chris at aidworld.org)



-------------------------------------------------------
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_id=7477&alloc_id=16492&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