<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"
xmlns:ns0="urn:schemas-microsoft-com:office:smarttags">

<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="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
 /* 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><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Anyone else using check_nrpe to run script on remote hosts
for event handlers?  <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>It's a basic setup but just not sure what I missing.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have central box that monitors our web & db server
farm.  If a service fails I want an event to kick off on the remote machine
that will restart the httpd or any other service.  All the docs I see are for
calling local event handlers.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When I run the script locally it works and I have setup a
sudoer file so that the scripts can be called.  However, when I try to run the
event handler manually, as seen below it does not work.  Anything I am missing?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>/usr/local/nagios/libexec/check_nrpe -H app-dev -p 5666 -c
eh_krang_failover -a CRITICAL SOFT 2<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I receive the following, which happens to be an piece of the
output that is seen when running the event handler on the actual host.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Restarting Krang service (2rd soft critical state)...Loading
configured skin:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Any ideas?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Century Gothic"><span style='font-size:
10.0pt;font-family:"Century Gothic"'>Mark T. Pearson<br>
</span></font><i><font size=1 face="Century Gothic"><span style='font-size:
9.0pt;font-family:"Century Gothic";font-style:italic'>Senior Network Engineer<br>
</span></font></i><font size=1 face="Century Gothic"><span style='font-size:
9.0pt;font-family:"Century Gothic"'><a href="BLOCKED::http://www.uft.org/"
title="http://www.uft.org/">UFT Welfare Fund</a><br>
52 Broadway, 8<sup>th</sup> Floor<br>
<ns0:place w:insAuthor="Mark Pearson" w:insDate="2005-11-21T16:35:00Z"
 w:endInsAuthor="Mark Pearson" w:endInsDate="2005-11-21T16:35:00Z"><ns0:City
  w:insAuthor="Mark Pearson" w:insDate="2005-11-21T16:35:00Z"
  w:endInsAuthor="Mark Pearson" w:endInsDate="2005-11-21T16:35:00Z"><st1:place
  w:st="on"><st1:City w:st="on">New York</st1:City></ns0:City></st1:place>, <ns0:State
  w:insAuthor="Mark Pearson" w:insDate="2005-11-21T16:35:00Z"
  w:endInsAuthor="Mark Pearson" w:endInsDate="2005-11-21T16:35:00Z"><st1:State
  w:st="on">NY</st1:State></ns0:State> <ns0:PostalCode w:insAuthor="Mark Pearson"
  w:insDate="2005-11-21T16:35:00Z" w:endInsAuthor="Mark Pearson"
  w:endInsDate="2005-11-21T16:35:00Z"><st1:PostalCode w:st="on">10004</st1:PostalCode><br>
 </ns0:PostalCode></ns0:place>(212) 539-0605 </span></font><o:p></o:p></p>

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

</div>

<FONT SIZE=3><BR>
<BR>
*******************************************************************************<BR>
The views, opinions, and judgments expressed in this message are solely those of the author. The message contents have not been reviewed or approved by the UFT Welfare Fund.<BR>
*******************************************************************************<BR>
</FONT>
</body>

</html>