Page 1 of 1

CPU and Memory utilization for a particular process.

Posted: Fri Dec 01, 2017 6:23 am
by raamardhani7
We have a requirement where we ned to find the cpu utilization and memory utilization for a particular process running on a server.
For example we have sqlserver service runnning on our windows servers. We need to find out cpu and memory consumption for this service.
If it execedes 80% or any desired threshold value of cpu or memory consumption, we need to trigger an alert from nagios.
Can you please confirm if it has been implemented before. If so can you please sahre the details so that we can refer that and move ahead.

Re: CPU and Memory utilization for a particular process.

Posted: Fri Dec 01, 2017 10:34 am
by npolovenko
Hello, @raamardhani7. Are trying to monitor the process on a Linux server or a windows server? What kind of agent are you using?
So far I've found 2 plugins, 1 to monitor the process memory usage and another one to monitor the process CPU usage. Both plugins have critical thresholds so you can set the thresholds and have Nagios alert you.
https://exchange.nagios.org/directory/P ... ge/details
https://exchange.nagios.org/directory/P ... ge/details

Re: CPU and Memory utilization for a particular process.

Posted: Mon Dec 04, 2017 8:37 am
by raamardhani7
Hello,

We are trying to monitor the process on a Windows server.
We are using ns-client agent.

Re: CPU and Memory utilization for a particular process.

Posted: Mon Dec 04, 2017 11:08 am
by npolovenko
@raamardhani7, Here're a few plugins that I found on the Exchange. Let us know if any of these would work for you.

https://exchange.nagios.org/directory/P ... TK/details

There's also this PowerShell plugin that checks the memory used by a process.
https://exchange.nagios.org/directory/P ... ss/details

Also, there's this plugin:
https://exchange.nagios.org/directory/P ... 29/details

Re: CPU and Memory utilization for a particular process.

Posted: Fri Dec 15, 2017 8:47 am
by raamardhani7
Hi Team,
We checked the below plugins but we are not getting desired output.
We are looking for CPU and memory utilization by a particular process(a specific single process), and we want to check it on a windows server.

Re: CPU and Memory utilization for a particular process.

Posted: Fri Dec 15, 2017 2:03 pm
by tgriep
This plugin looks like it would do what you are looking for.
https://www.itefix.net/check_winprocess

The below example is checking Firefox and it will check the process with CPU time longer than five minutes and if it is using more than 100 Meg of RAM and return CRITICAL if there was at least one process over the limit.

Code: Select all

check_winprocess.exe  --filter "imagename eq firefox.exe" --filter "MEMUSAGE gt 1102400" --filter "cputime gt 00:05:00" --critical 1
If this is not working for you, we would need to have more details on what you are looking for.