FW: [xymon] TS - bb-hosts problem (SOLUTION)

d.tom.schmitt at L-3com.com d.tom.schmitt at L-3com.com
Tue Aug 31 20:22:21 CEST 2010


Hope this helps someone else in the future.

After much testing and comparing:
	It seems that before you can use the 0.0.0.0 entries,
	you must have the actual host entry with the IP Address on the
line in bb-hosts.
	It must be declared FIRST (before any of the 0.0.0.0 entries) in
the bb-hosts file.

GOOD:
=====
	128.192.10.10 device.abc.com  # comm

	group-compress aaa ...
	0.0.0.0 device.abc.com
		.  .  .
	group-compress bbb ...
	0.0.0.0 device.abc.com

BAD:
====
	group-compress aaa ...
	0.0.0.0 device.abc.com

	128.192.10.10 device.abc.com  # comm.

	group-compress bbb ...
	0.0.0.0 device.abc.com

I automatically generate list for the Windows Admins with all of their
servers
listed below their name ICON.  This way the Admins can keep up just
their 
list of servers.  The script runs every day early in the morning.
I have up to 5 - 0.0.0.0 occurrences in the bb-hosts file.

         Thanks,
         
         Tom Schmitt
         Senior IT Staff - R&D
         L-3 Communication Systems West
         640 North 2200 West
         P.O. Box 16850
         Salt Lake City, UT  84116
         Phone (801) 594-3030
         Cell      (801) 231-7230
         eFax    (413) 480-6873
         D.Tom.Schmitt at L-3Com.com
                 \\\\||////
                  \ ~  ~ /  
                  | @  @ |   
     		--oOo---(_)---oOo--

-----Original Message-----
From: d.tom.schmitt at L-3com.com [mailto:d.tom.schmitt at L-3com.com] 
Sent: Monday, August 30, 2010 4:46 PM
To: xymon at xymon.com
Subject: RE: [xymon] TS - bb-hosts problem

Only the device with an IP address is tested.
The 0.0.0.0 entries are so that you can show the tests on other web
pages in xymon.
I do this on over 100 devices so the 0.0.0.0 entries should not be
causing the problem.

I am still at a loss where it is getting the message.
I should be able to have one actual test entry with the IP address on
the line and
Multiple 0.0.0.0 entries that are associated with it.
Why is just this one entry having a problem????

Do I have to remove all the entries for this hosts including the Xymon
DB entry and add them back in again?

         Thanks,
         
         Tom Schmitt
         Senior IT Staff - R&D
         L-3 Communication Systems West
         640 North 2200 West
         P.O. Box 16850
         Salt Lake City, UT  84116
         Phone (801) 594-3030
         Cell      (801) 231-7230
         eFax    (413) 480-6873
         D.Tom.Schmitt at L-3Com.com
                 \\\\||////
                  \ ~  ~ /  
                  | @  @ |   
     		--oOo---(_)---oOo--


-----Original Message-----
From: epperson at alumni.unc.edu [mailto:epperson at alumni.unc.edu] 
Sent: Monday, August 30, 2010 9:13 AM
To: xymon at xymon.com
Subject: Re: [xymon] TS - bb-hosts problem
Importance: High

On Mon, August 30, 2010 09:54, d.tom.schmitt at L-3com.com wrote:
[SNIP]
>
> Error output:
>
> Host cswflex4.csw.l-3com.com appears twice in bb-hosts! This may cause
> strange results
>
[SNIP]
>
>                 [root at monitorp etc]# grep -i cswflex4 bb-hosts
>
> 0.0.0.0         cswflex4.csw.L-3com.com
>
> 128.170.31.14   cswflex4.csw.L-3com.com         # conn
>
> 0.0.0.0 cswflex4.csw.l-3com.com
>
> 0.0.0.0 cswflex4.csw.l-3com.com
>
> [root at monitorp etc]#
>
>
>
>
>
> I cannot find a second entry with an IP address.
>
> I have hundreds of other servers with 0.0.0.0 entries so I cannot
figure
> out what is happening?
>

Since case isn't relevant in hostnames, I'd say the error message isn't
strictly correct:  cswflex4.csw.l-3com.com actually appears four times
in
bb-hosts, not two.  As indicated by the error, this may cause strange
results.

I'm not sure what your point is about the 0.0.0.0 ip.  With no TESTIP
tag,
the ip will only be used if hostname lookup fails.  And used or not
used,
you have four instances of the hostname in bb-hosts, which can give
strange results.

Or maybe I'm not reading your post correctly.


To unsubscribe from the xymon list, send an e-mail to
xymon-unsubscribe at xymon.com



To unsubscribe from the xymon list, send an e-mail to
xymon-unsubscribe at xymon.com





More information about the Xymon mailing list