X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapache.c;fp=src%2Fapache.c;h=39849e6e05d6ebdc7699103957ecbaf2c351211b;hb=67e4e517f58dac2a7b0e63b80256231480bfa59d;hp=1028f046b54f552656f3b551c4c918ec4b2a957a;hpb=ced2f3438fb1c333cd582a7d944d524b56ba0ef3;p=collectd.git diff --git a/src/apache.c b/src/apache.c index 1028f046..39849e6e 100644 --- a/src/apache.c +++ b/src/apache.c @@ -685,7 +685,8 @@ static int apache_read_host (user_data_t *user_data) /* {{{ */ { if (strcmp (fields[0], "Scoreboard:") == 0) submit_scoreboard (fields[1], st); - else if (strcmp (fields[0], "BusyServers:") == 0) + else if ((strcmp (fields[0], "BusyServers:") == 0) /* Apache 1.* */ + || (strcmp (fields[0], "BusyWorkers:") == 0) /* Apache 2.* */) submit_gauge ("apache_connections", NULL, atol (fields[1]), st); else if ((strcmp (fields[0], "IdleServers:") == 0) /* Apache 1.x */ || (strcmp (fields[0], "IdleWorkers:") == 0) /* Apache 2.x */)