Compare commits
2 commits
a615fdf509
...
8b674a10b9
Author | SHA1 | Date | |
---|---|---|---|
|
8b674a10b9 | ||
|
d4294d219a |
4 changed files with 8 additions and 6 deletions
|
@ -22,6 +22,5 @@ pipeline:
|
||||||
matrix:
|
matrix:
|
||||||
ALPINE_VERSION:
|
ALPINE_VERSION:
|
||||||
- 3.13.6
|
- 3.13.6
|
||||||
- 3.13.7
|
|
||||||
- 3.14.3
|
- 3.14.3
|
||||||
- 3.15.0
|
- 3.15.0
|
||||||
|
|
5
monitrc
5
monitrc
|
@ -7,11 +7,6 @@ set statefile /var/lib/monit/state
|
||||||
set eventqueue basedir /var/lib/monit/events slots 100
|
set eventqueue basedir /var/lib/monit/events slots 100
|
||||||
set limits { programoutput: 1 MB }
|
set limits { programoutput: 1 MB }
|
||||||
|
|
||||||
set httpd port 2812
|
|
||||||
allow localhost
|
|
||||||
allow 172.0.0.0/8
|
|
||||||
allow "fd00:acab::/32"
|
|
||||||
|
|
||||||
check program nsupdate
|
check program nsupdate
|
||||||
with path "/usr/local/bin/nsupdate"
|
with path "/usr/local/bin/nsupdate"
|
||||||
every 1 cycle
|
every 1 cycle
|
||||||
|
|
|
@ -8,3 +8,9 @@ set mail-format {
|
||||||
subject: $SERVICE@$HOST
|
subject: $SERVICE@$HOST
|
||||||
message: $ACTION $SERVICE -- $DATE -- $HOST: $DESCRIPTION.
|
message: $ACTION $SERVICE -- $DATE -- $HOST: $DESCRIPTION.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set httpd port 2812
|
||||||
|
allow localhost
|
||||||
|
allow 172.0.0.0/8
|
||||||
|
allow "fd00:acab::/32"
|
||||||
|
allow @@CREDENTIALS@@
|
||||||
|
|
|
@ -6,11 +6,13 @@ test ! -f /etc/monit.d/zeroconf.conf || exit 0
|
||||||
test -n "${EMAIL}"
|
test -n "${EMAIL}"
|
||||||
test -n "${EMAIL_FROM}"
|
test -n "${EMAIL_FROM}"
|
||||||
test -n "${MMONIT}"
|
test -n "${MMONIT}"
|
||||||
|
test -n "${CREDENTIALS}"
|
||||||
|
|
||||||
sed -re "s/@@EMAIL@@/${EMAIL}/" \
|
sed -re "s/@@EMAIL@@/${EMAIL}/" \
|
||||||
-e "s/@@EMAIL_FROM@@/${EMAIL_FROM}/" \
|
-e "s/@@EMAIL_FROM@@/${EMAIL_FROM}/" \
|
||||||
-e "s/@@HOSTNAME@@/${EMAIL_FROM#*@}/" \
|
-e "s/@@HOSTNAME@@/${EMAIL_FROM#*@}/" \
|
||||||
-e "s/@@MMONIT@@/${MMONIT}/" \
|
-e "s/@@MMONIT@@/${MMONIT}/" \
|
||||||
|
-e "s/@@CREDENTIALS@@/${CREDENTIALS}/" \
|
||||||
/etc/zeroconf.conf > /etc/monit.d/zeroconf.conf
|
/etc/zeroconf.conf > /etc/monit.d/zeroconf.conf
|
||||||
|
|
||||||
monit -t
|
monit -t
|
||||||
|
|
Loading…
Reference in a new issue