Hi  everybody...  I really hope this  isn't  a FAQ  (I  did search the
archives)...

mon-0.99.2
2.6.6-1.435.2.3smp GNU/Linux
Fedora Core release 2 (Tettnang)

I have a simple mon.cf in which I check http on "sunrise" and "sunset"
and if both are down, perform an  action.  Downing the httpd processes
causes the correct actions to be taken (file.alert).  Once both hosts'
httpd processes are down, the final alert is processed.  Bringing them
back up works as expected - the upalert is processed for each, but the
monitor for  the third  isn't.  When I   bring both hosts  down again,
their individual alerts are processed, but the "both down" alert isn't
- *even though its monitor is processed and returns 1*.

In my mon.cf (below)  you'll see I'm using a  custom ipvs alert (which
I'll  contribute after  it's  successfully in   production) - but  the
file.alert isn't working either.

Please, what am  I doing worng?   Why won't successive outages trigger
an alert which worked just fine for the first outage?


Here's my mon.cf:

# # ## ### ##### ######## ############# #####################
# mon.cf file

maxprocs = 20
histlength = 100

watch sunrise
        service http
                description httpd on sunrise
                interval 5s
                monitor http.monitor
                period logfile:
                        alertafter 30s
                        alertevery 120s
                        alert file.alert -d /home/cdemarco/tmp ipvs.log
                        upalert file.alert -d /home/cdemarco/tmp ipvs.log
                period editipvs:
                        numalerts 1
                        alert file.alert -d /home/cdemarco/tmp ipvs.log 
                        alert ipvs.alert -P tcp -V lvs:80 -R sunrise:80
                        upalert ipvs.alert -u -B -P tcp -V lvs:80 -S rr -R sunrise:80 
-W 10 -F nat

watch sunset
        service http
                description httpd on sunset
                interval 5s
                monitor http.monitor
                period logfile:
                        alertafter 30s
                        alertevery 120s
                        alert file.alert -d /home/cdemarco/tmp ipvs.log
                        upalert file.alert -d /home/cdemarco/tmp ipvs.log
                period editipvs:
                        numalerts 1
                        alert file.alert -d /home/cdemarco/tmp ipvs.log 
                        alert ipvs.alert -P tcp -V lvs:80 -R sunset:80
                        upalert ipvs.alert -u -B -P tcp -V lvs:80 -S rr -R sunset:80 
-W 10 -F nat

watch bugs
        service realservers
                description realservers
                dep_behavior m
                depend !sunrise:http
                depend !sunset:http
                interval 5s
                monitor false
                period editipvs:
                        numalerts 1
                        alertevery 5s
                        alert file.alert -d /home/cdemarco/tmp ipvs.log
                        alert ipvs.alert -D -P tcp -V lvs:80
                        upalert file.alert -d /home/cdemarco/tmp ipvs.log

# end mon.cf
# # ## ### ##### ######## ############# #####################
        

TIA...

-- 
~ You are in a maze of twisty passages, all alike.

  Christopher DeMarco
  [EMAIL PROTECTED]
  +6013 389 5658

_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to