<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" 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 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
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=IT link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I upgrade to nsclient++ 0.3.6.4 but I always receive:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>UNKNOWN: No handler for that command<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Marco<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Segoe UI","sans-serif"'>Da:</span></b><span
style='font-size:10.0pt;font-family:"Segoe UI","sans-serif"'> Natxo Asenjo
[mailto:natxo.asenjo@gmail.com] <br>
<b>Inviato:</b> sabato 3 ottobre 2009 16.21<br>
<b>A:</b> Marco Borsani<br>
<b>Cc:</b> nagios-users@lists.sourceforge.net<br>
<b>Oggetto:</b> Re: [Nagios-users] nsclient++ and nrpe commands<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<div>

<p class=MsoNormal>On Fri, Oct 2, 2009 at 4:58 PM, Marco Borsani <<a
href="mailto:m.borsani@it.net">m.borsani@it.net</a>> wrote:<o:p></o:p></p>

<p class=MsoNormal>Hi all<br>
<br>
I use nsclient++ with standard commands via check_nt, all is ok.<br>
<br>
Now I need to run some commands/plug-in (like checl_openmanage.exe), but I<br>
don't find the correct sintax.<br>
<br>
Right now I prepare a command inside NSC.ini file like these:<br>
command[nsc_openmanage]=c:\nagios\check_openmanage.exe<br>
nsc_open=scripts\check_openmanage.exe -v<br>
<br>
When I try to call it from nagios server with: ./check_nrpe -H IPADDRESS -c<br>
nsc_openmanage<br>
I receive following error: CHECK_NRPE: Socket timeout after 10 seconds.<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
a socket timeout means it could not connect the nrpe port.<br>
<br>
If you try this<br>
 <br>
nagios@nagios:/usr/local/nagios/libexec$ ./check_nrpe -H winxp01<br>
I (0.3.2.9 2008-05-17) seem to be doing fine...<br>
<br>
so without any commands to be run, it just checks whether the nrpe service is
ok.<br>
<br>
If you try a not defined command in nsc.ini, like this:<br>
nagios@nagios:/usr/local/nagios/libexec$ ./check_nrpe -H winxp01 -c test<br>
UNKNOWN: No handler for that command<br>
<br>
there is no 'test' command defined, so it gives me an UNKNOWN.<br>
<br>
in your nsc.ini check that the NRPEListener.dll is enabled, the [NRPE] section
should look (at least) like this;<br>
<br>
[NRPE]<br>
<br>
port=5666<br>
<br>
command_timeout=60<br>
<br>
allow_arguments=1<br>
<br>
socket_timeout=30<br>
<br>
and your [NRPE Handlers] section should contain your allowed checks (here only
services and disks):<br>
<br>
nrpe_CheckService=inject checkServiceState CheckAll exclude=SysmonLog<br>
<br>
nrpe_CheckDriveSize=inject CheckDriveSize MinWarn=10% MinCrit=5% CheckAll
FilterType=FIXED FilterType=REMOTE<br>
<br>
<br>
your nagios server must be allowed to query the nrpe server (check firewall and
allowed_hosts settings in nsc.ini)<br>
<br>
<br>
<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
NSClient++ works correctly with :<br>
check_nt -H IPADDRESS -v xxxxxxxx<br>
check_nrpe -H IPADDRESS -c CheckCPU -a warn=80 crit=90 time=20m time=10s<br>
time=4<br>
<br>
My versions are:<br>
Nsclient++ = 0.2.7 2007-03-06<br>
Check_nrpe = 2.7.1<br>
<br>
May you show me any NSC.ini files ?<o:p></o:p></p>

</blockquote>

<div>

<p class=MsoNormal><br>
your nsclient++ is quite old, you should try a newer one. For quesions about
nsclient++ the proper forum is the one at <a href="http://nsclient.org">nsclient.org</a><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

</div>

</body>

</html>