Monitor if any process reaches more than 50% of CPU

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Monitor if any process reaches more than 50% of CPU

Post by srikanth.kallu »

Hi,

Is there any way i can monitor if any process uses more than 50% of CPU in AIX.

Thank you,
Srikanth.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitor if any process reaches more than 50% of CPU

Post by sreinhardt »

You would likely have to write a custom script that calls top or ps and scraps the data. However I highly doubt there is a script already in place for this, as it is somewhat arbitrary results being that it would be likely completely separate processes each time.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Monitor if any process reaches more than 50% of CPU

Post by snapon_admin »

We haven't actually implemented it yet, but we were just looking at this plugin the other day that looks like it might work for you. I don't believe it tells you if a process is using over 50%, but it does list the top 5 CPU heavy processes: http://exchange.nagios.org/directory/Pl ... rs/details
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitor if any process reaches more than 50% of CPU

Post by slansing »

Nice find snapon, you could write a wrapper script around that one to pull down the top 5 processes, and alert off of them.
Locked