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.

github_nagios_monitor_cpu.jpg



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: https://dennyzhang.com/nagois_monitor_process_cpu

Connect with Denny In LinkedIn Or MailList

Leave a Reply

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