Some new mixed monitoring stuff
Code:
# amavis
check process amavisd with pidfile /var/run/amavis/amavisd.pid
group services
start program = "/etc/init.d/amavis start"
stop program = "/etc/init.d/amavis stop"
if failed port 10024 then restart
if 5 restarts within 5 cycles then timeout
# clamav-daemon
check process clamd with pidfile o/var/run/clamav/clamd.pid[align=center]
group services
start program = "/etc/init.d/clamav-daemon start"
stop program = "/etc/init.d/clamav-daemon stop"
if 5 restarts within 5 cycles then timeout
# clamav-freshclam
check process freshclam with pidfile /var/run/clamav/freshclam.pid
group services
start program = "/etc/init.d/clamav-freshclam start"
stop program = "/etc/init.d/clamav-freshclam stop"
if 5 restarts within 5 cycles then timeout
# cron
check process cron with pidfile /var/run/crond.pid
group services
start program = "/etc/init.d/cron start"
stop program = "/etc/init.d/cron stop"
if 5 restarts within 5 cycles then timeout
# munin-node
check process munin-node with pidfile /var/run/munin/munin-node.pid
group services
start program = "/etc/init.d/munin-node start"
stop program = "/etc/init.d/munin-node stop"
if 5 restarts within 5 cycles then timeout
# Syslogd
check process syslogd with pidfile /var/run/syslogd.pid
start program = "/etc/init.d/sysklogd start"
stop program = "/etc/init.d/sysklogd stop"
if 5 restarts within 5 cycles then timeout
check file syslogd_file with path /var/log/syslog
if timestamp > 65 minutes then alert # Have you seen "-- MARK --
or if you use syslog-ng instead of of syslogd
Code:
# syslog-ng
check process syslog-ng with pidfile /var/run/syslog-ng.pid
group services
start program = "/etc/init.d/syslog-ng start"
stop program = "/etc/init.d/syslog-ng stop"
if 5 restarts within 5 cycles then timeout
Have fun with it
Can someone of the dev add it into the trac wiki?