Skip to content

Instantly share code, notes, and snippets.

@nbrew
Created February 3, 2012 17:51
Show Gist options
  • Save nbrew/1731380 to your computer and use it in GitHub Desktop.
Save nbrew/1731380 to your computer and use it in GitHub Desktop.
Kerio Connect Monit Configuration
#
# for use on linux systems with kerio-connect installed via rpm
#
check process kerio-connect with pidfile /var/run/kms.pid
group mail
start program = "/etc/init.d/kerio-connect start"
stop program = "/etc/init.d/kerio-connect stop"
if failed host 127.0.0.1 port 25 protocol smtp then restart
if 5 restarts within 5 cycles then timeout
depends on kerio_mailserver_bin
depends on kerio_connect_rc
check file kerio_mailserver_bin with path /opt/kerio/mailserver/mailserver
group mail
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
check file kerio_connect_rc path /etc/init.d/kerio-connect
group mail
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment