Home Directory Plugins Security check_bad_apache_procs.sh

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

check_bad_apache_procs.sh

Current Version
1.0
Last Release Date
2013-06-10
Compatible With
  • Nagios 3.x
License
GPL
Hits
37610
Files:
FileDescription
check_bad_apache_procs.shBASH Script
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_bad_apache_procs.sh
This is a simple BASH script that checks that only the correct Apache processes are running, and that no other processes (such as PERL scripts) are running as Apache.

If it returns OK, it includes the text "0 Bad apache Processes Running". If it fails, it returns the process IDs of the processes running as Apache that shouldn't be there.

It was written for CentOS and RHEL 5 & 6, and Fedora. It may require some tweaking to work with other distributions.