Page 1 of 1

NSClient - ERROR: No performance data from command: check_c

Posted: Thu Sep 14, 2017 5:22 pm
by alexbh
Hi everyone,

when I execute this command:

check_nt -H host40 -p 12489 -v CPULOAD -l 5,80,90 -s nagios

I recieve this error:

NSClient - ERROR: No performance data from command: check_cpu

which I dont understand because my command is defined like this:

check_command check_nt!CPULOAD!-l 5,80,90

more specific: why is a check_cpu being called if the command is executed with check_nt?

Thanks in advance!

Re: NSClient - ERROR: No performance data from command: chec

Posted: Fri Sep 15, 2017 1:56 pm
by mcapra
I'm by no means an NSClient++ expert, but I've dug around in the code a bit.

check_nt, and the NSClientServer, are kinda funky. They're basically glorified wrappers for general "NRPE" flavored operations. So that's why you're seeing "check_cpu" errors instead of "CPULOAD" errors; Because CPULOAD just calls check_cpu on the back-end.

As for why there's no performance data for check_cpu, can you share the NSClient++ version you currently have installed?

Have you also verified your Windows performance counters aren't misbehaving? NSClient++ just references those counters, and typically a lack of data can be attributed to those counters being absent or broken in some fashion.

Re: NSClient - ERROR: No performance data from command: chec

Posted: Fri Sep 15, 2017 2:13 pm
by dwasswa
Hi @alexbh,

Its possible the your are running the check_nrpe instead of the check_nt..

Also,just a quick guide:
The check_nt plugin collects data from the NSClient service running on a
Windows NT/2000/XP/2003 server.

Basically, check_nt tells NSClient to run a command on the windows machine.

The following commands are run by NSClient service....https://docs.nsclient.org/reference/win ... eckSystem/
Also see:
https://www.monitoring-plugins.org/doc/ ... ck_nt.html

Re: NSClient - ERROR: No performance data from command: chec

Posted: Fri Sep 15, 2017 2:14 pm
by dwasswa
Thanks @ mcapra

Re: NSClient - ERROR: No performance data from command: chec

Posted: Fri Sep 15, 2017 3:01 pm
by dwhitfield
dwasswa wrote: The check_nt plugin collects data from the NSClient service running on a
Windows NT/2000/XP/2003 server.
Well, not just those...you can use it on later versions too. It might be useful to know what version of Windows though.

Re: NSClient - ERROR: No performance data from command: chec

Posted: Tue Sep 19, 2017 10:30 am
by alexbh
Hi,

thanks for your answers, I eventually fixed. I changed many things: added a password in the .ini file, version 0.3 to 0.4 ... so at the end i didnt know what fixed it.

Thanks,
Alex.

Re: NSClient - ERROR: No performance data from command: chec

Posted: Tue Sep 19, 2017 10:35 am
by tmcdonald
Great to hear it! Did you have any further (related) questions or are we okay to close this thread?

Re: NSClient - ERROR: No performance data from command: chec

Posted: Wed Sep 20, 2017 4:43 pm
by alexbh
it can be closed,

thanks