Results 1 to 2 of 2

Thread: Monit for Zimbra 8.x

  1. #1
    Join Date
    Nov 2010
    Posts
    54
    Rep Power
    4

    Question Monit for Zimbra 8.x

    I am sharing my monit configuration for Zimbra 8.x.

    1) Note that I have modified the services dependencies so that they depend one on another.
    That means that when the first of them to start is detected as failed all the other services are stopped prior to start it again.

    That might be safer but not optimal in some scenarios. Be sure to edit the configuration if needed.

    2) Proxy services, as I don't use them, and other services are not listed here. So please, do not take this configuration as a complete monit template for Zimbra.

    Here you are:

    Code:
    #zimbra processes                           
    
    check process slapd with pidfile /opt/zimbra/openldap/var/run/slapd.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/ldap start" with timeout 120 seconds
            stop program = "/bin/su - zimbra /opt/zimbra/bin/ldap stop" with timeout 120 seconds  
            if children > 250 then alert                                                          
            group zimbra
    
    check process zmconfigdctl with pidfile /opt/zimbra/log/zmconfigdctl.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/zmconfigdctl start"
            stop program = "/bin/su - zimbra /opt/zimbra/bin/zmconfigdctl stop"
            if children > 250 then alert
    	depends on slapd
            group zimbra
    
    check process logswatch with pidfile /opt/zimbra/log/logswatch.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/zmlogswatchctl start"
            stop program = "/bin/su - zimbra /opt/zimbra/bin/zmlogswatchctl stop"  
            if children > 250 then alert
    	depends on zmconfigdctl                                      
            group zimbra
    
    #Only for commercial version of zimbra
    #check process zmconvertdmon with pidfile /opt/zimbra/log/zmconvertdmon.pid
    #        start program = "/bin/su - zimbra /opt/zimbra/bin/zmconvertctl start"
    #        stop program = "/bin/su - zimbra /opt/zimbra/bin/zmconvertctl stop"
    #        if children > 250 then alert
    #        depends on postfix
    #        group zimbra
    
    check process mysql with pidfile /opt/zimbra/db/mysql.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/mysql.server start" with timeout 120 seconds
            stop program = "/bin/su - zimbra /opt/zimbra/bin/mysql.server stop" with timeout 120 seconds  
            if children > 250 then alert
    	depends on logswatch
            group zimbra
    
    check process jetty with pidfile /opt/zimbra/log/zmmailboxd_java.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/zmmailboxdctl start" with timeout 240 seconds
            stop program = "/bin/su - zimbra /opt/zimbra/bin/zmmailboxdctl stop" with timeout 240 seconds  
            if children > 250 then alert                                                                   
    	depends on mysql
            group zimbra
    
    check process amavis with pidfile /opt/zimbra/log/amavisd.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/zmamavisdctl start" with timeout 120 seconds
            stop program = "/bin/su - zimbra /opt/zimbra/bin/zmamavisdctl stop" with timeout 120 seconds
            if children > 250 then alert
    	depends on jetty
            group zimbra
    
    check process clamd with pidfile /opt/zimbra/log/clamd.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/zmclamdctl start" with timeout 120 seconds
            stop program = "/bin/su - zimbra /opt/zimbra/bin/zmclamdctl stop" with timeout 120 seconds
            if children > 250 then alert
            depends on amavis
            group amavis
    
    check process freshclam with pidfile /opt/zimbra/log/freshclam.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/zmfreshclamctl start"
            stop program = "/bin/su - zimbra /opt/zimbra/bin/zmfreshclamctl stop"
            if children > 250 then alert
            depends on clamd
            group zimbra
    
    check process snmp-swatch with pidfile /opt/zimbra/log/swatch.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/zmswatchctl start"
            stop program = "/bin/su - zimbra /opt/zimbra/bin/zmswatchctl stop"
            if children > 250 then alert
    	depends on freshclam
    	group zimbra
    
    check process apache with pidfile /opt/zimbra/log/httpd.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/zmapachectl start"
            stop program = "/bin/su - zimbra /opt/zimbra/bin/zmapachectl stop"  
            if children > 250 then alert                                        
            depends on snmp-swatch                                                    
            group zimbra
    
    check process postfix with pidfile /opt/zimbra/data/postfix/spool/pid/master.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/postfix start" with timeout 120 seconds
            stop program = "/bin/su - zimbra /opt/zimbra/bin/postfix stop" with timeout 120 seconds
            if children > 250 then alert
            depends on apache
            group zimbra
    
    check process cyrus-sasl with pidfile /opt/zimbra/data/sasl2/state/saslauthd.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/zmsaslauthdctl start"
            stop program = "/bin/su - zimbra /opt/zimbra/bin/zmsaslauthdctl stop"
            if children > 250 then alert
            depends on postfix
            group zimbra
    
    check process opendkim with pidfile /opt/zimbra/log/opendkim.pid
            start program = "/bin/su - zimbra /opt/zimbra/bin/zmopendkimctl start"
            stop program = "/bin/su - zimbra /opt/zimbra/bin/zmopendkimctl stop"
            if children > 250 then alert
            depends on cyrus-sasl
            group zimbra
    Enjoy !
    Adrian Gibanel, IT Manager

    "be free, be innovative, bTactic"

    Av. Balmes, 34 4rt 1a B | Lleida, Spain 25006

    www.btactic.com

  2. #2
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,285
    Rep Power
    10

    Default

    It's really bad form to post to a thread that's been dead for 4 years... Much more productive to start a new one.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •