From ff6e29a0b03ab8c26b5e49bcb7e4d74ef84d02cb Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Tue, 5 Feb 2008 16:18:48 +0000 Subject: [PATCH] r18: - popravljena greska u defaultnom templateu za "alert on" - dodan klogd u syslogd template --- debian/changelog | 7 +++++++ debian/postinst | 5 +++++ monit-cn/monitrc | 2 +- monit-cn/syslogd.conf | 6 +++++- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index e288167..0f71a31 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +monit-cn (1:4.8.1-4) stable; urgency=low + + * popravljena greska u defaultnom templateu za "alert on" + * dodan klogd u syslogd template + + -- Dinko Korunic Tue, 5 Feb 2008 16:44:13 +0100 + monit-cn (1:4.8.1-3) stable; urgency=low * salji root@localhost mail u svim slucajevima, osim ako je servis diff --git a/debian/postinst b/debian/postinst index f08d307..7324eec 100755 --- a/debian/postinst +++ b/debian/postinst @@ -56,6 +56,11 @@ if grep -q '@localhost' /etc/monit/monitrc; then /etc/monit/monitrc || true fi +# fix "but not on { changed } bug in monitrc +cp_check_and_sed '^set alert [^[:space:]]*@[^[:space:]]* (but )?not on { changed }$' \ + 's/^set alert \([^[:space:]]*@[^[:space:]]*\) .*$/set alert \1 only on { uid, gid, size, nonexist, data, icmp, instance, invalid, exec, timeout, resource, checksum, match, timestamp, connection, permission }/g' \ + /etc/monit/monitrc || true + # if alert for "changed" is enabled, disable it ASAP # we're waiting for "but not on { changed }" to enter in official # package... diff --git a/monit-cn/monitrc b/monit-cn/monitrc index b18d4e9..baf3fc9 100644 --- a/monit-cn/monitrc +++ b/monit-cn/monitrc @@ -9,7 +9,7 @@ set mail-format { message: monit $ACTION $SERVICE at $DATE on $HOST } set mailserver 127.0.0.1 -set alert root@localhost but not on { changed } +set alert root@localhost only on { uid, gid, size, nonexist, data, icmp, instance, invalid, exec, timeout, resource, checksum, match, timestamp, connection, permission } #set httpd port 2812 and use address 127.0.0.1 #allow localhost diff --git a/monit-cn/syslogd.conf b/monit-cn/syslogd.conf index 5e368f4..cf65af7 100644 --- a/monit-cn/syslogd.conf +++ b/monit-cn/syslogd.conf @@ -1,5 +1,9 @@ -# syslogd monit-cn template +# syslogd/klogd monit-cn template check process syslogd with pidfile "/var/run/syslogd.pid" start program = "/etc/init.d/sysklogd start" stop program = "/etc/init.d/sysklogd stop" + +check process klogd with pidfile "/var/run/klogd.pid" + start program = "/etc/init.d/klogd start" + stop program = "/etc/init.d/klogd stop" -- 1.7.10.4