From: Adesanya, A. <ye...@sl...> - 2004-06-09 22:50:18
|
Hi Matt. I tried "telnet 127.0.0.1 8649" as well as telnet using the actual IP address of the host and in both cases I get the same result as with a host name (no XML output). ---- Yemi > -----Original Message----- > From: Matt Massie [mailto:massie@CS.Berkeley.EDU] > Sent: Wednesday, June 09, 2004 10:37 AM > To: kn...@kn... > Cc: Ganglia Developers; Adesanya, Adeyemi > Subject: Re: [Ganglia-developers] (no subject) > > thanks for martin's sleuthing i think i understand what might > be going on here. > > the getaddrinfo() call was being given an AF_UNSPEC hint > which meant that either a IPv4 or IPv6 address was > acceptable. since the machines had IPv6 interfaces.. > getaddrinfo was return the IPv6 interfaces. > that's ok. > > but when a person went to connect to the IPv6 address to get > the XML... > the call to inet_ntop also had AF_INET hardcoded as the first > parameter. > > given that the address is really an AF_INET6 inet_ntop would > fail giving us the address 0.0.0.0. > > i have a question though... where you putting in the hostname > or IP address? i suspect you were putting in the hostname > and when gmond resolved the name it got an IPv6 address. can > you try running gmond explicitly stating an IPv4 address? > > -matt > |