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
Owner
Hits
150684
$ 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!