From: Manuel Luis SanmartĂ­n Rozada Date: Wed, 8 Sep 2010 09:01:23 +0000 (+0200) Subject: PATCH apache.c: support IBM HTTP Server. X-Git-Tag: collectd-5.0.0-beta0~38 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=94321ee8e25e7efe9033b4d2b547cd71b64dea40;p=collectd.git PATCH apache.c: support IBM HTTP Server. IBM HTTP Server is a version of apache 2 that comes with Websphere. IBM change the server name header to: Server: IBM_HTTP_Server Signed-off-by: Florian Forster --- diff --git a/src/apache.c b/src/apache.c index 3d6d957c..80c66bff 100644 --- a/src/apache.c +++ b/src/apache.c @@ -144,6 +144,8 @@ static size_t apache_header_callback (void *buf, size_t size, size_t nmemb, st->server_type = APACHE; else if (strstr (buf, "lighttpd") != NULL) st->server_type = LIGHTTPD; + else if (strstr (buf, "IBM_HTTP_Server") != NULL) + st->server_type = APACHE; else { const char *hdr = buf; @@ -420,6 +422,8 @@ static int init_host (apache_t *st) /* {{{ */ st->server_type = APACHE; else if (strcasecmp(st->server, "lighttpd") == 0) st->server_type = LIGHTTPD; + else if (strcasecmp(st->server, "ibm_http_server") == 0) + st->server_type = APACHE; else WARNING ("apache plugin: Unknown `Server' setting: %s", st->server);