Xymon Mailing List Archive search

red is good

list Henrik Størner
Wed, 4 Nov 2009 10:11:59 +0000 (UTC)
Message-Id: <hcrk1f$1e9$user-e356fad9864f@xymon.invalid>

In <user-d82bc29c1413@xymon.invalid> Kenneth Falor <user-b203be41ccd1@xymon.invalid> writes:
If I ping the cell cards static IP it is down (red) when it is not dialed, =
so I need alert on green status. I also do not want my main status pages to=
be red all the time.  is there a way to say "red is good, but green is bad=
"?
From the bb-hosts man-page:

   "!conn" will be green when the host is NOT up, and red if it
   does appear on the network.

Other monitoring tools allow for contingencies like 'if the WAN IP is down,=
then try pinging the WWAN IP, but do not ping WWAN IP until then." can hob=
bit do this?
Not quite, Xymon will always ping both of the interfaces. But you
could do something like

    10.0.0.1  wanconnection # conn=best,192.168.1.1 testip

where 10.0.0.1 is the primary IP and 192.168.1.1 is the secondary.
This will show the "conn" status as green if one or the other
IP is up.


Personally, I would probably prefer to get an alert when the
primary connection went down, so I would have each of the two
connections as separate entries in bb-hosts, and then a combined
"virtual" entry for the combined status:

   10.0.0.1    wan-primary # testip
   192.168.1.1 wan-backup  # testip dialup
   10.0.0.1    wanconnection # conn=best,192.168.1.1 testip

Then you can trigger a "fix it now!!" alert if "wanconnection"
goes red on the conn status, and a "someone should look into it"
alert if only "wan-primary" goes red.


Regards,
Henrik