Stefan,
Thank you for the feedback - I'm glad you find this addon useful and
have made an effort to help me improve it. I've modified the addon based
on your input:
1. The install script now asks for the path to the template directory.
2. custom_graph.conf is now included from conf.php and not appended
to it.
3. I've added a short README explaining how to use
custom_graph_rendering.php to generate custom graphs in any HTML code.
Cheers,
Alex
Stefan Schustereit wrote:
> Alex Balk schrieb:
>>
>> I've modified the custom graphing addon to include an install script and
>> insert itself into an "addons" subdir under the ganglia web frontend
>> dir. I've also added (and tested - this time it works!) the option to
>> call custom_graph_rendering.php directly to render graphs based on the
>> pre-configured templates.
>
> First of all: thanks for your work. Your addon is exactly what I
> needed all the time, but I was too busy (and maybe too lazy) to
> implement it on my own.
>
> However, it wasn't easy for me to get it working. I had changed some
> things in the web interface before, and so install.sh couldn't patch
> my files properly. Ok, that's my problem, and I solved it, but I
> needed some time to patch my configuration.
>
> Beside this, install.sh should ask for the template name. It assumes
> that the templates are in 'templates/default', but I have them in
> 'templates/Map24'. It wasn't a big deal to change the path in
> ganglia_integration.patch, but I could be a help if install.sh worked
> a little smarter.
>
> Then I changed the way how custom_graph.conf is included into
> conf.php. I copied custom_graph.conf to the addons directory an
> included at the end of conf.php the line
> 'include("addons/custom_graph.conf");'. I think this is a better place
> for the configuration of an addon.
>
> When it all worked, I just copied all changed files to my other gmetad
> web directories. I just have one single gmetad machine for lots of
> clusters, configured with virtual hosts in httpd.conf. Done.
>
> We use Ganglia among other things for our development of services. We
> wrote a small interface to gmetric a bunch of data from our programs.
> Our developers just throw some values into a certain directory and
> they are displayed together with the host data. It wasn't a little bit
> tricky to compare these values up to today, but your addon makes it
> very easy - thanks again.
>
> Gruß,
> Stefan
>
>