configuration-templates – Diff between revs 29 and 33
?pathlinks?
Rev 29 | Rev 33 | |||
---|---|---|---|---|
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" |
8 | start program = "/etc/init.d/rsyslog start" |
|
9 | stop program = "/etc/init.d/rsyslog stop" |
9 | stop program = "/etc/init.d/rsyslog stop" |
|
10 | if 5 restarts with 5 cycles then timeout |
10 | if 5 restarts with 5 cycles then timeout |
|
11 | depend on rsyslogd_bin |
11 | depend on rsyslogd_bin |
|
12 | depend on rsyslogd_rc |
12 | depend on rsyslogd_rc |
|
13 | depend on rsyslog_file |
13 | depend on rsyslog_file |
|
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 | if timestamp > 65 minutes then alert |
26 | # if timestamp > 65 minutes then alert |
|
26 | if failed permission 640 then unmonitor |
27 | if failed permission 640 then unmonitor |
|
27 | if failed uid root then unmonitor |
28 | if failed uid root then unmonitor |
|
28 | if failed gid adm then unmonitor |
29 | if failed gid adm then unmonitor |
|
29 | |
30 | |