<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
You might be able to do this with an event handler: <a
href="http://nagios.sourceforge.net/docs/3_0/eventhandlers.html">http://nagios.sourceforge.net/docs/3_0/eventhandlers.html</a><br>
<br>
But I'm not sure if the handler will be run when someone
acknowledges. <br>
<br>
I can think of one round-about way to do it:<br>
<ul>
<li>make a wrapper program for your fix-it script that checks to
see if NOTIFICATIONTYPE is "ACKNOWLEDGEMENT", and if so, calls
the fix-it script. Any other notification type is ignored.<br>
</li>
<li>make a nagios command to call your wrapper program<br>
</li>
<li>make a nagios contact for your fix-it script, tell it to use
the above nagios command as the service notification command<br>
</li>
<li>make a nagios service escalation to notify your fix-it contact
all the time</li>
</ul>
When the service is acknowledged, nagios will notify your dummy
fix-it contact, who will call your fix-it script.<br>
<br>
I *think* that would work.<br>
<br>
HTH,<br>
<pre class="moz-signature" cols="72">Ryan Davis
Acceleration.net
Director of Programming Services
2831 NW 41st street, suite B
Gainesville, FL 32606
Office: 352-335-6500 x 124
Fax: 352-335-6506</pre>
<br>
On 5/10/2011 3:20 PM, dave stern - e-mail.pluribus.unum wrote:
<blockquote
cite="mid:BANLkTikCGwvmQsorqdeE+EfqrqZWeoDORQ@mail.gmail.com"
type="cite">
<pre wrap="">We have an interesting need. When a particular service goes red on our
Nagios 3.2.1 server, we'd like to be able to click on "Acknowledge this
service problem" and have that activate a local script. Anyone have any
idea how this can be accomplished?
TIA
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/intel-dev2devmay">http://p.sf.net/sfu/intel-dev2devmay</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
</body>
</html>