initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

88
monit/fix-monitrc.patch Normal file
View File

@@ -0,0 +1,88 @@
--- a/monitrc 2022-03-23 18:43:07.000000000 +0100
+++ b/monitrc 2024-03-26 16:17:32.926620113 +0100
@@ -16,7 +16,7 @@
##
## Start Monit in the background (run as a daemon):
#
-set daemon 30 # check services at 30 seconds intervals
+set daemon 120 # check services at 120 seconds intervals
# with start delay 240 # optional: delay the first check by 4-minutes (by
# # default Monit check immediately after Monit start)
#
@@ -24,7 +24,7 @@
## Set syslog logging. If you want to log to a standalone log file instead,
## specify the full path to the log file
#
-set log syslog
+set log /var/log/monit.log
#
#
@@ -37,7 +37,7 @@
## Monit instance. The id is generated and stored on first Monit start. By
## default the file is placed in $HOME/.monit.id.
#
-# set idfile /var/.monit.id
+set idfile /var/lib/monit/id
#
## Set the location of the Monit state file which saves monitoring states
## on each cycle. By default the file is placed in $HOME/.monit.state. If
@@ -45,7 +45,7 @@
## the monitoring state across reboots. If it is on temporary filesystem, the
## state will be lost on reboot which may be convenient in some situations.
#
-# set statefile /var/.monit.state
+set statefile /var/lib/monit/state
#
#
@@ -89,25 +89,9 @@
## by using the SLOTS option (if omitted, the queue is limited by space
## available in the back end filesystem).
#
-# set eventqueue
-# basedir /var/monit # set the base directory where events will be stored
-# slots 100 # optionally limit the queue size
-#
-#
-## Send status and events to M/Monit (for more information about M/Monit
-## see https://mmonit.com/). By default Monit registers credentials with
-## M/Monit so M/Monit can smoothly communicate back to Monit and you don't
-## have to register Monit credentials manually in M/Monit. It is possible to
-## disable credential registration using the commented out option below.
-## Though, if safety is a concern we recommend instead using https when
-## communicating with M/Monit and send credentials encrypted. The password
-## should be URL encoded if it contains URL-significant characters like
-## ":", "?", "@". Default timeout is 5 seconds, you can customize it by
-## adding the timeout option.
-#
-# set mmonit http://monit:monit@192.168.1.10:8080/collector
-# # with timeout 30 seconds # Default timeout is 5 seconds
-# # and register without credentials # Don't register credentials
+ set eventqueue
+ basedir /var/lib/monit/events # set the base directory where events will be stored
+ slots 100 # optionally limit the queue size
#
#
## Monit by default uses the following format for alerts if the mail-format
@@ -154,13 +138,13 @@
## commands to a running Monit daemon. See the Monit Wiki if you want to
## enable SSL for the HTTP interface.
#
-set httpd port 2812 and
- use address localhost # only accept connection from localhost (drop if you use M/Monit)
- allow localhost # allow localhost to connect to the server and
- allow admin:monit # require user 'admin' with password 'monit'
- #with ssl { # enable SSL/TLS and set path to server certificate
- # pemfile: /etc/ssl/certs/monit.pem
- #}
+#set httpd port 2812 and
+# use address localhost # only accept connection from localhost
+# allow localhost # allow localhost to connect to the server and
+# allow admin:monit # require user 'admin' with password 'monit'
+# #with ssl { # enable SSL/TLS and set path to server certificate
+# # pemfile: /etc/ssl/certs/monit.pem
+# #}
#
## Monit can perform act differently regarding services previous state when
## going back in duty. By default, Monit will 'start' all services. Monit can