Xymon Mailing List Archive search

Can a host be "aliased" multiple times in bb-hosts?

11 messages in this thread

list Greg L Hubbard · Wed, 30 Aug 2006 16:36:42 -0500 ·
Shire folk:

I was trying to search the archives for this but didn't get anywhere.

What I want to do is have some hosts appear in a couple of different
places in my Web page hierarchy.  From the description of the "prefer"
tag, it appears that this can be done and code was written to help
Hobbit avoid confusion.  But when I put my host alias in the file, the
Hobbit server started complaining that my host was in the file twice.

Can this be done?  If so, where should I look in the docs to figure it
out?

GLH
list Mario Andre · Wed, 30 Aug 2006 18:44:06 -0300 ·
HI,

To do this you have to repeat the name of the host and use 0.0.0.0 and
noconn like this:

0.0.0.0  host_repeated # noconn

Regards,
Mario.
quoted from Greg L Hubbard


On 8/30/06, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid> wrote:
 Shire folk:

I was trying to search the archives for this but didn't get anywhere.

What I want to do is have some hosts appear in a couple of different
places in my Web page hierarchy.  From the description of the "prefer" tag,
it appears that this can be done and code was written to help Hobbit avoid
confusion.  But when I put my host alias in the file, the Hobbit server
started complaining that my host was in the file twice.

Can this be done?  If so, where should I look in the docs to figure it
out?

GLH
list Matthew Davis · Thu, 31 Aug 2006 01:05:55 -0400 ·
And going a step fruther, what about only displaying certain tags for
a certain host and displaying other tags from that same host on a
differnt page, without showing the first set.

For example, I'd like to have a page that shows all connection type
info (smtp/http/ftp/etc.) and another page that shows collected data
from the hobbit-client (cpu/mem/vmio/etc).

Is that possible?  Or does hobbit display all or nothing about a host?
 I've been playing and searching for a few days about this with no
luck.  I hope I'm overlooking something obvious.
quoted from Mario Andre

On 8/30/06, mario andre <user-82c7780661a4@xymon.invalid> wrote:
HI,

To do this you have to repeat the name of the host and use 0.0.0.0 and
noconn like this:

0.0.0.0  host_repeated # noconn

Regards,

Mario.


On 8/30/06, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid> wrote:

Shire folk:

I was trying to search the archives for this but didn't get anywhere.

What I want to do is have some hosts appear in a couple of different
places in my Web page hierarchy.  From the description of the "prefer" tag,
it appears that this can be done and code was written to help Hobbit avoid
confusion.  But when I put my host alias in the file, the Hobbit server
started complaining that my host was in the file twice.

Can this be done?  If so, where should I look in the docs to figure it
out?

GLH
-- 

Matthew Davis
list Ralph Mitchell · Thu, 31 Aug 2006 00:24:28 -0500 ·
quoted from Matthew Davis
On 8/31/06, Matthew Davis <user-b01c5fac37a6@xymon.invalid> wrote:
And going a step fruther, what about only displaying certain tags for
a certain host and displaying other tags from that same host on a
differnt page, without showing the first set.

For example, I'd like to have a page that shows all connection type
info (smtp/http/ftp/etc.) and another page that shows collected data
from the hobbit-client (cpu/mem/vmio/etc).

Is that possible?  Or does hobbit display all or nothing about a host?
 I've been playing and searching for a few days about this with no
luck.  I hope I'm overlooking something obvious.
Take a look in the bb-hosts doc for usage of "group-only" and
"group-except".  Group-only will cause only the listed columns to
show, group-except causes all columns to show *except* those listed.

Ralph Mitchell
list Henrik Størner · Thu, 31 Aug 2006 07:26:52 +0200 ·
quoted from Matthew Davis
On Thu, Aug 31, 2006 at 01:05:55AM -0400, Matthew Davis wrote:
And going a step fruther, what about only displaying certain tags for
a certain host and displaying other tags from that same host on a
differnt page, without showing the first set.

For example, I'd like to have a page that shows all connection type
info (smtp/http/ftp/etc.) and another page that shows collected data
from the hobbit-client (cpu/mem/vmio/etc).

Is that possible?  Or does hobbit display all or nothing about a host?
By default, Hobbit displays everything about a host. But You can use the
"group-only" and "group-except" directives to show only selected
columns; see the bb-hosts(5) man-page for details.


Regards,
Henrik
list Matthew Davis · Thu, 31 Aug 2006 01:44:29 -0400 ·
Ah thanks Ralph & Henrik!  Glad it was something easy.
quoted from Henrik Størner

On 8/31/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Aug 31, 2006 at 01:05:55AM -0400, Matthew Davis wrote:
And going a step fruther, what about only displaying certain tags for
a certain host and displaying other tags from that same host on a
differnt page, without showing the first set.

For example, I'd like to have a page that shows all connection type
info (smtp/http/ftp/etc.) and another page that shows collected data
from the hobbit-client (cpu/mem/vmio/etc).

Is that possible?  Or does hobbit display all or nothing about a host?
By default, Hobbit displays everything about a host. But You can use the
"group-only" and "group-except" directives to show only selected
columns; see the bb-hosts(5) man-page for details.


Regards,
Henrik

-- 

Matthew Davis
http://familycampground.org/matthew/
list Greg L Hubbard · Thu, 31 Aug 2006 08:46:02 -0500 ·
thanks, Mario!  I will try that out!
 
GLH


	From: mario andre [mailto:user-82c7780661a4@xymon.invalid] 
	Sent: Wednesday, August 30, 2006 4:44 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: Re: [hobbit] Can a host be "aliased" multiple times in
bb-hosts?
quoted from Matthew Davis
	
	
	HI,
	 
	To do this you have to repeat the name of the host and use
0.0.0.0 and noconn like this:
	 
	0.0.0.0  host_repeated # noconn
	
	Regards,
	Mario.
	 
	 
	On 8/30/06, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid> wrote: 

		Shire folk: 

		I was trying to search the archives for this but didn't
get anywhere. 

		What I want to do is have some hosts appear in a couple
of different places in my Web page hierarchy.  From the description of
the "prefer" tag, it appears that this can be done and code was written
to help Hobbit avoid confusion.  But when I put my host alias in the
file, the Hobbit server started complaining that my host was in the file
twice. 

		Can this be done?  If so, where should I look in the
docs to figure it out? 

		GLH
list Jerry Yu · Thu, 31 Aug 2006 12:18:56 -0400 ·
hmm, tried that. it works, only that bbtest for the hobbit server itself
went Yellow & complains about duplicated hosts. any idea why?
I have
1.2.3.4 host1 # noconn ssh http
0.0.0.0 host1 # noconn smtp name:emailRelay
quoted from Mario Andre

On 8/30/06, mario andre <user-82c7780661a4@xymon.invalid> wrote:
HI,

To do this you have to repeat the name of the host and use 0.0.0.0 and
noconn like this:

0.0.0.0  host_repeated # noconn

Regards,
Mario.


On 8/30/06, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid> wrote:
 Shire folk:

I was trying to search the archives for this but didn't get anywhere.

What I want to do is have some hosts appear in a couple of different
places in my Web page hierarchy.  From the description of the "prefer" tag,
it appears that this can be done and code was written to help Hobbit avoid
confusion.  But when I put my host alias in the file, the Hobbit server
started complaining that my host was in the file twice.

Can this be done?  If so, where should I look in the docs to figure it
out?

GLH
list Jerry Yu · Thu, 31 Aug 2006 12:20:09 -0400 ·
also, it displays host1 (again, with every columns) as well as emailRelay
(with SMTP column alone).
quoted from Jerry Yu

On 8/31/06, Jerry Yu <user-764c1f364fe0@xymon.invalid> wrote:
hmm, tried that. it works, only that bbtest for the hobbit server itself
went Yellow & complains about duplicated hosts. any idea why?
I have
1.2.3.4 host1 # noconn ssh http
0.0.0.0 host1 # noconn smtp name:emailRelay

On 8/30/06, mario andre <user-82c7780661a4@xymon.invalid> wrote:
HI,

To do this you have to repeat the name of the host and use 0.0.0.0 and
noconn like this:

0.0.0.0  host_repeated # noconn

Regards,
Mario.


On 8/30/06, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid > wrote:
 Shire folk:

I was trying to search the archives for this but didn't get anywhere.

What I want to do is have some hosts appear in a couple of different
places in my Web page hierarchy.  From the description of the "prefer" tag,
it appears that this can be done and code was written to help Hobbit avoid
confusion.  But when I put my host alias in the file, the Hobbit server
started complaining that my host was in the file twice.

Can this be done?  If so, where should I look in the docs to figure it
out?

GLH
list Henrik Størner · Thu, 31 Aug 2006 22:53:21 +0200 ·
quoted from Jerry Yu
On Thu, Aug 31, 2006 at 12:18:56PM -0400, Jerry Yu wrote:
hmm, tried that. it works, only that bbtest for the hobbit server itself
went Yellow & complains about duplicated hosts. any idea why?
I have
1.2.3.4 host1 # noconn ssh http
0.0.0.0 host1 # noconn smtp name:emailRelay
Put all of your host definitions on one host entry, and let the others
just be with "noconn".

1.2.3.4 host1 # noconn ssh http smtp name:emailRelay
0.0.0.0 host1 # noconn

Oh, and the "http" stuff really should be a full URL.


Regards,
Henrik
list Jerry Yu · Thu, 31 Aug 2006 17:31:08 -0400 ·
got you. thx, henrik.
quoted from Henrik Størner

On 8/31/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Aug 31, 2006 at 12:18:56PM -0400, Jerry Yu wrote:
hmm, tried that. it works, only that bbtest for the hobbit server itself
went Yellow & complains about duplicated hosts. any idea why?
I have
1.2.3.4 host1 # noconn ssh http
0.0.0.0 host1 # noconn smtp name:emailRelay
Put all of your host definitions on one host entry, and let the others
just be with "noconn".

1.2.3.4 host1 # noconn ssh http smtp name:emailRelay
0.0.0.0 host1 # noconn

Oh, and the "http" stuff really should be a full URL.


Regards,
Henrik