Great stuff. Is it true that no changes will need to be made to 
/etc/init.d/functions?

-----Original Message-----
From: Rick Cobb [mailto:[email protected]] 
Sent: Monday, August 02, 2010 10:35 AM
To: Stevens, Weston J
Cc: [email protected]
Subject: Re: [Ganglia-general] Multiple gmonds or gmetads on same host

It's not all that painful, but you do have to modify those init scripts.

First, you'll need a passel of configuration files. E.g., 
/etc/ganglia/gmond-test.conf vs. /etc/ganglia/gmond-release.conf; same for 
gmetad,....
You'll need a port set for each configuration (i.e., an equivalent to 
8649-8652; say 8749-8752 for 'test' or whatever).

Then you'll set up your init scripts so wherever it starts the daemon you're 
trying to start, it uses the '-c' option to name that configuration's .conf 
file.

And you'll need a copy of the init script per configuration of each daemon.  
I.e., /etc/init.d/gmond-test, etc . Remember to chkconfig -add each of your 
"new services".

It's probably possible to set up the init script so it inspects $0 to identify 
the config file; for my use cases it's always been more straightforward to cut 
& paste.

Then you'll need to symlink or copy or git pull or whatever floats your fancy a 
web tree per configuration, and set up the 'conf.php'
file so it points @ the right gmetad for that configuration.

Good luck --
-- ReC

On Mon, Aug 2, 2010 at 9:55 AM, Stevens, Weston J <[email protected]> 
wrote:
> There are a couple uses for this:
> 1) Testing different configurations of these daemons on the same host 
> concurrently and seeing which one we like better
> 2) A "release" version and a test version so tests on the test version will 
> not screw with the release. I'm basically working toward two separate 
> ganglias running on the same host that don't collide with one another in any 
> way and basically may as well not know the other one exists.
>
> I'm pretty sure I'd like to have this capability. I would just like to know 
> how? Would I have to change the C source code? I can't seem to do it with 
> /etc/init.d/gmond and /etc/init.d/gmond and /etc/init.d/functions scripts 
> alone, this looks like it could be painful.
>
>
> ----------------------------------------------------------------------
> -------- The Palm PDK Hot Apps Program offers developers who use the 
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development 
Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP 
Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to