From 709fdb91b20f897277f8ac5fd5b87d1671d33905 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Wed, 27 Apr 2011 20:09:46 +0200 Subject: [PATCH] - update monitrc za Squeeze --- debian/postinst | 4 ++-- monit-cn/monitrc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/postinst b/debian/postinst index 7f1b54c..88bca34 100755 --- a/debian/postinst +++ b/debian/postinst @@ -57,8 +57,8 @@ if grep -q '@localhost' /etc/monit/monitrc; then fi # fix "but not on { changed } bug in monitrc -cp_check_and_sed '^set alert [^[:space:]]*@[^[:space:]]*$' \ - 's/^set alert \([^[:space:]]*@[^[:space:]]*\) .*$/set alert \1 but not on { instance }/g' \ +cp_check_and_sed '^set alert [^[:space:]]*@[^[:space:]]* $' \ + 's/^set alert \([^[:space:]]*@[^[:space:]]*\).*$/set alert \1 but not on { instance }/g' \ /etc/monit/monitrc || true # (re)generate monit.d files diff --git a/monit-cn/monitrc b/monit-cn/monitrc index baf3fc9..ae12989 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 only on { uid, gid, size, nonexist, data, icmp, instance, invalid, exec, timeout, resource, checksum, match, timestamp, connection, permission } +set alert root@localhost but not on { instance } #set httpd port 2812 and use address 127.0.0.1 #allow localhost -- 1.7.10.4