-
-
Save eksiscloud/1f8aa21632d75bb5dd81f463d63b8f91 to your computer and use it in GitHub Desktop.
Monit: Cron
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process crond with pidfile /var/run/crond.pid | |
group system | |
group crond | |
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 | |
include /etc/monit/templates/rootbin | |
check file cron_rc with path "/etc/init.d/cron" | |
group crond | |
include /etc/monit/templates/rootbin | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should monitor cron because a leaking PHP-script started by cron or too slow script can eat up all of your RAM quite fast.