Difference Between Revision 2 and home:jg:projects:monitoring / monit
[-] [+] | Changed | monit.spec |
[-] [+] | Added | stunnel-check ^ |
@@ -0,0 +1,22 @@ +check process stunnel with pidfile /var/run/stunnel/stunnel.pid + start program = "/etc/init.d/stunnel start" + stop program = "/etc/init.d/stunnel stop" + if failed host 192.168.110.230 port 3307 type TCP protocol MYSQL then + restart + group stunnel + depends stunnel_init + depends stunnel_bin + +check file stunnel_bin with path /usr/bin/stunnel + group stunnel + if failed checksum then unmonitor + if failed permission 755 then unmonitor + if failed uid root then unmonitor + if failed gid root then unmonitor + +check file stunnel_init with path /etc/init.d/stunnel + group stunnel + if failed checksum then unmonitor + if failed permission 755 then unmonitor + if failed uid root then unmonitor + if failed gid root then unmonitor |