NSClient - ERROR: No performance data from command: check_c

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
alexbh
Posts: 3
Joined: Thu Sep 14, 2017 4:19 pm

NSClient - ERROR: No performance data from command: check_c

Post 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!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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.
Former Nagios employee
https://www.mcapra.com/
dwasswa

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

Post 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
dwasswa

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

Post by dwasswa »

Thanks @ mcapra
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

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

Post 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.
alexbh
Posts: 3
Joined: Thu Sep 14, 2017 4:19 pm

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

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Great to hear it! Did you have any further (related) questions or are we okay to close this thread?
Former Nagios employee
alexbh
Posts: 3
Joined: Thu Sep 14, 2017 4:19 pm

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

Post by alexbh »

it can be closed,

thanks
Locked