<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
H3 {
FONT-WEIGHT: bold; FONT-SIZE: 11.5pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
H5 {
FONT-WEIGHT: normal; FONT-SIZE: 10.5pt; MARGIN: 0in 0in 0pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=566173822-01072008><FONT face=Arial
color=#0000ff size=2>Hi Jai,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566173822-01072008><FONT face=Arial
color=#0000ff size=2>have a look at Nagios Documentation - Eventhandling.
This is the solution you are looking for.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566173822-01072008><FONT face=Arial
color=#0000ff size=2><A
href="http://nagios.sourceforge.net/docs/3_0/eventhandlers.html">http://nagios.sourceforge.net/docs/3_0/eventhandlers.html</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566173822-01072008></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=566173822-01072008><FONT face=Arial
color=#0000ff size=2>Regards</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=566173822-01072008><FONT face=Arial
color=#0000ff size=2>Christian</FONT></SPAN></DIV><BR>
<br><P align="left"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">it-novum GmbH</span>
<br>
<span style="FONT-SIZE: 7pt; FONT-FAMILY: 'Arial','sans-serif'">Ein Unternehmen der Mehler AG</span>
<br>
<br>
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Christian Mies</span>
<br>
<span style="FONT-SIZE: 7pt; FONT-FAMILY: 'Arial','sans-serif'">Consultant Systemmanagement</span>
<br>
<br>
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Edelzeller Str. 44<br>
36043 Fulda</span>
<br>
<br>
</P>
<DIV align="left">
<table style="FONT-SIZE: 10pt; FONT-FAMILY: Arial" align="left">
<tr>
<td width="100">
Fon:</td>
<td width="166">
+49 (661) 103-874</td>
<td width="100">
(-333)</td>
</tr>
<tr>
<td width="100">
Fax:</td>
<td width="166">
+49 (661) 103-17874</td>
<td width="100">
(-334)</td>
</tr>
<tr>
<td width="100">
Mail:</td>
<td width="166">
<a href='mailto:cmies@itnovum.de' title='mailto:cmies@itnovum.de'>cmies@itnovum.de</a></td>
<td width="100">
</td>
</tr>
<tr>
<td width="100">
Web</td>
<td width="166">
<a href="http://www.itnovum.de">http://www.itnovum.de</a>
</td>
<td width="100">
</td>
</tr>
</table>
</DIV>
<P align="left">
<br>
</P>
<P align="left"> </P>
<DIV align="left">
<table style="FONT-SIZE: 7pt; WIDTH: 376px; FONT-FAMILY: Arial" align="left">
<tr>
<td width="96">
Handelsregister:</td>
<td width="202">
Amtsgericht Fulda, HRB 1934</td>
</tr>
<tr>
<td width="96">
Geschäftsführer:
</td>
<td width="202">
Michael Kienle</td>
</tr>
<tr>
<td width="96">
Sitz der Gesellschaft:</td>
<td width="202">
Fulda, Deutschland/Germany
</td>
</tr>
<tr>
<td width="96">
UstID-Nr:
</td>
<td width="202">
DE813211784</td>
</tr>
<tr>
<td width="96">
Steuernr.
</td>
<td width="202">
018/225/03095</td>
</tr>
</table>
</DIV>
<P align="left">
<br>
<span style="FONT-SIZE: 7pt; FONT-FAMILY: Arial"></span> </P>
<P align="left"><SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: Arial"></SPAN> </P>
<P align="left"><SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: Arial"></SPAN> </P>
<P align="left"><SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: Arial">
Der Inhalt dieser E-Mail ist vertraulich. Wenn Sie nicht der eigentliche Empfänger
sein sollten, informieren Sie bitte sofort den Absender oder vernichten umgehend
diese Mail. Jegliche unerlaubte Vervielfältigung oder Weiterleitung dieser Mail
ist strengstens verboten.
<br>
<br>
This
e-mail may contain confidential and/or privileged information. If you are not
the intended recepient (or have received this e-mail in error) please notify the
sender immediately and destroy this e-mail. Any unauthorised copying, disclosure
or distribution of material in this e-mail is strictly forbidden.</SPAN><br>
<br>
</P>
<br><DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>Im Auftrag von </B>Jai
Rangi<BR><B>Gesendet:</B> Mittwoch, 2. Juli 2008 00:19<BR><B>An:</B>
nagios-users@lists.sourceforge.net<BR><B>Betreff:</B> [Nagios-users] Running
Command on Remote hosts<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">We have Nagios setup with
Groundworks, doing all sort of checks on our servers at datacenter. We get the
emails for warning and critical alerts. Everything seems to running pretty good.
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">What I want to achieve is build a
script/system that can fix problems by itself. <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">For example for our Windows IIS
servers the scripts should restart the application pool if it finds any problem
with http port. Cause that’s what we do manually to get it fixed. It seems to be
working when I run from the command line, like this,
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">./check_nrpe –H server –n –p
PORTNUMBE –t 30 –c restartapppool. <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">restartapppool is the command
defined in the NRPE Client. Now I need to understand is what I need to do to run
this command as soon as the nagios find a problem with the http service.
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Has anyone done something like this?
I will appreciate if you can share some thoughts. <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thank
you,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV id=content>
<H3><B><FONT face=Arial color=black size=3><SPAN
style="FONT-SIZE: 11.5pt; COLOR: black; FONT-FAMILY: Arial">Jai
Rangi<o:p></o:p></SPAN></FONT></B></H3></DIV><!-- Title -->
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P></DIV></BODY></HTML>