]>
Commit | Line | Data |
---|---|---|
cb0f973a | 1 | check host nginx-mail with address 127.0.0.1 |
2 | group nginx | |
3 | if failed host 127.0.0.1 port 25 type TCP protocol smtp for 2 cycles then alert | |
4 | if failed host 127.0.0.1 port 110 type TCP protocol pop3 for 2 cycles then alert | |
5 | if failed host 127.0.0.1 port 143 type TCP proto tcp for 2 cycles then alert | |
6 | # if failed icmp type echo with timeout 20 seconds for 5 cycles then alert | |
7 | # alert root@localhost | |
8 | # alert 123456@sms on { timeout } | |
9 | depends on nginx-mail_bin | |
10 | depends on nginx-mail_rc | |
11 | ||
12 | ||
13 | ||
14 | check file nginx-mail_bin with path /usr/sbin/nginx-mail | |
15 | group nginx | |
16 | if failed checksum then unmonitor | |
17 | if failed permission 755 then unmonitor | |
18 | if failed uid root then unmonitor | |
19 | if failed gid root then unmonitor | |
20 | # alert root@localhost | |
21 | ||
22 | check file nginx-mail_rc with path /etc/rc.d/init.d/nginx-mail | |
23 | group nginx | |
24 | if failed checksum then unmonitor | |
25 | if failed permission 754 then unmonitor | |
26 | if failed uid root then unmonitor | |
27 | if failed gid root then unmonitor | |
28 | # alert root@localhost | |
29 | ||
30 | check file nginx-mail.conf path /etc/nginx/nginx-mail.conf | |
31 | if changed sha1 checksum | |
32 | then exec "/etc/init.d/nginx-mail graceful" |