From 2dc6091bfec37619046bb8a2711d4b0489bff40e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Go=C5=82aszewski?= Date: Fri, 16 Jul 2004 12:31:24 +0000 Subject: [PATCH] - monit file for sendmail Changed files: sendmail.monitrc -> 1.1 --- sendmail.monitrc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 sendmail.monitrc diff --git a/sendmail.monitrc b/sendmail.monitrc new file mode 100644 index 0000000..6ea4a0f --- /dev/null +++ b/sendmail.monitrc @@ -0,0 +1,28 @@ +check process sendmail with pidfile /var/run/sendmail.pid + group mail + start program = "/etc/init.d/sendmail start" + stop program = "/etc/init.d/sendmail stop" + if failed port 25 protocol smtp then restart + if 5 restarts within 5 cycles then timeout +# alert foo@bar +# alert 123456@sms on { timeout } + depends on sendmail_bin + depends on sendmail_rc + +check file sendmail_bin with path /usr/lib/sendmail + group mail + if failed checksum then unmonitor + if failed permission 2755 then unmonitor + if failed uid root then unmonitor + if failed gid smmsp then unmonitor +# alert foo@bar + +check file sendmail_rc with path /etc/init.d/sendmail + group mail + if failed checksum then unmonitor + if failed permission 754 then unmonitor + if failed uid root then unmonitor + if failed gid root then unmonitor +# alert foo@bar + + -- 2.44.0