Compare commits
No commits in common. "8b674a10b94cb493e763bc9ceb678be7033bca7f" and "a615fdf509a4c9f890d96e9e846ce1f201e5abc7" have entirely different histories.
8b674a10b9
...
a615fdf509
4 changed files with 6 additions and 8 deletions
|
@ -22,5 +22,6 @@ 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,6 +7,11 @@ 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,9 +8,3 @@ 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,13 +6,11 @@ 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