Page 1 of 1

Plugin to check Number Of CPU Core On windows and Linux

Posted: Tue Mar 15, 2016 2:36 pm
by CloudOps
Hi Everyone,

Is there any Plugin available which will give Number of CPU core there on Windows /Linux servers.

Thanks,

Re: Plugin to check Number Of CPU Core On windows and Linux

Posted: Tue Mar 15, 2016 3:36 pm
by CloudOps
Hi Everyone,
I am able to pull the information through WMI, But output is coming two times :

[root@VM-NAGIOSXI-TEST libexec]# ./check_nrpe -H 172.26.2.13 -c CheckWMI -a "Query=Select NumberOfLogicalProcessors from win32_Processor" query=1
NumberOfLogicalProcessors=4NumberOfLogicalProcessors=4|'wmi query'=2
[root@VM-NAGIOSXI-TEST libexec]#

My requirement is only to get "Number Of LogicalProcessor=4"

Can anyone help me in setting the query correctly??

Thanks,

Re: Plugin to check Number Of CPU Core On windows and Linux

Posted: Tue Mar 15, 2016 4:56 pm
by hsmith
Does this happen for all WMI checks, or just the CPU one?

Re: Plugin to check Number Of CPU Core On windows and Linux

Posted: Wed Mar 16, 2016 10:56 am
by CloudOps
hsmith wrote:Does this happen for all WMI checks, or just the CPU one?
Thanks hsmith

Its working fine now.Issue was, the server got Two CPU, that's why output was coming two times.You can close this thread.

Thanks