And of course, being a reverse DNS lookup, it will depend on
nsswitch.conf, which determines whether the data comes from
/etc/hosts, NIS, or a DNS server.

And in our local environment, we have AD as well as bind DNS,
and even the case (upper/lower) of the fully qualified domain
name can depend on the phase of the moon.

Because of this, and because FQDN strings can be long, I have
patched my local ganglia PHPs to remove the domain component of
the hostname to avoid long strings as headings and on labels of graphs.

kind regards,
richard

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex
Balk
Sent: 04 January 2006 22:33
To: [email protected]
Subject: [Ganglia-general] Different names for different hosts - why it
happens


Hey all,

For anyone wondering why for some nodes you get hostname and for others
hostname.domain or IP address, it's all about the node's /etc/hosts
file.

Below is a list of possible entries in your node's /etc/hosts file, and
how its name would appear in Ganglia:

192.168.0.1   host.domain host   ==> host.domain
192.168.0.1   host host.domain   ==> host
192.168.0.1   host               ==> host
192.168.0.1                      ==> IP

Again, this is determined on per-node basis, assuming you have "files"
as the first option of the "hosts:" line in your /etc/nsswitch.conf. If
you have "nis" set as first, it's probably determined by the naming
order there (though the same rules stated above should apply). Same goes
for "dns" being first.

Hope this helps...

Cheers,

Alex





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Ganglia-general mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general


------------------------------------------------------------------------
For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.

------------------------------------------------------------------------


Reply via email to