[-]
[+]
|
Changed |
monit.spec
|
|
[-]
[+]
|
Added |
ix-monit.conf
^
|
@@ -0,0 +1,31 @@
+### set passwords where "CHANGEME is added"
+
+set daemon 30
+ with start delay 60
+
+set logfile syslog facility log_daemon
+set idfile /var/.monit.id
+set statefile /var/.monit.state
+
+set mailserver localhost
+
+set eventqueue
+ basedir /var/monit
+ slots 1000
+
+
+set mmonit http://monit:CHANGEME@85.236.36.116:8080/collector
+
+set alert techprojects@internetx.com
+
+
+set httpd port 2812 and
+ use address 192.168.110.230
+ allow 85.236.36.116
+ allow 62.116.129.3
+ allow 192.168.100.0/24
+ allow localhost
+ allow monit:CHANGEME
+ allow admin:CHANGEME
+ allow @monit
+ allow @users readonly
|
[-]
[+]
|
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
|