#!/bin/bash


count_httpd=`ps -aux | grep httpd | wc -l`

if [ $count_httpd -gt 50 ] && [ $count_httpd -lt 70 ]; then
	echo "Warning! HTTPD process is above 50 but less than 70"
elif [ $count_httpd -gt 70 ]; then
	echo "Critical! HTTPD process is above 70"
else
	echo "HTTPD is good"
fi






#If this warning or critical alert is showing in nagios .. then we will have to try to access some of the sites like nellu.net, leftclicknews.com, cliffsupport.com, logitechvideoconferencing.com, and if they are not loading, we will have  to restart Apache Web Server.
