Browse Source

modifying package: monit-4.1.1 20040203 -> 20040205

Christoph Schug 22 years ago
parent
commit
4f7ca87408
3 changed files with 20 additions and 13 deletions
  1. 1 1
      monit/monit.spec
  2. 17 10
      monit/monitrc
  3. 2 2
      monit/rc.monit

+ 1 - 1
monit/monit.spec

@@ -34,7 +34,7 @@ Class:        EVAL
 Group:        System
 License:      GPL
 Version:      4.1.1
-Release:      20040203
+Release:      20040205
 
 #   package options
 %option       with_fsl   yes

+ 17 - 10
monit/monitrc

@@ -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

+ 2 - 2
monit/rc.monit

@@ -43,7 +43,7 @@
 
 %reload -u @l_susr@
     rcService monit enable yes || exit 0
-    @l_prefix@/bin/monit restart
+    @l_prefix@/bin/monit reload
 
 %daily -u @l_susr@
     rcService monit enable yes || exit 0
@@ -51,6 +51,6 @@
         -n ${monit_log_numfiles} -s ${monit_log_minsize} -d \
         -z ${monit_log_complevel} -o @l_rusr@ -g @l_rgrp@ -m 644 \
         -P "${monit_log_prolog}" \
-        -E "${monit_log_epilog}" \
+        -E "${monit_log_epilog} && rc monit reload" \
         @l_prefix@/var/monit/monit.log