Processes

check_ps.sh

Description:

sh-compliant script to check a specific process and its cpu/memory utilization (PNP Template included)

Current Version

Last Release Date

June 15, 2009

Compatible With


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
Description check_ps.sh is a Nagios plugin to check a specific process via ps. You may provide any string as an argument to match a specific process. Please note that the output could be distorted if the argument matches various processes, so please make sure to use unique strings to match a process. Version Version 1.0, 2009, Mike Adolphs (http://www.matejunkie.com/) -h/--help Output check_ps.sh -p firefox -w 10 -c 20 -t cpu Options: -p/--process) You need to provide a string for which the ps output is then then greped. -w/--warning) Defines a warning level for a target which is explained below. Default is: off -c/--critical) Defines a critical level for a target which is explained below. Default is: off -t/--target) A target can be defined via -t. Choose between cpu and mem. Default is: mem Output example user@host: ~ $ ./check_ps.sh -p firefox OK - Process: firefox, User: user, CPU: 12.4%, RAM: 17.2%, Start: May29, CPU Time: 12907 min | 'cpu'=12.4 'memory'=17.2 'cputime'=12907 user@host: ~ $ ./check_ps.sh -p firefox -w 5 -c 10 CRITICAL - Process: firefox, User: user, CPU: 12.4%, RAM: 17.2%, Start: May29, CPU Time: 12908 min | 'cpu'=12.4 'memory'=17.2 'cputime'=12908 user@host: ~ $ ./check_ps.sh -p firefox -w 5 -c 20 WARNING - Process: firefox, User: user, CPU: 12.4%, RAM: 17.2%, Start: May29, CPU Time: 12909 min | 'cpu'=12.4 'memory'=17.2 'cputime'=12909 user@host: ~ $ ./check_ps.sh -p firefox -w 20 -c 25 OK - Process: firefox, User: user, CPU: 12.4%, RAM: 17.2%, Start: May29, CPU Time: 12909 min | 'cpu'=12.4 'memory'=17.2 'cputime'=12909 ] user@host: ~ $ ./check_ps.sh -p firefox -w 5 -c 10 -t cpu CRITICAL - Process: firefox, User: user, CPU: 12.4%, RAM: 17.2%, Start: May29, CPU Time: 12923 min | 'cpu'=12.4 'memory'=17.2 'cputime'=12923 user@host: ~ $ ./check_ps.sh -p firefox -w 10 -c 5 Please adjust your warning/critical thresholds. The warning must be lower than the critical level! user@host: ~ $ ./check_ps.sh -p firefox -w 10 Please also set a critical value when you want to use warning/critical thresholds! user@host: ~ $ ./check_ps.sh -p firefox -c 10 Please also set a warning value when you want to use warning/critical thresholds! Changelog
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
2