summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3df6a01)
raw | patch | inline | side by side (parent: 3df6a01)
author | Florian Forster <octo@huhu.verplant.org> | |
Sat, 23 Jan 2010 12:06:48 +0000 (13:06 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sat, 23 Jan 2010 12:06:48 +0000 (13:06 +0100) |
Thanks to Gary from the bug tracker for the suggestion and code :)
src/apache.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index d6712dcb7885748be6725dcbe8793873ecd0e8b2..1028f046b54f552656f3b551c4c918ec4b2a957a 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
submit_scoreboard (fields[1], st);
else if (strcmp (fields[0], "BusyServers:") == 0)
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);
}
}
diff --git a/src/types.db b/src/types.db
index a5872ebf60e1dd8afec676b451b8a3c42711940a..dffb10a78d2ab3ac7ff9a7d6e7afd8e40bc2f36a 100644 (file)
--- a/src/types.db
+++ b/src/types.db
absolute count:ABSOLUTE:0:U
apache_bytes count:COUNTER:0:134217728
apache_connections count:GAUGE:0:65535
+apache_idle_workers count:GAUGE:0:65535
apache_requests count:COUNTER:0:134217728
apache_scoreboard count:GAUGE:0:65535
arc_counts demand_data:COUNTER:0:U, demand_metadata:COUNTER:0:U, prefetch_data:COUNTER:0:U, prefetch_metadata:COUNTER:0:U