Hello all!

I have a question, would it be hard to implement some kind of pseudo monitor, 
or does it exist?

Instead of executing new monitors the pseudo monitor only monitors the result 
of other monitors or watches.

The pseudo monitor is not an external monitor. It should be implemented 
internally in mon "core", since all the data from all other monitors is in 
there...

Like the example below, instead of running all monitors again, the pseudo 
monitor looks on the result returned by other monitors. The pseudo monitor 
should trigger an error if the checked service/watch has failed

Maybe this "feature" is allready possible using the 'depend' feature. If so, 
it's obioulsy not clear to me howto! (i'm using depend, only to supress 
alerts/monitors)

Maybe not the clearest example, but it's late and I have to go home...

cu

/Peter

------------------------------------

hostgroup servers_se stockholm goteborg molnal

hostgroup servers_uk london

hostgroup servers_us newyork washington dallas

hostgroup universe

hostgroup world

hostgroup europe

watch universe
        service all
                interval 1m
                monitor pseudo.monitor world
                        comp_alerts
                  alert mail.alert god
                  upalert file.alert -u god

watch world
        service ping
                interval 1m
                monitor pseudo.monitor europe:ping servers_us:ping
                period wd {Sun-Sat}
                comp_alerts
                  alert mail.alert manager operator
                  upalert file.alert -u manager operator
        service web
                depend SELF:ping
                interval 1m
                monitor pseudo.monitor europe:web servers_us:web
                period wd {Sun-Sat}
                comp_alerts
                  alert mail.alert cio manager operator
                  upalert file.alert -u cio manager operator

watch europe
        service ping
                interval 1m
                monitor pseudo.monitor servers_se:ping servers_uk:ping
                period wd {Sun-Sat}
                comp_alerts
                  alert mail.alert operator
                  upalert file.alert -u operator
        service web
                depend SELF:ping
                interval 1m
                monitor pseudo.monitor servers_se:web
                period wd {Sun-Sat}
                comp_alerts
                  alert mail.alert operator
                  upalert file.alert -u operator

watch servers_se
      service ping
                interval 1m
            monitor ping.monitor
        service web
                depend SELF:ping
                interval 1m
                monitor web.monitor

watch servers_uk
      service ping
                interval 1m
            monitor ping.monitor

watch servers_us
      service ping
                interval 1m
            monitor ping.monitor
        service web
                depend SELF:ping
                interval 1m
                monitor web.monitor

_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to