[collectd] apache and collectd plugin

Amit Gupta amit.gupta221 at gmail.com
Wed Apr 15 16:49:26 CEST 2009


On Wed, Apr 15, 2009 at 7:59 PM, Florian Forster <octo at verplant.org> wrote:
> Hi Amit,
>
> On Wed, Apr 15, 2009 at 06:51:54PM +0530, Amit Gupta wrote:
> ‘r’ isn't used for anything in the Apache scoreboard, so from Apache's
> point of view there is no problem. Does lighttpd use ‘R’ for something
> else?

yes, for read-POST.

>
>> In this patch, I am already assigning v.plugin a value of instance
>> name. For legacy case, v.plugin will be assigned "apache".
>
> Oh, I missed that. Please don't set ‘vl.plugin’ to anything but
> “apache” (i. e. the actual name of the plugin). Exceptions are only made
> for plugins such as the ‘network’ and ‘unixsock’ plugins. The string
> defined by the “Instance” configuration option / block should go into
> ‘vl.plugin_instance’.

Just a little clarification here. Suppose I have multiple apache
instances (apache, lighttpd) and if choose the plugin name to be same
i.e apache for all, then wouldn't it be an issue to store the rrd
files of these instances?. As far as I understand it, the rrdfiles get
published under <host-name>/<plugin_name> and given that the rrd file
names are also same, then the multiple instances will overwrite their
data to the same set of rrd files. Is my understanding correct?. If
yes, how do we tackle this issue? This is one of the reasons that I
assigned v.plugin to  the instance name.

Regards
Amit
>
>> I was more refering to the rrd file names (for instance
>> apache_bytes.rrd/lighttpd_bytes.rrd) but as you suggested, renaming
>> them to say http_bytes.rrd [in the next  major release] is also fine.
>
> Yeah, those will probably be changes to ‘io_octets’.
>
>> Thanks for looking into the patch. I will be working on your
>> suggestions and will re-submit the patch.
>
> Great, thanks :)
>
> Regards,
> -octo
> --
> Florian octo Forster
> Hacker in training
> GnuPG: 0x91523C3D
> http://verplant.org/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFJ5e9iHdggu3Q05IYRAi6KAJ4hds94dRslYWMOvjmcFqZ6wpqIxwCePtb1
> KEFLo7fBmnjedqRw9paEibw=
> =ZNZ8
> -----END PGP SIGNATURE-----
>
>



More information about the collectd mailing list