[collectd] apache and collectd plugin

Amit Gupta amit.gupta221 at gmail.com
Mon Mar 16 12:07:13 CET 2009


On Mon, Mar 16, 2009 at 4:12 PM, Florian Forster <octo at verplant.org> wrote:
> Hi Amit, Bruno,
>
> On Mon, Mar 16, 2009 at 10:39:39AM +0100, Bruno Prémont wrote:
>> <Apache>
>>   <Host "apache.domain.org">
>>     Url ...
>>   </Host>
>>   <Host "lightttpd.domain.org">
>>     Url ...
>>   </Host>
>>   Url ...
>> </Apache>
>
> this is exactly what I'd have suggested. Especially the ``no block
> behaves just like <Host "">, i. e. use hostname_g'' part is important to
> establish backwards compatibility.

This loooks great. I will try to work on it.

Ideally I would like to see rrd files for apache and lighttpd running
on the same machine to sit under different directories e.g
<basedir>/<hostname>/apache for apache and
<basedir>/<hostname>/lighttpd for lighttpd. May be introducing a
configuration variable like directory/instance can help? (the default
value will be "apache"). Does that sound okay?

I would also like the name of the rrd files to be server specific.
Right now, the name of the rrd files have apache as prefix which may
not make sense for lighttpd. We probably can introducing another
variable like "prefix" or something similar (default will be apache?).

Regards
Amit
>
> Copying the plugin is not nice, imho, since it leads to a lot of
> duplicated code.. Renaming the plugin to something like `httpd' will
> have to wait for the next major version since it's a backwards
> incompatible change. Feel free to add it to the list in our wiki:
> <http://collectd.org/wiki/index.php/Plans_for_5.0>
>
> Regards,
> -octo
> --
> Florian octo Forster
> Hacker in training
> GnuPG: 0x91523C3D
> http://verplant.org/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFJviz9Hdggu3Q05IYRAkDbAJ0eklT41+UhuTgzPL7HEz/lkJuOIACeNKJs
> OhHI2u6RrWn0J+4dURmP9fE=
> =tWyH
> -----END PGP SIGNATURE-----
>
>



More information about the collectd mailing list