Nagios Plugin: Monitor Service CPU

Monitoring memory usage of a given process is critical for trouble shooting and issues escalation. Quite strange that no available public nagios plugin for this can be found. Thus I write one.


Below linux command can find how much CPU a given process use

ps -p $pid -o %cpu

Here comes the plugin in GitHub.Follow @dennyzhang

  • The plugin use ps command to figure out the virtual memory and resident memory.
  • It will also generate the performance stastic data properly, which works well with nagiosgraph.

More Reading:

Original URL:

Connect with Denny In LinkedIn Or MailList

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.