|
|
@@ -2,15 +2,17 @@
|
|
|
## @l_prefix@/etc/monit/monitrc - monit control file
|
|
|
##
|
|
|
|
|
|
+# for examples, see http://www.tildeslash.com/monit/examples.html
|
|
|
+
|
|
|
# run as daemon with polling intervals of n seconds
|
|
|
set daemon 120
|
|
|
|
|
|
-# startup web interface
|
|
|
-set httpd
|
|
|
- port 99
|
|
|
- address 127.0.0.1
|
|
|
- allow 127.0.0.1
|
|
|
-ssl disable
|
|
|
+# web interface
|
|
|
+#set httpd
|
|
|
+# port 99
|
|
|
+# address 127.0.0.1
|
|
|
+# allow 127.0.0.1
|
|
|
+#ssl disable
|
|
|
|
|
|
# send alerts via following mail server
|
|
|
set mailserver 127.0.0.1
|
|
|
@@ -19,10 +21,15 @@ set mail-format { from: monit@localhost }
|
|
|
# log via syslog (OSSP fsl) by default
|
|
|
set logfile syslog
|
|
|
|
|
|
-# example for MySQL 4, see also http://www.tildeslash.com/monit/examples.html
|
|
|
-#check mysql4 with pidfile @l_prefix@/var/mysql4/mysqld.pid
|
|
|
-# start program = "@l_prefix@/etc/rc.d/rc.mysql4 start"
|
|
|
-# stop program = "@l_prefix@/etc/rc.d/rc.mysql4 stop"
|
|
|
+# disk usage on root file system
|
|
|
+#check device fs-root with path /
|
|
|
+# if space usage > 90% then alert
|
|
|
+# alert root@localhost
|
|
|
+
|
|
|
+# MySQL
|
|
|
+#check process mysql with pidfile @l_prefix@/var/mysql/mysqld.pid
|
|
|
+# start program = "@l_prefix@/etc/rc.d/rc.mysql start"
|
|
|
+# stop program = "@l_prefix@/etc/rc.d/rc.mysql stop"
|
|
|
# if failed host 127.0.0.1 port 3306 type TCP then restart
|
|
|
# if 5 restarts within 5 cycles then timeout
|
|
|
# alert root@localhost
|