From 3f99de804e830ce2a8870fdab4686a24f73bb160 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bruno=20Pr=C3=A9mont?= Date: Sun, 1 Mar 2009 22:19:37 +0100 Subject: [PATCH] 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 --- contrib/php-collection/definitions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2