Below is a sample of the config file that only checks the webserver on my
machine
if the ping test succeeds.

I believe you can information on usage and configuration of all the possible
parameters in the mon documentation and in the archives for this list
(http://www.mail-archive.com/mon%40linux.kernel.org/).


watch my.machine.com
   service ping
        description ping to my machine
        interval 3m
        monitor fping.monitor
        period wd {Sun-Sat}
            alert hpov.alert -o 2001 -i 111
            alertevery 30m
            alertafter 2 6m
            upalert hpov.alert -o 2002 -i 111
    service http
        description http on my machine
        interval 3m
        monitor http.monitor -o
        depend SELF:ping
        period wd {Sun-Sat}
            alert hpov.alert -o 2051 -i 111
            alertevery 30m
            upalert hpov.alert -o 2052 -i 111

Scott Prater
Dpto. Sistemas
[EMAIL PROTECTED]

SERVICOM 2000
Av. Primado Reig, 189 entlo.
46020 Valencia - Spain
Tel. (+34) 96 332 12 00
Fax. (+34) 96 332 12 01
www.servicom2000.com




-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En
nombre de Albert, Chan Chi Kit
Enviado el: jueves, 02 de mayo de 2002 4:30
Para: [EMAIL PROTECTED]
Asunto: "depend" keyword


Does anyone have an example on how to use "depend" keyword in mon.cf?

Reply via email to