NRPE checks do not work against Windows hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: NRPE checks do not work against Windows hosts

Post 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!!!!!!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NRPE checks do not work against Windows hosts

Post 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
Former Nagios Employee.
me.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: NRPE checks do not work against Windows hosts

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

Re: NRPE checks do not work against Windows hosts

Post by Box293 »

What is the output of:

Code: Select all

./check_nrpe -H 10.x.x.91
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: NRPE checks do not work against Windows hosts

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

Re: NRPE checks do not work against Windows hosts

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: NRPE checks do not work against Windows hosts

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NRPE checks do not work against Windows hosts

Post 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.
Former Nagios Employee.
me.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: NRPE checks do not work against Windows hosts

Post 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..)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE checks do not work against Windows hosts

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked