1 check process sendmail with pidfile /var/run/sendmail.pid
3 start program = "/etc/rc.d/init.d/sendmail start"
4 stop program = "/etc/rc.d/init.d/sendmail stop"
5 if failed port 25 protocol smtp then restart
6 if 5 restarts within 5 cycles then timeout
8 # alert 123456@sms on { timeout }
9 depends on sendmail_bin
10 depends on sendmail_rc
12 check file sendmail_bin with path /usr/lib/sendmail
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
20 check file sendmail_rc with path /etc/rc.d/init.d/sendmail
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