On Mar 3, 2008, at 8:32 , Martin Hicks wrote:
> On Sun, Mar 02, 2008 at 10:37:10PM -0600, Michael Sternberg wrote:
>> On Mar 2, 2008, at 21:04 , Carlo Marcelo Arenas Belon wrote:
>>> On Sun, Mar 02, 2008 at 01:34:35PM -0600, Michael Sternberg wrote:
>>>> Here's a simple patch for gmond/gmond.c to chop domain names off  
>>>> the
>>>> ganglia web interface
>>>
>>> why not doing the change in the web interface then?
>>
>> (a) I'd have lost history because the rrds were originally created
>> with short names.  I realize now it's a matter of renaming the host-
>> specific RRA files in /var/lib/ganglia/rrds/.
>>
>>
>> (b) The name resolution business was too finicky, and I was not alone
>> in this, re:
>
> I was getting duplicates in the web view because some things were
> resolving fqdn, and others (user defined values, injected via gmetric)
> were using just hostname.
>
> I ended up patching ganglia's apr_getnameinfo() to use NI_NOFQDN

Elegant!

It'd be nice to just patch the call in gmond.c, but looks like it's a  
pain to portably pull in netdb.h.


Regards, Michael

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to