configuration-templates
/monit/debian/templates/cron |
@@ -5,12 +5,12 @@ |
check process crond with pidfile /var/run/crond.pid |
group system |
group crond |
depend cron_bin |
depend cron_rc |
depend cron_spool |
start program = "/etc/init.d/cron start" |
stop program = "/etc/init.d/cron stop" |
if 5 restarts with 5 cycles then timeout |
depend cron_bin |
depend cron_rc |
depend cron_spool |
|
check file cron_bin with path /usr/sbin/cron |
group crond |
@@ -22,6 +22,6 @@ |
|
check directory cron_spool with path /var/spool/cron/crontabs |
group crond |
if failed permission 1730 then unmonitor |
if failed uid root then unmonitor |
if failed gid crontab then unmonitor |
if failed permission 1730 then alert |
if failed uid root then alert |
if failed gid crontab then alert |