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?
>
> Carlo

Good point.

(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:

On Thu, 05 Jan 2006 03:16:30 -0800   Richard Grevis wrote in ganglia- 
general:
> 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.

(c) Looking over the php code, it seemed the changes needed would be  
more extensive, because one has to distinguish instances of $hostname  
used as array key and rrd file name from those used for display.    
Further, we have two web interfaces in use at our installation.  I  
needed a solution quickly and went to the root.  Personally, it was  
more fun to figure out and do :-)

I wonder if Richard's php patches were for the generic interface -  
Richard, would they be open?


Again, I don't know about circumstances for other sites, but my  
solution works well here.  I decided I can drop the domain name  
entirely, because all hosts are in the same domain.  A nicety could be  
to perhaps have a flag in gmond.conf.


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