monit-cn (1:5.26.0+cn10u2) stable; urgency=low
* Dodana konfiguracija za Bacula File Daemon
+ * Promjena templatea bacula-fd.conf u postinstu
+ * Ne provjerava se ClamAV-ov PID koji više ne postoji
-- Zeljko Boros <Zeljko.Boros@CARNET.hr> Tue, 13 Apr 2021 13:53:50 +0200
/etc/monit/monitrc || true
fi
+# sed bacula-fd.conf with proper hostname
+if grep -q '127.0.0.1' /usr/share/monit-cn/bacula-fd.conf; then
+ cp_check_and_sed '127.0.0.1' \
+ "s/127.0.0.1/$CARNET_HOSTNAME.$CARNET_DOMAINNAME/" \
+ /usr/share/monit-cn/bacula-fd.conf || true
+fi
+
+# you can modify others in a loop, maybe?
+
# migrate to "but not on { instance }" alerting style
cp_check_and_sed '^set alert [^[:space:]]*@[^[:space:]]* ' \
's/^set alert \([^[:space:]]*@[^[:space:]]*\) .*$/set alert \1 but not on { instance }/g' \
#
## End - Generated by CARNet package monit-cn
-check process clamd with pidfile "/var/run/clamav/clamd.pid"
+check process clamd matching "/usr/sbin/clamd"
start program = "/etc/init.d/clamav-daemon start"
stop program = "/etc/init.d/clamav-daemon stop"
if failed unixsocket "/var/run/clamav/clamd.ctl"