configuration-templates – Diff between revs 33 and 50

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 33 Rev 50
1 ########################################################################### 1 ###########################################################################
2 ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## 2 ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
3 ########################################################################### 3 ###########################################################################
4   4  
5 check process rsyslogd with pidfile /var/run/rsyslogd.pid 5 check process rsyslogd with pidfile /var/run/rsyslogd.pid
6 group system 6 group system
7 group rsyslogd 7 group rsyslogd
8 start program = "/etc/init.d/rsyslog start" -  
9 stop program = "/etc/init.d/rsyslog stop" -  
10 if 5 restarts with 5 cycles then timeout -  
11 depend on rsyslogd_bin 8 depend on rsyslogd_bin
12 depend on rsyslogd_rc 9 depend on rsyslogd_rc
13 depend on rsyslog_file 10 depend on rsyslog_file
-   11 start program = "/etc/init.d/rsyslog start"
-   12 stop program = "/etc/init.d/rsyslog stop"
-   13 #if 5 restarts with 5 cycles then timeout
14   14  
15 check file rsyslogd_bin with path /usr/sbin/rsyslogd 15 check file rsyslogd_bin with path /usr/sbin/rsyslogd
16 group rsyslogd 16 group rsyslogd
17 include /etc/monit/templates/rootbin 17 include /etc/monit/templates/rootbin
18   18  
19 check file rsyslogd_rc with path "/etc/init.d/rsyslog" 19 check file rsyslogd_rc with path "/etc/init.d/rsyslog"
20 group rsyslogd 20 group rsyslogd
21 include /etc/monit/templates/rootbin 21 include /etc/monit/templates/rootbin
22   22  
23 check file rsyslog_file with path /var/log/messages 23 check file rsyslog_file with path /var/log/messages
24 group rsyslogd 24 group rsyslogd
25 ## This may not work for idle machines. 25 ## This may not work for idle machines.
26 # if timestamp > 65 minutes then alert 26 # if timestamp > 65 minutes then alert
27 if failed permission 640 then unmonitor 27 if failed permission 640 then alert
28 if failed uid root then unmonitor 28 if failed uid root then alert
29 if failed gid adm then unmonitor 29 if failed gid adm then alert
30   30