configuration-templates
/monit/debian/templates/rsyslog |
@@ -0,0 +1,28 @@ |
########################################################################### |
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
########################################################################### |
|
check process rsyslogd with pidfile /var/run/rsyslogd.pid |
group system |
group rsyslogd |
start program = "/etc/init.d/rsyslog start" |
stop program = "/etc/init.d/rsyslog stop" |
if 5 restarts with 5 cycles then timeout |
depend on rsyslogd_bin |
depend on rsyslogd_rc |
depend on rsyslog_file |
|
check file rsyslogd_bin with path /usr/sbin/rsyslogd |
group rsyslogd |
include /etc/monit/templates/rootbin |
|
check file rsyslogd_rc with path "/etc/init.d/rsyslog" |
group rsyslogd |
include /etc/monit/templates/rootbin |
|
check file rsyslog_file with path /var/log/messages |
group rsyslogd |
if timestamp > 65 minutes then alert |
if failed permission 640 then unmonitor |
if failed uid root then unmonitor |
if failed gid adm then unmonitor |