Page 1 of 1

CHECK_NRPE: Received 0 bytes from daemon

Posted: Wed Dec 02, 2015 1:54 pm
by robert.anderko
Hi all,
i need help, where is way... I have problem with NRPE check to the Windows 2012 server:
part of NSclient config:

Code: Select all

[/settings/external scripts/wrappings]
vbs = cscript.exe //T:240 //NoLogo scripts\\lib\\wrapper.vbs %SCRIPT% %ARGS%
[/settings/external scripts]
timeout = 130

[settings/NPRE/server]
timeout = 140
From nagios server i have:

Code: Select all

[root@nagios ~]# /usr/local/nagios/libexec/check_nrpe -H server1 -p 5666 -t 120 -c CheckFileSize -a ShowAll MaxWarn=7650M MaxCrit=8550M File:server1_DB8=I:\\\\directory1\\\\\*
OK: server1_DB8: 5.07G|'server1_DB8'=5.05999G;7.46999;8.3
works all,

but next command:

Code: Select all

[root@nagios1 ~]# /usr/local/nagios/libexec/check_nrpe -H server1 -p 5666 -t 120 -c CheckFileSize -a ShowAll MaxWarn=7650M MaxCrit=8550M File:server1_BD1=I:\\\\directory2\\\\\*
CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs for error messages.
thanks all for any help

Re: CHECK_NRPE: Received 0 bytes from daemon

Posted: Wed Dec 02, 2015 2:11 pm
by hsmith
Are there any clues in nsclient.log?

Re: CHECK_NRPE: Received 0 bytes from daemon

Posted: Thu Dec 03, 2015 3:13 am
by robert.anderko
Hi hsmith,
thanks for your reply. Nothing in log related to the receiving or sending to this check...

Re: CHECK_NRPE: Received 0 bytes from daemon

Posted: Thu Dec 03, 2015 10:20 am
by hsmith
I see nagios and nagios1 in your two different outputs. Are we working with two different servers here?

Re: CHECK_NRPE: Received 0 bytes from daemon

Posted: Fri Dec 04, 2015 6:10 am
by robert.anderko
sorry, my error - all checks are from one ( same ) server

Re: CHECK_NRPE: Received 0 bytes from daemon

Posted: Fri Dec 04, 2015 10:31 am
by rkennedy
Can you post your whole NSClient++ configuration for us to take a look at?

Re: CHECK_NRPE: Received 0 bytes from daemon

Posted: Fri Dec 04, 2015 10:46 am
by hsmith
Can you also please try to rebuild the failing performance counters on your Windows system, and then restart the nsclient service?

Code: Select all

cd\windows\system32
lodctr /R
net stop nscp
net start nscp

Re: CHECK_NRPE: Received 0 bytes from daemon

Posted: Mon Dec 07, 2015 6:41 am
by robert.anderko
hsmith,
dont help rebuilding of performance counters.
In attachment are nsclient config

Re: CHECK_NRPE: Received 0 bytes from daemon

Posted: Mon Dec 07, 2015 1:24 pm
by jrdalrymple
Is it possible that in the course of running the check the plugin is timing out? Is the return you're getting occurring right away, or after the 120 second timeout you specified?

It's not clear what you're checking, but I could imagine your monitoring of several GB of files taking awhile if the files aren't large, or if you have slow/busy disks behind them.

Re: CHECK_NRPE: Received 0 bytes from daemon

Posted: Mon Dec 07, 2015 4:06 pm
by rkennedy
Thanks @jrdalrymple! Let us know the answers to those questions @robert.anderko.

Additionally, what version of NSClient++ are you running?