From: Bruno Prémont Date: Sun, 1 Mar 2009 21:19:37 +0000 (+0100) Subject: php-collection/definitions.php: Add missing MetaGraph for tcp_connections X-Git-Tag: collectd-4.6.2~5^2~11^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3f99de804e830ce2a8870fdab4686a24f73bb160;p=collectd.git php-collection/definitions.php: Add missing MetaGraph for tcp_connections php-collection/definitions.php: Add missing MetaGraph for tcp_connections Add missing MetaGraph reference for tcp_connections and fix DS name for the MetaGraph Signed-off-by: Florian Forster --- diff --git a/contrib/php-collection/definitions.php b/contrib/php-collection/definitions.php index 16dd2e6e..2797c48a 100644 --- a/contrib/php-collection/definitions.php +++ b/contrib/php-collection/definitions.php @@ -1575,6 +1575,7 @@ function load_graph_definitions($logarithmic = false, $tinylegend = false) { $MetaGraphDefs['apache_scoreboard'] = 'meta_graph_apache_scoreboard'; $MetaGraphDefs['mysql_commands'] = 'meta_graph_mysql_commands'; $MetaGraphDefs['mysql_handler'] = 'meta_graph_mysql_commands'; + $MetaGraphDefs['tcp_connections'] = 'meta_graph_tcp_connections'; if (function_exists('load_graph_definitions_local')) load_graph_definitions_local($logarithmic, $tinylegend); @@ -2030,7 +2031,7 @@ function meta_graph_tcp_connections($host, $plugin, $plugin_instance, $type, $ty if ($file == '') continue; - $sources[] = array('name'=>$inst, 'file'=>$file, 'ds'=>'count'); + $sources[] = array('name'=>$inst, 'file'=>$file, 'ds'=>'value'); } return collectd_draw_meta_stack($opts, $sources);