Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- check process mysqld with pidfile /var/lib/mysql/li175-241.pid
- start program = "/etc/init.d/mysql start"
- stop program = "/etc/init.d/mysql stop"
- if failed port 3306 protocol mysql then restart
- if 5 restarts within 5 cycles then timeout
- 'mysqld' failed, cannot open a connection to INET[localhost:3306] via TCP
- tcp 0 0 173.230.135.241:3306 0.0.0.0:* LISTEN 14357/mysqld
- unix 2 [ ACC ] STREAM LISTENING 265228 14357/mysqld /var/run/mysqld/mysqld.sock
- 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 192.168.1.222 port 3306 protocol mysql then restart
- if failed unix "/var/run/mysqld/mysqld.sock" protocol mysql then restart
- 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
- check process mysqld with pidfile /var/run/mysqld/mysqld.pid
- group database
- start program "/root/scripts/restart.mysql.sh" with timeout 900 seconds
- stop program = "/etc/init.d/mysql stop"
- if failed port 3306 protocol MYSQL then restart
- if failed unixsocket /var/run/mysqld/mysqld.sock protocol MYSQL then restart
- if 5 restarts within 5 cycles then timeout
- depends on mysql_bin
- depends on mysql_rc
Add Comment
Please, Sign In to add comment