Code

Merge branch 'collectd-4.9'
authorFlorian Forster <octo@huhu.verplant.org>
Thu, 25 Feb 2010 23:17:18 +0000 (00:17 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 25 Feb 2010 23:17:18 +0000 (00:17 +0100)
1  2 
configure.in
contrib/collection.cgi
src/apache.c
src/collectd-python.pod
src/collectd.conf.in
src/collectd.conf.pod

diff --cc configure.in
Simple merge
Simple merge
diff --cc src/apache.c
index 1028f046b54f552656f3b551c4c918ec4b2a957a,ad877b5ff67d10b999c67192730ca14c74b9f20f..39849e6e05d6ebdc7699103957ecbaf2c351211b
@@@ -685,11 -685,9 +685,12 @@@ static int apache_read_host (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);
                }
        }
  
Simple merge
Simple merge
Simple merge