Page 1 of 1

CHECK_NRPE Socket timeout after n seconds

Posted: Wed Jun 13, 2018 12:03 pm
by tnr
I have a nagios server on centos 7 and I am trying to monitor a remote windows host that has NSClient ++ installed.
I am able to use check_nt from the nagios server but when I use check_nrpe I get "CHECK_NRPE STATE CRITICAL: Socket timeout after 10 seconds."
Below is the output for few commands from the nagios server.

./check_nt -H <ipaddress of remote host> -p 12489 -v CLIENTVERSION
NSClient++ 0.4.4.23 2016-04-05

./check_nrpe -H <ipaddress of remote host>
CHECK_NRPE STATE CRITICAL: Socket timeout after 10 seconds.

(I also tried passing a higher timeout and still the same kind of error)

But if I run the check_nrpe with -V I get the below:
./check_nrpe -H <ipaddress of remote host> -V
NRPE Plugin for Nagios
Copyright (c) 1999-2008 Ethan Galstad (nagios@nagios.org)
Version: 3.1.1
Last Modified: 2017-05-24
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: OpenSSL 0.9.6 or higher required

I get the "CHECK_NRPE STATE CRITICAL: Socket timeout after 10 seconds." passing any command using the -c for check_nrpe. Can someone please help me with this issue so that I can monitor the remote window host using check_nrpe for some external scripts?

(Note: I am able to use check_nrpe from the nagios server to other remote linux hosts. I have issue only with windows hosts.The NRPEServer module is enabled on the remote windows host)

Re: CHECK_NRPE Socket timeout after n seconds

Posted: Wed Jun 13, 2018 4:28 pm
by scottwilkerson
Did you enable NRPE in the nsclient .ini config file?

If so, did you also allow port 5666 through the Windows firewall?

Can you attach that file?