X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapache.c;h=39849e6e05d6ebdc7699103957ecbaf2c351211b;hb=a1197a4742bc20a68e1ded8feaa85d710c28ddba;hp=d6712dcb7885748be6725dcbe8793873ecd0e8b2;hpb=3ae8778a363fc4383f1135ae99b389fad96978f3;p=collectd.git diff --git a/src/apache.c b/src/apache.c index d6712dcb..39849e6e 100644 --- a/src/apache.c +++ b/src/apache.c @@ -685,8 +685,12 @@ 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 */) + submit_gauge ("apache_idle_workers", NULL, atol (fields[1]), st); } }