Page 2 of 3

Re: NRPE checks do not work against Windows hosts

Posted: Tue Nov 24, 2015 3:09 pm
by dlukinski
hsmith wrote:
dlukinski wrote:I was trying to use this site for NRPE performance checks: http://sites.box293.com/nagios/guides/c ... s/cpu-load
His guide is good. I recommend it.
dlukinski wrote:Please clarify if I have to run plugins in conjunction with NRPE or NRPE is enough (would version of NRPE be important in this case?)
NRPE version is not that important right now. You CAN run plugins with NRPE, which will greatly expand the functionality of it. Can you try to CPU check now that we have the nsc cleaned up a little?

Unfortunately it now switched to "UNKNOWN: No handler for that command"
- This check (and another 2 with same result):
check_nrpe!nagiosxi40!CheckDriveSize -a ShowAll MaxWarn=50G MaxCrit=100G CheckAll!!!!!!

Re: NRPE checks do not work against Windows hosts

Posted: Tue Nov 24, 2015 3:29 pm
by hsmith
Let's test from the command line before we try to set up a check command.

Mine for example:

Code: Select all

[root@xi libexec]# ./check_nrpe -H 192.168.x.x -c checkcpu
OK: CPU load is ok.|'total 5m'=5%;80;90 'total 1m'=4%;80;90 'total 5s'=9%;80;90

Re: NRPE checks do not work against Windows hosts

Posted: Tue Nov 24, 2015 8:31 pm
by dlukinski
hsmith wrote:Let's test from the command line before we try to set up a check command.

Mine for example:

Code: Select all

[root@xi libexec]# ./check_nrpe -H 192.168.x.x -c checkcpu
OK: CPU load is ok.|'total 5m'=5%;80;90 'total 1m'=4%;80;90 'total 5s'=9%;80;90
[root@fikc-nagxidev01 libexec]# ./check_nrpe -H 10.x.x.91 -c checkcpu
NRPE: Command 'checkcpu' not defined
[root@fikc-nagxidev01 libexec]#

Re: NRPE checks do not work against Windows hosts

Posted: Wed Nov 25, 2015 12:06 am
by Box293
What is the output of:

Code: Select all

./check_nrpe -H 10.x.x.91

Re: NRPE checks do not work against Windows hosts

Posted: Wed Nov 25, 2015 5:08 pm
by dlukinski
Box293 wrote:What is the output of:

Code: Select all

./check_nrpe -H 10.x.x.91

Remote client (0.3.9) reports that "it seem to doing fine"

Re: NRPE checks do not work against Windows hosts

Posted: Wed Nov 25, 2015 6:58 pm
by Box293
I've tested the original NSC.ini file you first uploaded with NSClient 0.3.9.330 and when I try your command:

Code: Select all

./check_nrpe -H 192.168.x.x -c checkcpu
I get:

Code: Select all

ERROR: Missing argument exception.
Something is not right.

Can you please re-post your current NSC.ini file.

Is this the only .ini file in your NSClient++ directory?

Re: NRPE checks do not work against Windows hosts

Posted: Tue Jan 05, 2016 12:55 pm
by dlukinski
Box293 wrote:I've tested the original NSC.ini file you first uploaded with NSClient 0.3.9.330 and when I try your command:

Code: Select all

./check_nrpe -H 192.168.x.x -c checkcpu
I get:

Code: Select all

ERROR: Missing argument exception.
Something is not right.

Can you please re-post your current NSC.ini file.

Is this the only .ini file in your NSClient++ directory?
Thank you, finally got this one working with 0.4.3 client (your site has client version 5 mentioned in some checks, must be some VERY BETA?)
Have multiple CPU and RAM checks working already and proceeding futher

Re: NRPE checks do not work against Windows hosts

Posted: Tue Jan 05, 2016 1:58 pm
by hsmith
We're advertising to use NSClient 5.x? Can you point me to those documents? To the best of my knowledge it's not been tested against our stuff.

Re: NRPE checks do not work against Windows hosts

Posted: Tue Jan 05, 2016 4:52 pm
by dlukinski
hsmith wrote:We're advertising to use NSClient 5.x? Can you point me to those documents? To the best of my knowledge it's not been tested against our stuff.
Not you, box293 has it on his web-site (extra performance and counters checks)
- Believed I was replying to box293 (some other 3rd party Nagios guys has 0.5 client links on their web-sites too..)

Re: NRPE checks do not work against Windows hosts

Posted: Tue Jan 05, 2016 5:35 pm
by lmiltchev
Not you, box293 has it on his web-site (extra performance and counters checks)
- Believed I was replying to box293 (some other 3rd party Nagios guys has 0.5 client links on their web-sites too..)
I haven't seen this. Can you provide us with URL links to those sites?