check file apache_bin with path /dh/apache2/apache2-ps18939/apache2-ps18939-httpd
# if failed checksum and
# expect the sum 8f7f419955cefa0b33a2ba316cba3659 then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
permission, uid, gid
} with the mail-format { subject: Alarm! }
group server
check process apache with pidfile /var/run/apache2-ps18939-httpd.pid
start program = "/etc/init.d/httpd2 start" with timeout 60 seconds
stop program = "/etc/init.d/httpd2 stop"
# if cpu > 60% for 2 cycles then alert
# if cpu > 80% for 5 cycles then restart
if totalmem > 400.0 MB for 5 cycles then restart
if children > 250 then restart
# if loadavg(5min) greater than 10 for 8 cycles then stop
and request "/wp/index.php"
then restart
# if failed port 443 type tcpssl protocol http
# with timeout 15 seconds
# then restart
if 3 restarts within 5 cycles then timeout
depends on apache_bin
group server
#