What determines displayed columns?
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
512-595-1238
david.mills at ngc.com<mailto:david.mills at ngc.com>
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) <David.Mills at ngc.com>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 topI 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* 512-595-1238 *david.mills at ngc.com* <david.mills at ngc.com> _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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:lebarber at gmail.com] 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) <David.Mills at ngc.com<mailto:David.Mills at ngc.com>> 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
512-595-1238<tel:512-595-1238>
david.mills at ngc.com<mailto:david.mills at ngc.com>
_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon
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
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:lebarber at gmail.com] *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) <David.Mills at ngc.com <mailto:David.Mills at ngc.com>> 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/* 512-595-1238 <tel:512-595-1238> david.mills at ngc.com <mailto:david.mills at ngc.com> _______________________________________________ Xymon mailing list Xymon at xymon.com <mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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
On Fri, Jan 11, 2013 at 1:50 PM, Mills, David (IS) <David.Mills at ngc.com>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 procsprtdiag 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 ntpENV: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 ntpENV:winall,2 ENV:global,2 ENV:vlan,12 http://dwru002****
x.x.x.x Surprise # bbd ssh ntpENV: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:lebarber at gmail.com] *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) <David.Mills at ngc.com> 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* **** 512-595-1238 david.mills at ngc.com **** **** **** **** _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon**** ** **
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
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/* 512-595-1238 _david.mills at ngc.com_ <mailto:david.mills at ngc.com> _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (3)
-
David.Mills@ngc.com
-
lebarber@gmail.com
-
Michael.Beatty@sherwin.com