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
38019
Files:
FileDescription
check_bad_apache_procs.shBASH Script
Nagios CSP

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_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.