check host localhost with address 127.0.0.1 if failed ping then alert if failed port 3306 protocol mysql then alert
check process apache with pidfile /var/run/httpd.pid start program = "/etc/init.d/apache2 start" stop program = "/etc/init.d/apache2 stop"
Monit is a small Open Source utility for managing and monitoring Unix systems. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.
Monit – Easy, proactive monitoring of processes, programs, files, directories, filesystems and hosts →