Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Count a running process number
151442
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!
$ 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)
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)
Reviews (0)
Be the first to review this listing!