Last active
August 29, 2015 14:18
-
-
Save abdallah/38679037f599e35e7929 to your computer and use it in GitHub Desktop.
Monit configurations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
files in /etc/monit/conf.d/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process apache with pidfile /var/run/apache2.pid | |
group www | |
start program = "/etc/init.d/apache2 start" | |
stop program = "/etc/init.d/apache2 stop" | |
if failed host 127.0.0.1 port 80 | |
protocol HTTP request "/monit/token" then restart | |
if 5 restarts within 5 cycles then timeout | |
depends on apache_bin | |
depends on apache_rc | |
check file apache_bin with path /usr/sbin/apache2 | |
group www | |
if failed checksum then unmonitor | |
if failed permission 755 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor | |
check file apache_rc with path /etc/init.d/apache2 | |
group www | |
if failed checksum then unmonitor | |
if failed permission 755 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process mysql with pidfile /var/run/mysqld/mysqld.pid | |
group database | |
start program = "/etc/init.d/mysql start" | |
stop program = "/etc/init.d/mysql stop" | |
if failed host 127.0.0.1 port 3306 protocol mysql then restart | |
if 5 restarts within 5 cycles then timeout | |
depends on mysql_bin | |
depends on mysql_rc | |
check file mysql_bin with path /usr/bin/mysql | |
group database | |
if failed checksum then unmonitor | |
if failed permission 755 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor | |
check file mysql_rc with path /etc/init.d/mysql | |
group database | |
if failed checksum then unmonitor | |
if failed permission 755 then unmonitor | |
if failed uid root then unmonitor | |
if failed gid root then unmonitor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment