Quote:
Originally Posted by phoenix There's only thirteen of them.
You could always contribute your findings to the wiki once you're done.  |
It's untested. Haven't even brought up monit yet. Anyone care to test? Give feedback?
This is for 4.5.1 Network Edition btw..
Code:
#zimbra processes
check process antivirus with pidfile /opt/zimbra/log/clamd.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmantivirusctl start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmantivirusctl stop' zimbra"
if children > 250 then alert
depends on ldap
group zimbra
check process ldap with pidfile /opt/zimbra/openldap-2.3.21/var/run/slapd.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/ldap start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/ldap stop' zimbra"
if children > 250 then alert
group zimbra
check process logwatch with pidfile /opt/zimbra/log/logswatch.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmlogswatchctl start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmlogswatchctl stop' zimbra"
if children > 250 then alert
group zimbra
check process mysql with pidfile /opt/zimbra/db/mysql.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/mysql start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/mysql stop' zimbra"
if children > 250 then alert
group zimbra
check process apache with pidfile /opt/zimbra/log/httpd.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmapachectl start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmapachectl stop' zimbra"
if children > 250 then alert
depends on tomcat
group zimbra
check process amavis with pidfile /opt/zimbra/log/amavisd.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmamavisdctl start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmamavisdctl stop' zimbra"
if children > 250 then alert
group zimbra
check process tomcat with pidfile /opt/zimbra/log/zmtomcatmgr.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/tomcat start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/tomcat stop' zimbra"
if children > 250 then alert
depends on ldap
group zimbra
check process cyrus-sasl with pidfile /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state/saslauthd.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmsaslauthdctl start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmsaslauthdctl stop' zimbra"
if children > 250 then alert
depends on ldap
group zimbra
check process snmp-swatch with pidfile /opt/zimbra/log/swatch.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmswatchctl start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmswatchctl stop' zimbra"
if children > 250 then alert
group zimbra
check process postfix with pidfile /opt/zimbra/postfix-2.2.9/spool/pid/master.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/postfix start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/postfix stop' zimbra"
if children > 250 then alert
depends on ldap
group zimbra
check process zmmtaconfigctl with pidfile /opt/zimbra/log/zmmtaconfig.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmmtaconfigctl start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmmtaconfigctl stop' zimbra"
if children > 250 then alert
depends on postfix
group zimbra
check process freshclam with pidfile /opt/zimbra/log/freshclam.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmclamdctl start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmclamdctl stop' zimbra"
if children > 250 then alert
depends on antivirus
group zimbra
check process zmconvertdmon with pidfile /opt/zimbra/log/zmconvertdmon.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmconvertctl start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/zmconvertctl stop' zimbra"
if children > 250 then alert
depends on postfix
group zimbra
check process mysqllogger with pidfile /opt/zimbra/logger/db/mysql.pid
start program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/logmysql start' zimbra"
stop program = "/sbin/runuser --shell=/bin/bash --command='/opt/zimbra/bin/logmysql stop' zimbra"
if children > 250 then alert
depends on mysql
group zimbra