Author: sardzent                     Date: Fri Nov 30 17:01:42 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- init
- not tested

---- Files affected:
SOURCES:
   nginx-mail.monitrc (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/nginx-mail.monitrc
diff -u /dev/null SOURCES/nginx-mail.monitrc:1.1
--- /dev/null   Fri Nov 30 18:01:42 2007
+++ SOURCES/nginx-mail.monitrc  Fri Nov 30 18:01:37 2007
@@ -0,0 +1,32 @@
+check host nginx-mail with address 127.0.0.1
+       group nginx
+       if failed host 127.0.0.1 port 25 type TCP protocol smtp for 2 cycles 
then alert
+       if failed host 127.0.0.1 port 110 type TCP protocol pop3 for 2 cycles 
then alert
+       if failed host 127.0.0.1 port 143 type TCP proto tcp for 2 cycles then 
alert
+#      if failed icmp type echo with timeout 20 seconds for 5 cycles then alert
+#      alert [EMAIL PROTECTED]
+#      alert [EMAIL PROTECTED] on { timeout }
+       depends on nginx-mail_bin
+       depends on nginx-mail_rc
+
+
+
+check file nginx-mail_bin with path /usr/sbin/nginx-mail
+       group nginx
+       if failed checksum then unmonitor
+       if failed permission 755 then unmonitor
+       if failed uid root then unmonitor
+       if failed gid root then unmonitor
+#      alert [EMAIL PROTECTED]
+
+check file nginx-mail_rc with path /etc/rc.d/init.d/nginx-mail
+       group nginx
+       if failed checksum then unmonitor
+       if failed permission 754 then unmonitor
+       if failed uid root then unmonitor
+       if failed gid root then unmonitor
+#      alert [EMAIL PROTECTED]
+
+check file nginx-mail.conf path /etc/nginx/nginx-mail.conf
+       if changed sha1 checksum 
+       then exec "/etc/init.d/nginx-mail graceful"
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to