Jason A. Smith schrieb:
I was thinking about this a little more, why does gmond need to resolve
IPs anyway?  Convenience when debugging and to spare gmetad and possibly
other third party collectors of the xml data from doing the lookups.
Why not just let gmond keep the IPs only and then make gmetad resolve
the IPs?

I would prefer to set the node name in gmond.conf statically and do the rest without name resolving (could be an option). I have some nodes in several clusters, and they should have different names there. If there is a "multi-cluster" gmond one day - hopefully - I would be very happy to have an option like this.

Stefan

--
Mapsolute GmbH
Stefan Schustereit
Map24 Systems and Networks

Düsseldorfer Straße 40a
65760 Eschborn
Germany


~Jason


On Tue, 2005-08-16 at 18:29 -0400, Jason A. Smith wrote:

This has come up a few times in the past I believe, once a few years ago
when we had similar problems on some Solaris servers we were monitoring
with a similar /etc/hosts file setup.

I believe that ganglia just uses system calls like gethostbyaddr which
rely on the OS/system libs to determine how to resolve names (for glibc
see /etc/nsswitch.conf).  To get consistent results you would probably
have to force ganglia to always do DNS lookups (like changing it to use
bind libs instead), but I think this might introduce some portability
problems (or some people might not want to rely on DNS so this would
have to be made a config option).  We just ended up changing the format
in our /etc/hosts files instead of opening up this can of worms.

~Jason


On Tue, 2005-08-16 at 16:56 -0500, [EMAIL PROTECTED] wrote:

Steven,
 Thanks for the response. It will not be practical to change the /etc/hosts 
entry in a production environment. I am going to look at the gmond source code. 
Any other pointers will be helpful.

Thanks,
Utsav Agarwal

------------------------------------------------
On Tue, 16 Aug 2005 14:43:45 -0700, steven wagner <[EMAIL PROTECTED]> wrote:


Change the order of the hosts entry to:

<IP address>      node1.domain.com  node1  any-other-aliases

That should do it...

[EMAIL PROTECTED] wrote:

Hello all,
We have the following setup and issue: All cluster nodes send (unicast udp) data to node1 and the main gmetad server collects data from node1. The XML stream obtained from node1 reports all nodes except itself in a fully qualified fashion. We would like node1's gmond to report itself as fully qualified without changing /etc/hosts file.
On node1:
The command host <ip of node1> reports node1's FQDN.
The command hostname reports node1
In /etc/hosts, the entry is: <ipadress> node1 node1.domain.com

Any suggestions will be helpful.

Thanks,
Utsav Agarwal


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general


--
/------------------------------------------------------------------\
|  Jason A. Smith                          Email:  [EMAIL PROTECTED] |
|  Atlas Computing Facility, Bldg. 510M    Phone:  (631)344-4226   |
|  Brookhaven National Lab, P.O. Box 5000  Fax:    (631)344-7616   |
|  Upton, NY 11973-5000                                            |
\------------------------------------------------------------------/




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general







Reply via email to