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


Remember Me

Directory Tree

Count a running process number

1 vote
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.

$ 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)