+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 <kreator@carnet.hr> 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
/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...
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
-# 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"