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




Reply via email to