Page 1 of 1

NSCClient++ check_nt CPULOAD

Posted: Tue Sep 12, 2017 10:37 am
by FrontlineIT
Happy Tuesday,

When it comes to the NSClient++, we are running 0.3.9 and have CPULOAD monitors setup across the board using check_nt. We are curious on what data the NSClient is pulling when reporting back on the CPU %. Would someone be able to assist?

Thanks!

Re: NSCClient++ check_nt CPULOAD

Posted: Tue Sep 12, 2017 10:38 am
by FrontlineIT
For example, is the client getting its data from Resource Monitor? Thanks again.

Re: NSCClient++ check_nt CPULOAD

Posted: Tue Sep 12, 2017 10:58 am
by mcapra
FrontlineIT wrote:We are curious on what data the NSClient is pulling when reporting back on the CPU %
That's probably a better question for the NSClient++ forums.

I am not an expert on NSClient++, but as far as I can tell checkCPU (for 0.3.9 anyway) references the following Windows performance counters:

Code: Select all

#define C_SYSTEM_CPU_BUFFER_TIME _T("CPUBufferSize") 
#define C_SYSTEM_CPU _T("SystemTotalProcessorTime")
#define C_SYSTEM_MEM_CPU_DEFAULT _T("\\Processor(_total)\\% Processor Time")
And does some clever math on them.

Re: NSCClient++ check_nt CPULOAD

Posted: Tue Sep 12, 2017 2:06 pm
by tgriep
Thanks @mcapra for the help. @FrontlineIT let us know if you have any further questions.