« Monit » : différence entre les versions

Aller à la navigation Aller à la recherche
533 octets ajoutés ,  il y a 12 ans
m
(→‎Pour les impatients : correction)
Ligne 207 : Ligne 207 :
         stop program  = "/etc/init.d/imapproxy stop"
         stop program  = "/etc/init.d/imapproxy stop"
         if failed host 10.9.8.3 port 1143 then restart
         if failed host 10.9.8.3 port 1143 then restart
=== mdadm ===
# cat /etc/monit/conf.d/mdadm
check process mdadm with pidfile /var/run/mdadm/monitor.pid
    start program = "/etc/init.d/mdadm start"
    stop  program = "/etc/init.d/mdadm stop"
    if 5 restarts within 5 cycles then timeout


=== mysql ===
=== mysql ===
Ligne 233 : Ligne 241 :
     if failed uid root then unmonitor
     if failed uid root then unmonitor
     if failed gid root then unmonitor
     if failed gid root then unmonitor
=== ntp ===
# cat /etc/monit/conf.d/ntp
check process ntpd with pidfile /var/run/ntpd.pid
    start program = "/etc/init.d/ntp start"
    stop  program = "/etc/init.d/ntp stop"
    if failed host 127.0.0.1 port 123 type udp then alert
    if 5 restarts within 5 cycles then timeout


=== postfix ===
=== postfix ===
Administrators, autoreview, Vérificateurs d’utilisateurs, checkuser-log, editor, reviewer, usersnoop
3 321

modifications

Menu de navigation