[-]
[+]
|
Changed |
monit.spec
|
|
[-]
[+]
|
Changed |
monit-default-config-name.patch
^
|
@@ -1,9 +1,9 @@
---- 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-08-27 23:35:08.000000000 +0200
++++ src/monit.h 2013-11-12 16:16:10.957662500 +0100
+@@ -87,7 +87,7 @@
+ #include "util/StringBuffer.h"
- #define VERSION PACKAGE_VERSION
-#define MONITRC "monitrc"
+#define MONITRC "monit.conf"
#define TIMEFORMAT "%Z %b %e %T"
|
[-]
[+]
|
Changed |
create_monit_ssl.sh
^
|
@@ -1,10 +1,10 @@
#!/bin/bash
openssl genrsa \
--out /etc/monit_ssl_key.pem 1024
+-out /etc/monit.ssl/monit_ssl_key.pem 1024
openssl req -batch -new \
--key /etc/monit_ssl_key.pem \
--out /etc/monit_ssl_cert.csr
+-key /etc/monit.ssl/monit_ssl_key.pem \
+-out /etc/monit.ssl/monit_ssl_cert.csr
openssl x509 -req -days 999 \
--in /etc/monit_ssl_cert.csr \
--signkey /etc/monit_ssl_key.pem \
--out /etc/monit_ssl_cert.pem
+-in /etc/monit.ssl/monit_ssl_cert.csr \
+-signkey /etc/monit.ssl/monit_ssl_key.pem \
+-out /etc/monit.ssl/monit_ssl_cert.pem
|
[-]
[+]
|
Added |
ix-monit.conf
^
|
@@ -0,0 +1,36 @@
+### 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 https://monit:CHANGEME@85.236.36.116:8443/collector
+
+set alert techprojects@internetx.com
+
+
+set httpd port 2812
+ SSL ENABLE
+ PEMFILE /etc/pki/tls/certs/monit.pem
+ ALLOWSELFCERTIFICATION
+ allow 85.236.36.116
+ allow 62.116.161.144
+ allow 85.236.36.115
+ allow 62.116.129.3
+ allow 192.168.100.0/24
+ allow localhost
+ allow monit:CHANGEME
+ allow admin:CHANGEME
+
+
+include /etc/monit.d/*.conf
|
[-]
[+]
|
Changed |
mmonit.pem
^
|
@@ -1,49 +1,16 @@
------BEGIN PRIVATE KEY-----
-MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDCgUoOW4FGza/q
-7Tj0rF2PzCmBM3uhL+dfUYWBLL9yBvbyfG7J5VV+4VIdjLjW7pm0uF4p1EwgBbOd
-OgYCeydtjH/VD8y8Xj98RQYv3ZhjDd8LRiUTh6YIY4n4MKbhxpA8Oy6nfvku5wo5
-re0Em4SpAN4M9DLIjslpRzuLE8XEpzpbuJHz/uaTz0rC0326BILFCjLWJoa5RANK
-YdGmfDDcRj7G3wbe42j20MwoFZjLRLQr8oz4lrLJMPxMrF88+Kq75HmzhzO06cUh
-LfzjMthE3TeuIEq2lnHApcRO2WwZ9pfX/Hqo4+4QEM5Tf15v82jjFlP2tHQsXOl/
-8c551QDHAgMBAAECggEAT65niDo0W60nxDYqfxGdwqsA1c0heIcHYiUjbCfIxg3U
-XMJdIJiyzafA3BoqHuLgVQiyirBN/1BWpLKAg8OwA1DrjX1Lgl+Z4m7kefdt1iZ4
-mUXDKp0Hh6g/fU1xEE0oCYS1OCjsLCq6Jab60khjsFiKnwPrSf40xMxJuFABVO31
-CxSEgDvAyDdM+Ev4LD1DMPIhEmncZ+Ymjb+eiqM5GVOt6h9Ex6fsM9kFRwYp9okG
-zs/UAkQuH32lsgQKdIfdUy9CnHGyYkkKautZ5tF+wErSJn/1nv8HsON0iYhp283i
-Q6/Mi7rn0XeN1scmjcrT82LbbtSJ3qqc+11WIV8CAQKBgQD6kdDIf3j72fxboADi
-dnCxBUOWmWFECR4qGkO0b4Awj4KB4TGJJSQzrWu8BortBn2LADF4CUwAI0TuDb8x
-4OeqWSzZML32/rBHlYQHaxAGnpI5C5OZFiUKaAHWgihZIW2m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ADggEPADCCAQoCggEBAL7tx8JIkkFoownTEjRMiEYiyoKBupiZ1847Be2B
+KKJDCLnaBf9Z8gAKtfXvcs46JPj7hrBKzlJcV30ksrdzV4fwnB2H0DD4PvgoQuiQ
+aGHciyY5IwHZbuoqCpIzBFCkz3X5ah8W5DeGJDVmtbXuwr1PVn1fO6Ezs3BAvaRL
++Gh2u9WXnx6GFT6OnI8drXGNJIPBSV+qObFkenYP22R6XVm9v1EI9VmKZ12R1wne
+jR4MCjjXm0Bj2tpg7yaAXd6ldlQPonoIdlKvy1pfouMBPOijeH3fgwiFJeZc65PH
+hnF7EoEQOZtKUnryCCSZ5I1leoS8kcGLDMzWg+xblZSrnU8CAwEAAaAAMA0GCSqG
+SIb3DQEBBQUAA4IBAQCKsrSUJkLLjwm79/lqwmNGZvbMJbOxD+xxIWfXJFi16sZw
+avGP4vxsUAgDAe0zJIO0CIY+eLniWLYO+Y61AdXFThwD2D1ySwsVojWiuVZ9fD+Z
+t0sjatG1ViiIzgyKELaKQHuui2qUGnZidjrEMq6JfiEG/ss6a7zn/5XGMQId7Wxz
+fD45jvvK2tzmMlAMu+0WGPXjcIZH0wUE/GrrfeoIIg659HbAJ8vwWEIn6UM8YjXf
+2ZPblDC55MRmxqCSgb8gc07zAD1KLR1RNtEAH6kusbsCHH93cwf3fu1pKuyWMy0O
+sb2O5gHK1Uz/2eKaMPD5YjYDgkDKmtNdktmVNxU+
+-----END CERTIFICATE REQUEST-----
|
|
Added |
monit-5.8.1.tar.gz
^
|
[-]
[+]
|
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
|