Xymon Mailing List Archive search

How to list a host multiple times in bb-hosts properly

5 messages in this thread

list Jeff Stuart · Wed, 19 Oct 2005 16:27:23 -0400 ·
Ok, next question. 

I have a machine that I wish to appear on multiple pages.  So I list it
more than once in bb-hosts.

First time, I list it this way:

group-only bbd|bbgen|bbtest|hobbitd|rsync       Hobbit Monitoring Server
123.123.123.123    123.123.123.123 # BBPAGER BBNET BBDISPLAY bbd noconn 
rsync

Then I list it this way:

page game-servers Main Game Server Boxes.
group-except bbd|bbgen|bbtest|hobbitd|rsync
123.123.123.123    123.123.123.123 # ftp !telnet !smtp ssh  ntp  prefer
badconn:1:2:4

(Note: this is just the first server of many that I will need to do that
to.)

Yet, hobbit gives me a yellow box for the bbtest column and displays
this message:

Error output:
Host 123.123.123.123 appears twice in bb-hosts! This may cause strange
results

So how do I go about properly listing a server multiple times?

-- 
Jeff Stuart
Network Admin
MyInternetServices
1-800-300-HOST
X-XXX-XXX-XXXX


--
list Bob Gordon · Wed, 19 Oct 2005 13:38:16 -0700 ·
quoted from Jeff Stuart
On 10/19/05, Jeff Stuart <user-2aec98d44f5e@xymon.invalid> wrote:
I have a machine that I wish to appear on multiple pages. So I list it
more than once in bb-hosts.

First time, I list it this way:

group-only bbd|bbgen|bbtest|hobbitd|rsync Hobbit Monitoring Server

123.123.123.123 <http://123.123.123.123>; 123.123.123.123<http://123.123.123.123># BBPAGER BBNET BBDISPLAY bbd noconn
quoted from Jeff Stuart
rsync

Then I list it this way:

page game-servers Main Game Server Boxes.
group-except bbd|bbgen|bbtest|hobbitd|rsync

123.123.123.123 <http://123.123.123.123>; 123.123.123.123<http://123.123.123.123># ftp !telnet !smtp ssh ntp prefer
badconn:1:2:4

Error output:
Host 123.123.123.123 <http://123.123.123.123>; appears twice in bb-hosts!
This may cause strange
results
On the 4.1.2 (snapshot just before release canidate) setup I have here,
several of my systems are on multiple pages. The only difference that I can
see between the config lines shown above and the configs that I am running,
is that the "prefer" keyword is before any other tests..

--
--==[ Bob Gordon ]==--
list Henrik Størner · Wed, 19 Oct 2005 22:45:13 +0200 ·
quoted from Jeff Stuart
On Wed, Oct 19, 2005 at 04:27:23PM -0400, Jeff Stuart wrote:
I have a machine that I wish to appear on multiple pages.  So I list it
more than once in bb-hosts.

First time, I list it this way:

group-only bbd|bbgen|bbtest|hobbitd|rsync       Hobbit Monitoring Server
123.123.123.123    123.123.123.123 # BBPAGER BBNET BBDISPLAY bbd noconn 
rsync

Then I list it this way:

page game-servers Main Game Server Boxes.
group-except bbd|bbgen|bbtest|hobbitd|rsync
123.123.123.123    123.123.123.123 # ftp !telnet !smtp ssh  ntp  prefer
badconn:1:2:4
The rule is: Put all of your tags on one of these definitions, and ONLY
a "noconn" on the others.

So using your example:

group-only bbd|bbgen|bbtest|hobbitd|rsync       Hobbit Monitoring Server
123.123.123.123    123.123.123.123 # noconn 

page game-servers Main Game Server Boxes.
group-except bbd|bbgen|bbtest|hobbitd|rsync
123.123.123.123    123.123.123.123 # ftp !telnet !smtp ssh  ntp  prefer badconn:1:2:4 bbd rsync


There's no link between the "group-only" or "group-except" definitions,
and where you have the network tests defined, so even though it might
seem a bit odd with "group-except bbd|rsync" and then those two tests
listed on the first host-entry, it will work the way you want it to.
Because the tool the runs the network tests ignores all of the page,
subpage, group* definitions; and the tool that builds the webpages
ignores how all of the network tests were defined (it just looks at
what status columns are available).


Henrik
list Jeff Stuart · Wed, 19 Oct 2005 16:48:54 -0400 ·
quoted from Bob Gordon
Bob Gordon wrote:
On the 4.1.2 (snapshot just before release canidate) setup I have
here, several of my systems are on multiple pages. The only
difference that I can see between the config lines shown above and
the configs that I am running, is that the "prefer" keyword is before
any other tests..
Tried that.  Still get the error.

-- 
Jeff Stuart
Network Admin MyInternetServices
1-800-300-HOST
X-XXX-XXX-XXXX


--
list Jeff Stuart · Wed, 19 Oct 2005 16:54:32 -0400 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
The rule is: Put all of your tags on one of these definitions, and
ONLY a "noconn" on the others.

So using your example:

group-only bbd|bbgen|bbtest|hobbitd|rsync Hobbit Monitoring
Server 123.123.123.123 123.123.123.123 # noconn

page game-servers Main Game Server Boxes. group-except
bbd|bbgen|bbtest|hobbitd|rsync 123.123.123.123 123.123.123.123 #
ftp !telnet !smtp ssh ntp prefer badconn:1:2:4 bbd rsync


There's no link between the "group-only" or "group-except"
definitions, and where you have the network tests defined, so even
though it might seem a bit odd with "group-except bbd|rsync" and then
those two tests listed on the first host-entry, it will work the way
you want it to. Because the tool the runs the network tests ignores
all of the page, subpage, group* definitions; and the tool that
builds the webpages ignores how all of the network tests were defined
(it just looks at what status columns are available).


Henrik
Ahh THANK you Henrik... That worked!  YAAH I'm all green again LOL

-- 
Jeff Stuart
Network Admin
MyInternetServices
1-800-300-HOST
X-XXX-XXX-XXXX


--