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

Count a running process number

Rating
1 vote
Favoured:
0
Hits
148554
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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)