Page 1 of 2

cpu check plugin

Posted: Mon Nov 23, 2015 11:33 am
by bobt88
Hello
i need to check the top 10 processes on windows which use the most cpu with snmp, how would i get to do that?

Re: cpu check plugin

Posted: Mon Nov 23, 2015 11:49 am
by hsmith
What version of Windows? SNMP support is limited in newer versions IIRC.

Re: cpu check plugin

Posted: Mon Nov 23, 2015 12:01 pm
by bobt88
snmp v1

Re: cpu check plugin

Posted: Mon Nov 23, 2015 12:03 pm
by hsmith
Which Windows OS is it? Server 2008 / Server 2012 / Windows XP / Windows ME, etc etc....

Re: cpu check plugin

Posted: Mon Nov 23, 2015 3:43 pm
by bobt88
windows 8.1

Re: cpu check plugin

Posted: Mon Nov 23, 2015 3:50 pm
by hsmith
Do you know if top 10 processes is something Windows SNMP lets you monitor?

Maybe take a look at these: https://technet.microsoft.com/en-us/lib ... 10%29.aspx
https://www.youtube.com/watch?v=RQRCWjVX8do

These are not guides written by us, so I cannot guarantee the validity/integrity of them.

I would look into WMI if I were you. https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Or use something like NSClient, which will make this so much easier on yourself.

Re: cpu check plugin

Posted: Mon Nov 23, 2015 4:18 pm
by bobt88
i know i can get if a process is running and its cpu time, i have no idea how to manage the oid to write a script , i need to be able to have this data so i can send it not only to nagios

Re: cpu check plugin

Posted: Mon Nov 23, 2015 4:28 pm
by hsmith
We can help you with the configuration of the Nagios client, and a limited amount with the WMI stuff. Writing a script for you to get all of that information on the Windows PC is going to be outside of the scope of this forum, especially if you're looking for it to be compatible with things other than Nagios. SNMP can be a very complicated thing, and if there is someone in your organization that understands it deeply, they may be able to help you script it/configure it. Until you are able to get the information you want from the Windows machine via SNMP, there is no way Nagios is going to be able to monitor it.

Re: cpu check plugin

Posted: Mon Nov 23, 2015 4:33 pm
by bobt88
ok, thank you for your help

Re: cpu check plugin

Posted: Mon Nov 23, 2015 4:46 pm
by hsmith
Let us know if there is anything we can do for you. I'm just going to mention again that NSClient will make your life 1000x easier for this use case.