Guest User

Untitled

a guest
Oct 23rd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. check process mysqld with pidfile /var/lib/mysql/li175-241.pid
  2. start program = "/etc/init.d/mysql start"
  3. stop program = "/etc/init.d/mysql stop"
  4. if failed port 3306 protocol mysql then restart
  5. if 5 restarts within 5 cycles then timeout
  6.  
  7. 'mysqld' failed, cannot open a connection to INET[localhost:3306] via TCP
  8.  
  9. tcp 0 0 173.230.135.241:3306 0.0.0.0:* LISTEN 14357/mysqld
  10. unix 2 [ ACC ] STREAM LISTENING 265228 14357/mysqld /var/run/mysqld/mysqld.sock
  11.  
  12. check process mysql with pidfile /var/run/mysqld/mysqld.pid
  13. group database
  14. start program = "/etc/init.d/mysql start"
  15. stop program = "/etc/init.d/mysql stop"
  16. #if failed host 192.168.1.222 port 3306 protocol mysql then restart
  17. if failed unix "/var/run/mysqld/mysqld.sock" protocol mysql then restart
  18. depends on mysql_bin
  19. depends on mysql_rc
  20.  
  21. check file mysql_bin with path /usr/bin/mysql
  22. group database
  23. if failed checksum then unmonitor
  24. if failed permission 755 then unmonitor
  25. if failed uid root then unmonitor
  26. if failed gid root then unmonitor
  27.  
  28. check file mysql_rc with path /etc/init.d/mysql
  29. group database
  30. if failed checksum then unmonitor
  31. if failed permission 755 then unmonitor
  32. if failed uid root then unmonitor
  33. if failed gid root then unmonitor
  34.  
  35. check process mysqld with pidfile /var/run/mysqld/mysqld.pid
  36. group database
  37. start program "/root/scripts/restart.mysql.sh" with timeout 900 seconds
  38. stop program = "/etc/init.d/mysql stop"
  39. if failed port 3306 protocol MYSQL then restart
  40. if failed unixsocket /var/run/mysqld/mysqld.sock protocol MYSQL then restart
  41. if 5 restarts within 5 cycles then timeout
  42. depends on mysql_bin
  43. depends on mysql_rc
Add Comment
Please, Sign In to add comment