#
# Very simple mon.cf file
#
# $Id: very-simple.cf,v 1.1.1.1 2004/06/09 05:18:06 trockij Exp $
#
alertdir   = /usr/local/lib/mon/alert.d
mondir     = /usr/local/lib/mon/mon.d
cfbasedir   = /etc/mon/
statedir    = /var/mon/state.d
logdir      = /var/mon/log.d
maxprocs    = 20
histlength = 100
randstart = 60s
dtlogging = yes

#
# define groups of hosts to monitor
#
hostgroup servers localhost

watch servers
    service ping
        interval 5m
        monitor ping.monitor
        period wd {Mon-Fri} hr {7am-10pm}
            alert mail.alert root@localhost
            alertevery 1h
        period wd {Sat-Sun}
            alert mail.alert root@localhost
    service ssh
        interval 10m
        monitor tcp.monitor -p 22
        period wd {Mon-Fri} hr {7am-10pm}
            alertevery 1h
            alertafter 2 30m
            alert mail.alert root@localhost
    service smtp
        interval 10m
        monitor smtp.monitor
        period wd {Mon-Fri} hr {7am-10pm}
            alertevery 1h
            alertafter 2 30m
            alert mail.alert root@localhost
	    upalert mail.alert root@localhost
