]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- monit file for mysql
authorPaweł Gołaszewski <blues@pld-linux.org>
Fri, 16 Jul 2004 12:36:26 +0000 (12:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql.monitrc -> 1.1

mysql.monitrc [new file with mode: 0644]

diff --git a/mysql.monitrc b/mysql.monitrc
new file mode 100644 (file)
index 0000000..f5467f8
--- /dev/null
@@ -0,0 +1,23 @@
+check process mysql with pidfile /var/lib/mysql/mysql.pid
+       group database
+       start program = "/etc/init.d/mysql restart"
+       stop program = "/etc/init.d/mysql stop"
+       if failed unix /var/lib/mysql/mysql.sock 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/sbin/mysqld
+       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 754 then unmonitor
+       if failed uid root then unmonitor
+       if failed gid root then unmonitor
+
This page took 0.125828 seconds and 4 git commands to generate.