[-]
[+]
|
Changed |
monit.spec
|
|
[-]
[+]
|
Changed |
monit-default-config-name.patch
^
|
@@ -1,11 +1,11 @@
---- monitor.h.renamed_config 2008-12-07 01:15:10.000000000 +0100
-+++ monitor.h 2008-12-07 01:15:19.000000000 +0100
-@@ -71,7 +71,7 @@
+--- src/monit.h 2013-11-12 15:27:49.959734900 +0100
++++ src/monit.h~ 2013-08-27 23:35:08.000000000 +0200
+@@ -87,7 +87,7 @@
+ #include "util/StringBuffer.h"
- #define VERSION PACKAGE_VERSION
--#define MONITRC "monitrc"
-+#define MONITRC "monit.conf"
+-#define MONITRC "monit.conf"
++#define MONITRC "monitrc"
#define TIMEFORMAT "%Z %b %e %T"
#define STRERROR strerror(errno)
#define STRLEN 256
|
[-]
[+]
|
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
|