CPU and Memory utilization for a particular process.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

CPU and Memory utilization for a particular process.

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: CPU and Memory utilization for a particular process.

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: CPU and Memory utilization for a particular process.

Post by raamardhani7 »

Hello,

We are trying to monitor the process on a Windows server.
We are using ns-client agent.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: CPU and Memory utilization for a particular process.

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: CPU and Memory utilization for a particular process.

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: CPU and Memory utilization for a particular process.

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked