Plugin to check Number Of CPU Core On windows and Linux

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CloudOps
Posts: 88
Joined: Mon Feb 08, 2016 12:52 am

Plugin to check Number Of CPU Core On windows and Linux

Post by CloudOps »

Hi Everyone,

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

Thanks,
CloudOps
Posts: 88
Joined: Mon Feb 08, 2016 12:52 am

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

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

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

Post by hsmith »

Does this happen for all WMI checks, or just the CPU one?
Former Nagios Employee.
me.
CloudOps
Posts: 88
Joined: Mon Feb 08, 2016 12:52 am

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

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