Xymon Mailing List Archive search

Host appears twice in bb-hosts warning

2 messages in this thread

list Richard Crane · Wed, 26 Jan 2011 13:04:02 -0500 ·
Hi:

Can anyone tell me why the second of these two hosts generates a warning (and turns bbtest yellow), but the first does not?  

xx.xx.xx.xx   litt.haskins.yale.edu      # bbd  
xx.xx.xx.xx   litt # prefer noconn ssh http://litt/synbak/2011/index.html
yy.yy.yy.yy  tjmac # ssh ldap FMS pptp http://tjmac/fmi-test/phptest.php

#  this is on a separate page, so I can build a combo test (FMS) to display on the top page

yy.yy.yy.yy  tjmac # prefer noconn fm-5003 fm-16000 fm-16001  NOPROPRED:fm-5003,fm-5353,fm-2399,fm-16000,fm-16001,fm-16004 http://tjmac/fmi-test/phptest.php


Thanks,
Richard Crane
Haskins Laboratories / (XXX) XXX-XXXX X 275 /  FAX (XXX) XXX-XXXX
XXX George Street/New Haven, CT XXXXX
list Henrik Størner · Thu, 27 Jan 2011 11:39:07 +0000 (UTC) ·
quoted from Richard Crane
In <user-95babe9f9ffd@xymon.invalid> Richard Crane <user-c9a26c01db72@xymon.invalid> writes:
Can anyone tell me why the second of these two hosts generates a warning =

(and turns bbtest yellow), but the first does not? =20
xx.xx.xx.xx   litt.haskins.yale.edu      # bbd =20
xx.xx.xx.xx   litt # prefer noconn ssh =
http://litt/synbak/2011/index.html
"litt.haskins.yale.edu" is different from "litt". Xymon uses the
full string that you provide, so with/without a domain is considered
two different hosts.
quoted from Richard Crane

yy.yy.yy.yy  tjmac # ssh ldap FMS pptp http://tjmac/fmi-test/phptest.php
yy.yy.yy.yy  tjmac # prefer noconn fm-5003 fm-16000 fm-16001  =
NOPROPRED:fm-5003,fm-5353,fm-2399,fm-16000,fm-16001,fm-16004 =
http://tjmac/fmi-test/phptest.php

These are identical. And when you have the same host listed twice,
you MUST list all of the network tests on one of the lines.

So your config should be

yy.yy.yy.yy  tjmac # ssh ldap FMS pptp \
       http://tjmac/fmi-test/phptest.php \
       fm-5003 fm-16000 fm-16001
       NOPROPRED:fm-5003,fm-5353,fm-2399,fm-16000,fm-16001,fm-16004

and then later

0.0.0.0 tjmac # noconn

You cannot control what status columns show up on each of the two
lines by splitting the test-specifications between the two lines.
If you want a status to only appear on one of the entries, then
use the "group-only" or "group-except" definitions.


Regards,
Henrik