Compare commits

...

2 commits

Author SHA1 Message Date
f
8b674a10b9 we'll skip this version
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-03-14 18:34:42 -03:00
f
d4294d219a register to mmmonit with credentials 2022-03-14 18:34:00 -03:00
4 changed files with 8 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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@@

View file

@ -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