<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span class=postbody><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>I know a few people have asked about this in the past,
so here goes…<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=postbody><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></span></p>

<p class=MsoNormal><span class=postbody><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><a
href="http://www.nagiosexchange.org/Notifications.35.0.html?&tx_netnagext_pi1%5Bp_view%5D=793"
target="_blank">http://www.nagiosexchange.org/Notifications.35.0.html?&tx_netnagext_pi1[p_view]=793</a>
</span></font></span><br>
<br>
<span class=postbody>This PHP script will allow you to perform
mass-acknowledgements of nagios problems from the command line. Both the 'host'
and 'service' parameters are treated as perl regular expressions, so you can do
things like: </span><br>
<br>
<span class=postbody><b><span style='font-weight:bold'># nagios_ack webprod
httpd "I shot all of the httpd processes with psDOOM by accident"</span></b></span><br>
<br>
<span class=postbody>To acknowledge alarms for any services matching 'httpd' (eg,
httpd_response_time, httpd_process, etc…) on any hosts matching 'webprod'
(eg, webprod01, webprod02, test-webprod01, etc…) with the admission that
you often like to admin your system using WASD.</span><br>
<br>
<span class=postbody>You may also use the keyword 'all' in place of either
parameter... </span><br>
<br>
<span class=postbody><b><span style='font-weight:bold'># nagios_ack all
"Power Outage in <st1:place w:st="on"><st1:State w:st="on">Texas</st1:State></st1:place>"</span></b>
</span><br>
<br>
<span class=postbody>To acknowledge ALL current host and service problems. </span><br>
<br>
<span class=postbody><b><span style='font-weight:bold'># nagios_ack webprod all
"Power Outage in Web Server Rack"</span></b> </span><br>
<br>
<span class=postbody>To acknowledge ALL services in alarm on any host matching
'webprod’. </span><br>
<br>
<o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>The script uses the status.log (or status.dat) and nagios.cmd
files.  You will need to edit the top of the script to let it know where
you keep yours.    I use Groundworks/nagios so the current paths
are customized for that purpose.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>See the README for config/cmdline information.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<span class=postbody>Enjoy!</span><o:p></o:p></span></font></p>

</div>

</body>

</html>