]> git.pld-linux.org Git - packages/nginx.git/commitdiff
- init
authorsardzent <sardzent@pld-linux.org>
Fri, 30 Nov 2007 16:37:46 +0000 (16:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nginx-light.monitrc -> 1.1
    nginx-perl.monitrc -> 1.1
    nginx-standard.monitrc -> 1.1

nginx-light.monitrc [new file with mode: 0644]
nginx-perl.monitrc [new file with mode: 0644]
nginx-standard.monitrc [new file with mode: 0644]

diff --git a/nginx-light.monitrc b/nginx-light.monitrc
new file mode 100644 (file)
index 0000000..356c4a6
--- /dev/null
@@ -0,0 +1,33 @@
+check process nginx-light with pidfile /var/run/nginx-light.pid
+       group www
+       start program = "/etc/rc.d/init.d/nginx-light start"
+       stop program = "/etc/rc.d/init.d/nginx-light stop"
+       if failed url http://localhost/ timeout 10 seconds then restart
+#      if failed host 192.168.1.1 port 443 type TCPSSL
+#              certmd5 12-34-56-78-90-AB-CD-EF-12-34-56-78-90-AB-CD-EF
+#              protocol HTTP request /monit/token  then restart
+       if 5 restarts within 5 cycles then timeout
+#      alert root@localhost
+#      alert 123456@sms on { timeout }
+       depends on nginx-light_bin
+       depends on nginx-light_rc
+
+check file nginx-light_bin with path /usr/sbin/nginx-light
+       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@localhost
+
+check file nginx-light_rc with path /etc/rc.d/init.d/nginx-light
+       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@localhost
+
+check file nginx-light.conf path /etc/nginx/nginx-light.conf
+       if changed sha1 checksum 
+       then exec "/etc/init.d/nginx-light graceful"
diff --git a/nginx-perl.monitrc b/nginx-perl.monitrc
new file mode 100644 (file)
index 0000000..fb70946
--- /dev/null
@@ -0,0 +1,33 @@
+check process nginx-perl with pidfile /var/run/nginx-perl.pid
+       group www
+       start program = "/etc/rc.d/init.d/nginx-perl start"
+       stop program = "/etc/rc.d/init.d/nginx-perl stop"
+       if failed url http://localhost/ timeout 10 seconds then restart
+#      if failed host 192.168.1.1 port 443 type TCPSSL
+#              certmd5 12-34-56-78-90-AB-CD-EF-12-34-56-78-90-AB-CD-EF
+#              protocol HTTP request /monit/token  then restart
+       if 5 restarts within 5 cycles then timeout
+#      alert root@localhost
+#      alert 123456@sms on { timeout }
+       depends on nginx-perl_bin
+       depends on nginx-perl_rc
+
+check file nginx-perl_bin with path /usr/sbin/nginx-perl
+       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@localhost
+
+check file nginx-standard_rc with path /etc/rc.d/init.d/nginx-perl
+       group perl
+       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@localhost
+
+check file nginx-perl.conf path /etc/nginx/nginx-perl.conf
+       if changed sha1 checksum 
+       then exec "/etc/init.d/nginx-perl graceful"
diff --git a/nginx-standard.monitrc b/nginx-standard.monitrc
new file mode 100644 (file)
index 0000000..a6cb644
--- /dev/null
@@ -0,0 +1,33 @@
+check process nginx-standard with pidfile /var/run/nginx-standard.pid
+       group www
+       start program = "/etc/rc.d/init.d/nginx-standard start"
+       stop program = "/etc/rc.d/init.d/nginx-standard stop"
+       if failed url http://localhost/ timeout 10 seconds then restart
+#      if failed host 192.168.1.1 port 443 type TCPSSL
+#              certmd5 12-34-56-78-90-AB-CD-EF-12-34-56-78-90-AB-CD-EF
+#              protocol HTTP request /monit/token  then restart
+       if 5 restarts within 5 cycles then timeout
+#      alert root@localhost
+#      alert 123456@sms on { timeout }
+       depends on nginx-standard_bin
+       depends on nginx-standard_rc
+
+check file nginx-standard_bin with path /usr/sbin/nginx-standard
+       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@localhost
+
+check file nginx-standard_rc with path /etc/rc.d/init.d/nginx-standard
+       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@localhost
+
+check file nginx-stanard.conf path /etc/nginx/nginx-standard.conf
+       if changed sha1 checksum 
+       then exec "/etc/init.d/nginx-standard graceful"
This page took 0.042578 seconds and 4 git commands to generate.