SOURCES: nginx-mail.monitrc (NEW) - init - not tested

sardzent sardzent at pld-linux.org
Fri Nov 30 18:01:42 CET 2007


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 root at localhost
+#	alert 123456 at sms 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 root at localhost
+
+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 root at localhost
+
+check file nginx-mail.conf path /etc/nginx/nginx-mail.conf
+	if changed sha1 checksum 
+	then exec "/etc/init.d/nginx-mail graceful"
================================================================


More information about the pld-cvs-commit mailing list