Home Directory Plugins Operating Systems Linux Count a running process number

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Count a running process number

Rating
1 vote
Favoured:
0
Hits
151602
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!
You can count any process, and you can add warning & critical thresholds, both low and high. For example:

$ check_ps_count.sh -p bind
OK: bind found 1 time
Tested under Ubuntu Dapper 6.06 and Gentoo Linux.
Examples:



$ check_ps_count.sh -p apache

OK: apache found 9 times



$ check_ps_count.sh -p mysqld -hw 3 -hc 7

WARNING: mysqld is running more than 5 times (Treshold 3/7)



$ check_ps_count.sh -p bsdradius

CRITICAL: bsdradius not found



$ check_ps_count.sh -p exim -lw 5 -lc 3

CRITICAL: exim is running 1 time only (Treshold 5/3)