Page 1 of 1
Top 5 Memory n Cpu Consuming Process
Posted: Wed Oct 22, 2014 12:20 pm
by sh.shekhar89
Hi All,
Can we check top 5 memory and cpu consuming process in nagios for windows clinets??
If any one knows,please guide me how to configure.
Thanx
Re: Top 5 Memory n Cpu Consuming Process
Posted: Wed Oct 22, 2014 3:01 pm
by slansing
You would need to set up a separate plugin/check that collates all of your windows service check returns, then displays that as a service check result somewhere. You could also scrape the CGI's/status.dat for this information and figure out a way to configure that in the Core web interface. There is no guide for this per se.
Re: Top 5 Memory n Cpu Consuming Process
Posted: Wed Oct 22, 2014 3:09 pm
by eloyd
You can definitely get this information as mentioned, but aside from simply collecting it, what do you want to do with it? In other words, what would you consider to be the warning and critical criteria for alerting? Or do you simply want to gather the information and store it away for future use?
Re: Top 5 Memory n Cpu Consuming Process
Posted: Wed Oct 22, 2014 4:57 pm
by lmiltchev
sh.shekhar89, did slansing and eloyd answer your question? Is it safe to lock this topic?
Re: Top 5 Memory n Cpu Consuming Process
Posted: Thu Feb 05, 2015 1:26 pm
by belvdr
I am in the same boat.
I have a Windows server that I monitor CPU usage via SNMP. When a high CPU condition exists, the server becomes unresponsive to Windows protocols (WMI, RDP, etc). So, I am trying to write an event handler that dumps the top processes sorted by CPU usage. I need to do this via SNMP but am coming up short.
Anyone know how to find the top processes by CPU via SNMP?
Re: Top 5 Memory n Cpu Consuming Process
Posted: Fri Feb 06, 2015 3:17 pm
by abrist
I have looked through Microsoft's SNMP documentation (sparse as it is now officially deprecated by MS) and I do not see an oid that would return this specific information. You will most likely have to write a custom powershell script to do this.
So I have a question: If the windows server is not responding to network services when under high load, how will you run this event handler script on the server through an agent?
Re: Top 5 Memory n Cpu Consuming Process
Posted: Fri Feb 06, 2015 7:27 pm
by belvdr
SNMP queries still seem to go through, but MS protocols are hosed.
Re: Top 5 Memory n Cpu Consuming Process
Posted: Mon Feb 09, 2015 4:59 pm
by tmcdonald
Unfortunately I think abrist is right here - that's a fairly specific request for a single SNMP query and there doesn't appear to be an OID for it. If this information is available at all via SNMP you will need to do multiple checks in a custom script, sort them, then display the results accordingly.
Re: Top 5 Memory n Cpu Consuming Process
Posted: Mon Feb 09, 2015 5:26 pm
by eloyd
So this was a thread hijack and the op hasn't responded, but if they are still around, I would like to get an answer to my question, since it may help decide what the best path forward might be:
You can definitely get this information as mentioned, but aside from simply collecting it, what do you want to do with it? In other words, what would you consider to be the warning and critical criteria for alerting? Or do you simply want to gather the information and store it away for future use?
Re: Top 5 Memory n Cpu Consuming Process
Posted: Tue Feb 10, 2015 10:55 am
by abrist
@OP: Does any of this make sense or are any of the responses here helpful OP?