Page 1 of 1

nagios with nrpe nsclient++

Posted: Thu Aug 21, 2014 1:43 pm
by cranemoon
Hi there,

I'm running Nagios Core 3.4.1 and I'm using NSclient++ to monitor windows servers. I have modified timeout values in the nsclient.ini config file, I have test it in debug mode on windows getting this output...

d rvice\NSClient++.cpp:960 Injecting: check_threads...
d kExternalScripts.cpp:257 Arguments: /c echo scripts\check_threads.ps1 | powershell.exe -command -
d rvice\NSClient++.cpp:985 Result check_threads: OK
l ce\simple_client.hpp:80 OK:Hora de inicio: 20:24
Maximo hilos en 2 minutos: 10
Minimo hilos en 2 minutos: 8


which is the expected

From nagios i have changed the nrpe.cfg command definition to add -t 120 at the end, and when I called it from the command line i get the same output

/usr/lib/nagios/plugins/check_nrpe -H 192.168.2.15 -c check_threads -t 120
Hora de inicio: 20:32
Maximo hilos en 2 minutos: 11
Minimo hilos en 2 minutos: 9


The plugin that I'm testing (named check_threads)is a loop (do -while) that executes a code block during 2 minutes to get the max and min number of threads of a process.

So far it works, my problem is on the web interface, where I keep getting, on the Status Information column CHECK_NRPE: Socket timeout after 10 seconds.
Any help will be greatly appreciated, thanks

Re: nagios with nrpe nsclient++

Posted: Fri Aug 22, 2014 1:57 am
by Box293
Can you post your command definition and your service definition.