nagios with nrpe nsclient++

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cranemoon
Posts: 3
Joined: Tue Mar 11, 2014 2:55 am

nagios with nrpe nsclient++

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: nagios with nrpe nsclient++

Post by Box293 »

Can you post your command definition and your service definition.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked