Xymon Mailing List Archive search

What determines displayed columns?

6 messages in this thread

list David Mills · Wed, 9 Jan 2013 23:10:11 +0000 ·
All -

Besides adding specific tags for services / tests in hosts.cfg, what determines which service columns appear on web page for a particular client? I.e. I have some clients in my environment which do not have any tags in hosts.cfg, but display several "tests".

I see part of the puzzle: the client runs (in my case): ~/xymon/client_sunos-5.10/bin/xymonclient-sunos.sh, which generates the following columns of data

                date
                uname
                uptime
                who
                df
                mount
                prtconf
                memory
                swap
                swaplist
                ifconfig
                route
                netstat
                ports
                ifstat
                ps
                top

I also see there's a file called ~/xymon/client/etc/clientlaunch.cfg, which is like the server-side "tasks.cfg" in concept / syntax.

However, what determines which of these stanzas applies for which-host?

Thanks!

david

~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman
XXX-XXX-XXXX
user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>
list Larry Barber · Wed, 9 Jan 2013 17:17:38 -0600 ·
By default Xymon will display every test it has data for. You can use the
'xymon' command to find out what these are these: xymon <xymonhostname>
'xymondboard host=<hostname>'. You can control which tests get displayed by
using the "group" directive in your hosts.cfg file. See the hosts.cfg man
page for details.

Thanks,
Larry Barber
quoted from David Mills

On Wed, Jan 9, 2013 at 5:10 PM, Mills, David (IS) <user-eb64c112f0e9@xymon.invalid>wrote:
 All –

Besides adding specific tags for services / tests in hosts.cfg, what
determines which service columns appear on web page for a particular
client? I.e. I have some clients in my environment which do not have any
tags in hosts.cfg, but display several “tests”.

I see part of the puzzle: the client runs (in my case):
~/xymon/client_sunos-5.10/bin/xymonclient-sunos.sh, which generates the
following columns of data

                date
                uname
                uptime
                who
                df
                mount
                prtconf
                memory
                swap
                swaplist
                ifconfig
                route
                netstat
                ports
                ifstat
                ps
                top

I also see there’s a file called ~/xymon/client/etc/clientlaunch.cfg,
which is like the server-side “tasks.cfg” in concept / syntax.

However, what determines which of these stanzas applies for which-host?

Thanks!

david
~~~~~~~~~~~~~~~~~~~
*David Mills*
Systems Administrator
*Northrop Grumman*
XXX-XXX-XXXX

*user-eb64c112f0e9@xymon.invalid* <user-eb64c112f0e9@xymon.invalid>

list Michael Beatty · Thu, 10 Jan 2013 08:46:09 -0500 ·
This is coming from your hosts.cfg.

If 1 host has a tag on it, that tag will by default display for all other hosts. The solution is to use the GROUP-ONLY or GROUP-EXCEPT tags in your hosts.cfg.  This tells Xymon to display (or exclude) the specified tags until it comes to another "GROUP" tag.

Ultimately, you will likely need to create multiple pages and subpages to display data in a well organized fashion.  Putting groups of like hosts on different pages.  Note, that if a host is listed more than once in the host file, xymon can get confused as to which to use, so you should specify with a 'prefer' tag For example, your hosts.cfg may end up looking like:

******************************
page system SYSTEM
group-only conn|cpu|memory|info
1.2.3.4.host1 # conn my_test1 my_test2 my_test3 prefer
1.2.3.5 host2 # conn my_test1 my_test2 my_test3 prefer

page other OTHER
group-only my_test1|my_test2|my_test3
0.0.0.0 host1 #
0.0.0.0 host2 #
******************************

On your main page you will have two icons.  One named SYSTEM, the other named OTHER.  If you click on the System icon, the page will display you two hosts, only showing conn, cpu, memory, and info.  If you click on the Other icon, it will display your hosts only showing my_test1, my_test2, and my_test3.  You'll notice that sine the hosts are listed twice, there is a prefer tag in the first group, with all of the tags added to that host.  The second occurrence of the hosts doesn't need any defining data since Xymon already knows about it from the first occurrence.


Michael Beatty
quoted from Larry Barber

On 01/09/2013 06:10 PM, Mills, David (IS) wrote:
All --
Besides adding specific tags for services / tests in hosts.cfg, what determines which service columns appear on web page for a particular client? I.e. I have some clients in my environment which do not have any tags in hosts.cfg, but display several "tests".
I see part of the puzzle: the client runs (in my case): ~/xymon/client_sunos-5.10/bin/xymonclient-sunos.sh, which generates the following columns of data
                date
                uname
                uptime
                who
                df
                mount
                prtconf
                memory
                swap
                swaplist
                ifconfig
                route
                netstat
                ports
                ifstat
                ps
                top
I also see there's a file called ~/xymon/client/etc/clientlaunch.cfg, which is like the server-side "tasks.cfg" in concept / syntax.
However, what determines which of these stanzas applies for which-host?
Thanks!
david
~~~~~~~~~~~~~~~~~~~
*David Mills*
Systems Administrator
*/Northrop Grumman/*
XXX-XXX-XXXX

user-f4b84b696e24@xymon.invalid_ <mailto:user-eb64c112f0e9@xymon.invalid>

list David Mills · Fri, 11 Jan 2013 19:50:47 +0000 ·
Thanks Michael / Larry!

OK - here's what I'm finding as I continue to probe the guts of hobbit (Xymon 4.3.3) in my environment:
I have a host with the following column headings:

                                bbd        conn      cpu         disk        http       info        iostat     iostat2   mem2  memory  meta  msgs \
                                                nfs  ntp  ports    procs     prtdiag   raid  sar  ssh      tm          trends  xymond  xymongen  \
xymonnet  zones

It's config looks like this in hosts.cfg:

                                group   Some Group Heading
                                x.x.x.x    dwru002      # bbd ssh ntp      ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002

I copy that same line and paste it below this host, but change the name from "dwru002" to "Surprise" - same IP -  like this:

                                group   Some Group Heading
                                x.x.x.x    dwru002      # bbd ssh ntp      ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002
                                x.x.x.x    Surprise       #  bbd ssh ntp ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002

The only columns populating besides "trends" and "info" for "Surprise" are:

                bbd  conn  http  ntp  ssh

So somewhere in the Xymon config, it's keying off the exact name of "dwru002" to generate all these other columns of data, but where?
Also - I thought I should get "cpu, mem, procs, disk" and a few others by default, unless quashed in the tag fields. What gives?

Thanks for any ideas...

david
quoted from Larry Barber

From: Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
Sent: Wednesday, January 09, 2013 5:18 PM
To: Mills, David (IS)
Cc: xymon at xymon.com
Subject: EXT :Re: [Xymon] What determines displayed columns?

By default Xymon will display every test it has data for. You can use the 'xymon' command to find out what these are these: xymon <xymonhostname> 'xymondboard host=<hostname>'. You can control which tests get displayed by using the "group" directive in your hosts.cfg file. See the hosts.cfg man page for details.

Thanks,
Larry Barber
On Wed, Jan 9, 2013 at 5:10 PM, Mills, David (IS) <user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>> wrote:
All -

Besides adding specific tags for services / tests in hosts.cfg, what determines which service columns appear on web page for a particular client? I.e. I have some clients in my environment which do not have any tags in hosts.cfg, but display several "tests".

I see part of the puzzle: the client runs (in my case): ~/xymon/client_sunos-5.10/bin/xymonclient-sunos.sh, which generates the following columns of data

                date
                uname
                uptime
                who
                df
                mount
                prtconf
                memory
                swap
                swaplist
                ifconfig
                route
                netstat
                ports
                ifstat
                ps
                top

I also see there's a file called ~/xymon/client/etc/clientlaunch.cfg, which is like the server-side "tasks.cfg" in concept / syntax.

However, what determines which of these stanzas applies for which-host?

Thanks!

david
~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman

XXX-XXX-XXXX<tel:XXX-XXX-XXXX>
user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>
list Michael Beatty · Fri, 11 Jan 2013 15:16:49 -0500 ·
The tags you place after the host tell xymon which tags are relevant for that host, this is how xymon knows to run tests for those hosts.  The tags have no impact on which column heading appear.

Xymon generates columns for EVERYTHING unless you tell it not too.  If you don't want all those columns showing up, you need to tell Xymon this using the "group-only" or "group-except" designation.  If I'm understanding you correctly, your hosts.cfg file should look like:

group-only bbd|conn|http|mem|procs|disk|ssh|ntp
1.2.3.4 dwru002   #bbd ssh ntp ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002
1.2.3.4 Surprise #bbd ssh ntp ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002

Michael Beatty
quoted from David Mills

On 01/11/2013 02:50 PM, Mills, David (IS) wrote:

Thanks Michael / Larry!

OK -- here's what I'm finding as I continue to probe the guts of hobbit (Xymon 4.3.3) in my environment:

I have a host with the following column headings:

bbd        conn      cpu         disk        http info        iostat     iostat2   mem2  memory  meta  msgs \

nfs  ntp  ports    procs     prtdiag   raid  sar  ssh tm          trends  xymond  xymongen  \

xymonnet zones

It's config looks like this in hosts.cfg:

group   Some Group Heading

x.x.x.x    dwru002      # bbd ssh ntp      ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002

I copy that same line and paste it below this host, but change the name from "dwru002" to "Surprise" -- same IP --  like this:

group   Some Group Heading

x.x.x.x    dwru002      # bbd ssh ntp      ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002

x.x.x.x    Surprise       #  bbd ssh ntp ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002

The only columns populating besides "trends" and "info" for "Surprise" are:

bbd  conn  http  ntp  ssh

So somewhere in the Xymon config, it's keying off the exact name of "dwru002" to generate all these other columns of data, but where?

Also -- I thought I should get "cpu, mem, procs, disk" and a few others by default, unless quashed in the tag fields. What gives?

Thanks for any ideas...

david

*From:*Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
quoted from David Mills
*Sent:* Wednesday, January 09, 2013 5:18 PM
*To:* Mills, David (IS)
*Cc:* xymon at xymon.com
*Subject:* EXT :Re: [Xymon] What determines displayed columns?

By default Xymon will display every test it has data for. You can use the 'xymon' command to find out what these are these: xymon <xymonhostname> 'xymondboard host=<hostname>'. You can control which tests get displayed by using the "group" directive in your hosts.cfg file. See the hosts.cfg man page for details.

Thanks,

Larry Barber

On Wed, Jan 9, 2013 at 5:10 PM, Mills, David (IS) <user-eb64c112f0e9@xymon.invalid <mailto:user-eb64c112f0e9@xymon.invalid>> wrote:

All --

Besides adding specific tags for services / tests in hosts.cfg, what determines which service columns appear on web page for a particular client? I.e. I have some clients in my environment which do not have any tags in hosts.cfg, but display several "tests".

I see part of the puzzle: the client runs (in my case): ~/xymon/client_sunos-5.10/bin/xymonclient-sunos.sh, which generates the following columns of data

date

uname

uptime

who

df

mount

prtconf

memory

swap

swaplist

ifconfig

route

netstat

ports

ifstat

ps

top

I also see there's a file called ~/xymon/client/etc/clientlaunch.cfg, which is like the server-side "tasks.cfg" in concept / syntax.

However, what determines which of these stanzas applies for which-host?

Thanks!

david

~~~~~~~~~~~~~~~~~~~
*David Mills*
Systems Administrator
*/Northrop Grumman/*

XXX-XXX-XXXX <tel:XXX-XXX-XXXX>
user-eb64c112f0e9@xymon.invalid <mailto:user-eb64c112f0e9@xymon.invalid>

list Larry Barber · Fri, 11 Jan 2013 14:20:37 -0600 ·
The Xymon client reports data by machine name (if its a *nix machine it's
the return from uname -n), so the only columns you will see for Surprise
are the network tests, which are pretty much the only ones that read the
hosts.cfg file. Your server is just not seeing any client tests for
Surprise.

Thanks,
Larry Barber
quoted from Michael Beatty

On Fri, Jan 11, 2013 at 1:50 PM, Mills, David (IS) <user-eb64c112f0e9@xymon.invalid>wrote:
Thanks Michael / Larry!****

** **

OK – here’s what I’m finding as I continue to probe the guts of hobbit
(Xymon 4.3.3) in my environment:****

I have a host with the following column headings:****

** **

                                bbd        conn      cpu         disk
      http       info        iostat     iostat2   mem2  memory  meta  msgs \
****

                                                nfs  ntp  ports    procs
   prtdiag   raid  sar  ssh      tm          trends  xymond  xymongen  \**
**

xymonnet  zones****

** **

It’s config looks like this in hosts.cfg:****

** **

                                group   Some Group Heading****

                                x.x.x.x    dwru002      # bbd ssh ntp
ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002****

** **

I copy that same line and paste it below this host, but change the name
from “dwru002” to “Surprise” – same IP –  like this:****

** **

                                group   Some Group Heading****

                                x.x.x.x    dwru002      # bbd ssh ntp
ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002****

                                x.x.x.x    Surprise       #  bbd ssh ntp
ENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002****

** **

The only columns populating besides “trends” and “info” for “Surprise” are:
****

** **

                bbd  conn  http  ntp  ssh                                *
***

** **

So somewhere in the Xymon config, it’s keying off the exact name of
“dwru002” to generate all these other columns of data, but where? ****

Also – I thought I should get “cpu, mem, procs, disk” and a few others by
default, unless quashed in the tag fields. What gives?****

** **

Thanks for any ideas…****

** **

david****

** **

*From:* Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
*Sent:* Wednesday, January 09, 2013 5:18 PM
*To:* Mills, David (IS)
*Cc:* xymon at xymon.com
*Subject:* EXT :Re: [Xymon] What determines displayed columns?****

** **

By default Xymon will display every test it has data for. You can use the
'xymon' command to find out what these are these: xymon <xymonhostname>
'xymondboard host=<hostname>'. You can control which tests get displayed by
using the "group" directive in your hosts.cfg file. See the hosts.cfg man
page for details. ****

** **

Thanks,****

Larry Barber****

On Wed, Jan 9, 2013 at 5:10 PM, Mills, David (IS) <user-eb64c112f0e9@xymon.invalid>
wrote:****

All –****

 ****

Besides adding specific tags for services / tests in hosts.cfg, what
determines which service columns appear on web page for a particular
client? I.e. I have some clients in my environment which do not have any
tags in hosts.cfg, but display several “tests”. ****

 ****

I see part of the puzzle: the client runs (in my case):
~/xymon/client_sunos-5.10/bin/xymonclient-sunos.sh, which generates the
following columns of data****

 ****

                date****

                uname****

                uptime****

                who****

                df****

                mount****

                prtconf****

                memory****

                swap****

                swaplist****

                ifconfig****

                route****

                netstat****

                ports****

                ifstat****

                ps****

                top****

 ****

I also see there’s a file called ~/xymon/client/etc/clientlaunch.cfg,
which is like the server-side “tasks.cfg” in concept / syntax. ****

 ****

However, what determines which of these stanzas applies for which-host?***
• ****

Thanks!****

 ****

david****

~~~~~~~~~~~~~~~~~~~
*David Mills*
Systems Administrator
*Northrop Grumman* ****

XXX-XXX-XXXX
user-eb64c112f0e9@xymon.invalid ****

 ****

 ****

 ****


** **