Xymon Mailing List Archive search

Howto display status under differents names ?

8 messages in this thread

list Charles Goyard · Wed, 6 Sep 2006 14:51:19 +0200 ·
Hi,

I have some multipurpose hosts (mail, dns, ldap) I want to display under differents pages.

From the same client that reports dnsload, gets polled for dns, ldap,
smtp, I want them to be shown as :

smtp1 (main hostname) on the "mail servers" page
ldap1 on the "ldap servers" page
dns1 on the "dns servers" page

I tried :

10.1.1.1	smtp1	# prefer     smtp ldap dns pop3 pop3s
10.1.1.1	smtp1	# NAME:ldap1 smtp ldap dns pop3 pop3s noconn
10.1.1.1	smtp1	# NAME:dns1  smtp ldap dns pop3 pop3s noconn

but no luck, they are shown under their real name, smtp1, on all pages.
Is it possible to do such a thing ?


-- 
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31
list Jerry Yu · Wed, 6 Sep 2006 11:26:23 -0400 ·
I believe it should/could be done by 'host alias'. There is a thread on this
not too long ago. basically, all tests done on first real one. Aliases is
inserted to bb-hosts as '0.0.0.0 smtp1 # noconn name:dns" with 'group-only'.
▸ quoted from Charles Goyard

On 9/6/06, Charles Goyard <user-98f9625a7a59@xymon.invalid> wrote:
Hi,

I have some multipurpose hosts (mail, dns, ldap) I want to display under
differents pages.

From the same client that reports dnsload, gets polled for dns, ldap,
smtp, I want them to be shown as :

smtp1 (main hostname) on the "mail servers" page
ldap1 on the "ldap servers" page
dns1 on the "dns servers" page

I tried :

10.1.1.1        smtp1   # prefer     smtp ldap dns pop3 pop3s
10.1.1.1        smtp1   # NAME:ldap1 smtp ldap dns pop3 pop3s noconn
10.1.1.1        smtp1   # NAME:dns1  smtp ldap dns pop3 pop3s noconn

but no luck, they are shown under their real name, smtp1, on all pages.
Is it possible to do such a thing ?


--
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31

list Charles Goyard · Wed, 6 Sep 2006 18:51:20 +0200 ·
Hi,

I tried what you sugested and also tried what the previous discussion
states, but the hosts still ignores COMMENT or NAME tags. It show under
the first name.
▸ quoted from Jerry Yu

Jerry Yu wrote :
I believe it should/could be done by 'host alias'. There is a thread on this
not too long ago. basically, all tests done on first real one. Aliases is
inserted to bb-hosts as '0.0.0.0 smtp1 # noconn name:dns" with 'group-only'.

-- 
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31
list Jerry Yu · Wed, 6 Sep 2006 14:14:31 -0400 ·
Here is what I had in my bb-hosts for a Hobbit 4.2 on CentOS 4.4. Enclosed a
PNG showing the resulted MAIN-VIEW.
------cut----------cut---------
127.0.0.1   localhost      # BBDISPLAY BBPAGER BBNET bbd http://localhost/
group-only http "web service"
0.0.0.0   localhost      # noconn name:www
------cut---------cut---------
▸ quoted from Charles Goyard


On 9/6/06, Charles Goyard <user-98f9625a7a59@xymon.invalid> wrote:
Hi,

I tried what you sugested and also tried what the previous discussion
states, but the hosts still ignores COMMENT or NAME tags. It show under
the first name.

Jerry Yu wrote :
I believe it should/could be done by 'host alias'. There is a thread on
this
not too long ago. basically, all tests done on first real one. Aliases
is
inserted to bb-hosts as '0.0.0.0 smtp1 # noconn name:dns" with
'group-only'.


--
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31

list Jerry Yu · Wed, 6 Sep 2006 14:21:49 -0400 ·
re-read your message, it seemed that NAME: is not honored for HOST aliases.
A bug, maybe?
▸ quoted from Jerry Yu

On 9/6/06, Jerry Yu <user-764c1f364fe0@xymon.invalid> wrote:
Here is what I had in my bb-hosts for a Hobbit 4.2 on CentOS 4.4. Enclosed
a PNG showing the resulted MAIN-VIEW.
------cut----------cut---------
127.0.0.1   localhost      # BBDISPLAY BBPAGER BBNET bbd http://localhost/
group-only http "web service"
0.0.0.0   localhost      # noconn name:www
------cut---------cut---------


On 9/6/06, Charles Goyard <user-98f9625a7a59@xymon.invalid> wrote:
Hi,

I tried what you sugested and also tried what the previous discussion
states, but the hosts still ignores COMMENT or NAME tags. It show under
the first name.

Jerry Yu wrote :
I believe it should/could be done by 'host alias'. There is a thread
on this
not too long ago. basically, all tests done on first real one. Aliases
is
inserted to bb-hosts as '0.0.0.0 smtp1 # noconn name:dns" with
'group-only'.


--
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31

list Charles Goyard · Wed, 6 Sep 2006 20:26:15 +0200 ·
So we have the same result : the name:www clause is not
honored and localhost is displayed on both places.

Regards
▸ quoted from Jerry Yu


Jerry Yu a écrit :
Here is what I had in my bb-hosts for a Hobbit 4.2 on CentOS 4.4. Enclosed a
PNG showing the resulted MAIN-VIEW.
------cut----------cut---------
127.0.0.1   localhost      # BBDISPLAY BBPAGER BBNET bbd http://localhost/
group-only http "web service"
0.0.0.0   localhost      # noconn name:www
------cut---------cut---------

-- 
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31
list Larry Barber · Thu, 7 Sep 2006 13:27:40 -0500 ·
You need to put all the tests under one entry, and "noconn" for the rest.
Then use "group-only" and 'group-except" to control what is displayed on
each page. I don't think there is a way to change the name for each entry.
You can search the list archives for more information, this topic has come
up before quite a few times.

Thanks,
Larry Barber
▸ quoted from Charles Goyard

On 9/6/06, Charles Goyard <user-98f9625a7a59@xymon.invalid> wrote:
So we have the same result : the name:www clause is not
honored and localhost is displayed on both places.

Regards


Jerry Yu a écrit :
Here is what I had in my bb-hosts for a Hobbit 4.2 on CentOS 4.4.
Enclosed a
PNG showing the resulted MAIN-VIEW.
------cut----------cut---------
127.0.0.1   localhost      # BBDISPLAY BBPAGER BBNET bbd
http://localhost/
group-only http "web service"
0.0.0.0   localhost      # noconn name:www
------cut---------cut---------

--
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31

list Jerry Yu · Thu, 7 Sep 2006 16:22:18 -0400 ·
hmm, IMHO, name:JustALabel  should be honored even for host aliases, for the
sake of consistency, or as a feature if you may.
▸ quoted from Larry Barber

On 9/7/06, Larry Barber <user-6ef9c2864140@xymon.invalid> wrote:
You need to put all the tests under one entry, and "noconn" for the rest.
Then use "group-only" and 'group-except" to control what is displayed on
each page. I don't think there is a way to change the name for each entry.
You can search the list archives for more information, this topic has come
up before quite a few times.

Thanks,
Larry Barber

On 9/6/06, Charles Goyard <user-98f9625a7a59@xymon.invalid> wrote:
So we have the same result : the name:www clause is not
honored and localhost is displayed on both places.

Regards


Jerry Yu a écrit :
Here is what I had in my bb-hosts for a Hobbit 4.2 on CentOS 4.4.
Enclosed a
PNG showing the resulted MAIN-VIEW.
------cut----------cut---------
127.0.0.1   localhost      # BBDISPLAY BBPAGER BBNET bbd
http://localhost/
group-only http "web service"
0.0.0.0   localhost      # noconn name:www
------cut---------cut---------

--
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31