[collectd] apache and collectd plugin

Florian Forster octo at verplant.org
Fri May 1 18:52:40 CEST 2009


Hi Amit,

On Wed, Apr 29, 2009 at 09:59:13PM +0530, Amit Gupta wrote:
> Do find the patch attached. I am using st->server_type variable which
> will be set to APACHE or LIGHTTPD based on the following logic:
> - If the user has specified Server element in the conf file and it is
>   "apache" or "lighttpd", then set  st->server_type variable
>   appropriately, otherwise ignore the Server value
> - Parse the headers (only if the Server element is NULL or invalid) to
>   determine the type and set the st->server_type variable accordingly
> - if  st->server_type is not set as yet, then default it to apache

thanks for your patch :) I've applied it and added some more warning and
error messages, for example if the string given by the user is not
recognized.

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090501/e3999ac2/attachment.pgp 


More information about the collectd mailing list