]>
Commit | Line | Data |
---|---|---|
2dc6091b PG |
1 | check process sendmail with pidfile /var/run/sendmail.pid |
2 | group mail | |
3 | start program = "/etc/init.d/sendmail start" | |
4 | stop program = "/etc/init.d/sendmail stop" | |
5 | if failed port 25 protocol smtp then restart | |
6 | if 5 restarts within 5 cycles then timeout | |
7 | # alert foo@bar | |
8 | # alert 123456@sms on { timeout } | |
9 | depends on sendmail_bin | |
10 | depends on sendmail_rc | |
11 | ||
12 | check file sendmail_bin with path /usr/lib/sendmail | |
13 | group mail | |
14 | if failed checksum then unmonitor | |
15 | if failed permission 2755 then unmonitor | |
16 | if failed uid root then unmonitor | |
17 | if failed gid smmsp then unmonitor | |
18 | # alert foo@bar | |
19 | ||
20 | check file sendmail_rc with path /etc/init.d/sendmail | |
21 | group mail | |
22 | if failed checksum then unmonitor | |
23 | if failed permission 754 then unmonitor | |
24 | if failed uid root then unmonitor | |
25 | if failed gid root then unmonitor | |
26 | # alert foo@bar | |
27 | ||
28 |