[Xymon] xymonnet testip And host.cfg Entry

Thomas Eckert tom at it-eckert.de
Sat Aug 23 11:13:43 CEST 2014


Great it works now :)

cc'ed list....

On Aug 22, 2014 11:00 PM, "Rebman,Scott (HHSC Contractor)" <Scott.Rebman at hhsc.state.tx.us> wrote:
>
> Thomas, 
>
> Thanks for the extra set of eyes. It does work once corrected. 
>
> It's

all about the syntax. > > Thanks again. > > Scott Allen Rebman > Solaris System Administrator > HHS/HHSC/Contractor > TIERS Operations > (512)873-6864 (CrossPark) > (512)275-6122 (cell) > Scott.Rebman at hhsc.state.tx.us > > > > > -----Original Message----- > From: Thomas Eckert [mailto:tom at it-eckert.de] > Sent: Friday, August 22, 2014 12:00 PM > To: Rebman,Scott (HHSC Contractor) > Cc: xymon at xymon.com > Subject: Re: [Xymon] xymonnet testip And host.cfg Entry > > On both lines mentioning your glabal zone the hash (#) after the hostname is missing. Probably just a cut and paste error. > > Having used conn checks for multihomed machines rarely but from the manpage the syntax seems to be: > > 10.###.###.12    #  conn=best,10.###.###.12,172.###.###.78 > > Cheers > Thomas > > On Aug 22, 2014 6:17 PM, "Rebman,Scott (HHSC Contractor)" wrote: > > > > Looking for assistance in recognizing (pinging) admin networks on > > Solaris 10/11 global zones and ldoms but keep using public IP’s for > > containers (zones) > >   > > Found the following on the xymonnet man page: > >   > > --dns=[ip|only|standard] > > Determines how xymonnet finds the IP adresses of the hosts to test. By default (the "standard"), xymonnet does a DNS lookup of the hostname to determine the IP address, unless the host has the "testip" tag, or the DNS lookup fails. > > With "--dns=only" xymonnet will ONLY do the DNS lookup; if it fails, then all services on that host will be reported as being down. > > With "--dns=ip" xymonnet will never do a DNS lookup; it will use the > > IP adresse specified in hosts.cfg for the tests. Thus, this setting is > > equivalent to having the "testip" tag on all hosts. Note that http > > tests will ignore this setting and still perform a DNS lookup for the > > hostname given in the URL; see the "xymonnet tags for HTTP tests" > > section in hosts.cfg(5) > >   > > But on the host.cfg man page: > >   > > testip > > By default, Xymon will perform a name lookup of the hostname to get the IP address it will use for network tests. This tag causes Xymon to use the IP listed in the hosts.cfg file. > >   > > But then it goes on to say later in the hosts.cfg page: > >   > > Testing sites by IP-address > > xymonnet ignores the "testip" tag normally used to force a test to use the IP-address from the hosts.cfg file instead of the hostname, when it performs http and https tests. > > The reason for this is that it interacts badly with virtual hosts, especially if these are IP-based as is common with https-websites. > > The xymon info page does list the admin network IP but the conn page continues to check the public IP address: > >   > > > > - Information > > Fri Aug 22 09:38:43 2014 > >   > > 08/21/14 What happened to the iostat2 column on the Solaris boxes? > > > > > >   > > Hostname: > > > > OS: > > SunOS 5.11 11.1 sun4v sparc sun4v Client S/W: > > IP: > > 172.###.###.78 > >   > > > > - conn > > Fri Aug 22 09:40:14 2014 > >   > > 08/21/14 What happened to the iostat2 column on the Solaris boxes? > > > > > >   > > Top of Form > > Bottom of Form > > Fri Aug 22 09:38:41 2014 conn NOT ok > >   > > Service conn on is not OK : Host does not respond to > > ping > >   > >   > > System unreachable for 1424 poll periods (258838 seconds) > >   > >   10.###.###.12 is unreachable > >   > >   > >   > >   > >   > > host.cfg file entry: > >   > > group > > 172.###.###.78   testip > > 10.###.###.41    #COMMENT:"" > > 10.###.###.42    #COMMENT:"" > > 10.###.###.43    #COMMENT:"" > > 10.###.###.44    #COMMENT:"" > > 10.###.###.45    #COMMENT:"" > > 10.###.###.46    #COMMENT:"" > > 10.###.###.47    #COMMENT:"" > > 10.###.###.48    #COMMENT:"" > > 10.###.###.49    #COMMENT:"" > > 10.###.###.79    #COMMENT:"" > > 10.###.###.81    #COMMENT:"" > > 10.###.###.166   #COMMENT:"" > > 10.###.###.53    #COMMENT:"" > > 10.###.###.170   #COMMENT:"" > > 10.###.###.55    #COMMENT:"" > > 10.###.###.56    #COMMENT:"" > > 10.###.###.57    #COMMENT:"" > > 10.###.###.58    #COMMENT:"" > > 10.###.###.73    #COMMENT:"" > > 10.###.###.168   #COMMENT:"" > >   > > I have also added the following entry to the hosts.cfg file with no luck getting the conn to go green: > >   > > 10.###.###.12    conn={best}10.###.###.12,172.###.###.78 > >   > > How do I correct this to have the conn also ping the admin IP address but yet allow the continued checks of DNS for the containers (zones)? > >   > > Scott Allen Rebman > > Solaris System Administrator > > Northrop Grumman > >   > >   > >   > >   > >  


More information about the Xymon mailing list