]> git.pld-linux.org Git - packages/sendmail.git/blobdiff - sendmail.monitrc
This commit was manufactured by cvs2git to create branch 'RA-branch'.
[packages/sendmail.git] / sendmail.monitrc
diff --git a/sendmail.monitrc b/sendmail.monitrc
new file mode 100644 (file)
index 0000000..6ea4a0f
--- /dev/null
@@ -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
+
+
This page took 0.031418 seconds and 4 git commands to generate.