Useful for archives, perhaps might be worth adding to example page?
It's pretty much the same as sendmail example, permissions on exim
binary differ, and paths obviously differ.
check process exim with pidfile /var/run/exim.pid
group mail
start program = "/etc/init.d/exim start"
stop program = "/etc/init.d/exim stop"
if failed port 25 protocol smtp then restart
if 5 restarts within 5 cycles then timeout
depends on exim_bin
depends on exim_rc
check file exim_bin with path /usr/sbin/exim
group mail
if failed checksum then unmonitor
if failed permission 4755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
check file exim_rc with path /etc/init.d/exim
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
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general