Re: [Ganglia-developers] Wildcard Configuration

2008-09-02 Thread Brad Nicholes
On 8/29/2008 at 6:52 PM, in message [EMAIL PROTECTED], Kostas Georgiou [EMAIL PROTECTED] wrote: On Tue, Aug 26, 2008 at 09:01:43AM -0600, Brad Nicholes wrote: Thanks Rich. This got me thinking a little about how the same thing might be done only in a more generic way rather than just

Re: [Ganglia-developers] Wildcard Configuration

2008-09-02 Thread Brad Nicholes
On 8/30/2008 at 12:42 PM, in message [EMAIL PROTECTED], Carlo Marcelo Arenas Belon [EMAIL PROTECTED] wrote: On Sat, Aug 30, 2008 at 01:52:03AM +0100, Kostas Georgiou wrote: Another option will be to have each module able to print some usable configuration. I am attaching some patch from a

Re: [Ganglia-developers] Wildcard Configuration

2008-08-30 Thread Carlo Marcelo Arenas Belon
On Sat, Aug 30, 2008 at 01:52:03AM +0100, Kostas Georgiou wrote: Another option will be to have each module able to print some usable configuration. I am attaching some patch from a quick hack that I wrote for the multidisk plugin to output a usable .conf file. Maybe extending the mudule api

Re: [Ganglia-developers] Wildcard Configuration

2008-08-29 Thread Kostas Georgiou
On Tue, Aug 26, 2008 at 09:01:43AM -0600, Brad Nicholes wrote: Thanks Rich. This got me thinking a little about how the same thing might be done only in a more generic way rather than just sequentially numbered metrics. I am wondering if, rather than looping through numbers, we

[Ganglia-developers] Wildcard Configuration

2008-08-26 Thread Rich Paul
I did a hack to allow a single config file to work across all of my hosts, even though I needed mod_multicpu and had different numbers of processors on different machines. The hack I did was as follows: When gmond found a metric name which contained one or more (#) pound signs, I converted the

Re: [Ganglia-developers] Wildcard Configuration

2008-08-26 Thread Brad Nicholes
Thanks Rich. This got me thinking a little about how the same thing might be done only in a more generic way rather than just sequentially numbered metrics. I am wondering if, rather than looping through numbers, we actually tried to do some pattern matching over the known metrics. For