<div class="gmail_quote">On Fri, Oct 2, 2009 at 4:58 PM, Marco Borsani <span dir="ltr"><<a href="mailto:m.borsani@it.net">m.borsani@it.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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.<br></blockquote><div><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><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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 ?<br>
<br></blockquote><div><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><br></div></div><br>