From 915950cfc280a2fdaac92f839bf5fa66db96a433 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 30 Mar 2008 19:35:14 +0200 Subject: [PATCH] collection.cgi: Added support for "wireless" values. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- contrib/collection.cgi | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/contrib/collection.cgi b/contrib/collection.cgi index c5301a01..62f5c5a6 100755 --- a/contrib/collection.cgi +++ b/contrib/collection.cgi @@ -2060,6 +2060,42 @@ sub load_graph_definitions 'GPRINT:max:MAX:%6.2lf Max,', 'GPRINT:avg:LAST:%6.2lf Last\l' ], + signal_noise => ['-v', 'dBm', + 'DEF:avg={file}:value:AVERAGE', + 'DEF:min={file}:value:MIN', + 'DEF:max={file}:value:MAX', + "AREA:max#$HalfBlue", + "AREA:min#$Canvas", + "LINE1:avg#$FullBlue:Noise", + 'GPRINT:min:MIN:%5.1lf%sdBm Min,', + 'GPRINT:avg:AVERAGE:%5.1lf%sdBm Avg,', + 'GPRINT:max:MAX:%5.1lf%sdBm Max,', + 'GPRINT:avg:LAST:%5.1lf%sdBm Last\l' + ], + signal_power => ['-v', 'dBm', + 'DEF:avg={file}:value:AVERAGE', + 'DEF:min={file}:value:MIN', + 'DEF:max={file}:value:MAX', + "AREA:max#$HalfBlue", + "AREA:min#$Canvas", + "LINE1:avg#$FullBlue:Power", + 'GPRINT:min:MIN:%5.1lf%sdBm Min,', + 'GPRINT:avg:AVERAGE:%5.1lf%sdBm Avg,', + 'GPRINT:max:MAX:%5.1lf%sdBm Max,', + 'GPRINT:avg:LAST:%5.1lf%sdBm Last\l' + ], + signal_quality => ['-v', '%', + 'DEF:avg={file}:value:AVERAGE', + 'DEF:min={file}:value:MIN', + 'DEF:max={file}:value:MAX', + "AREA:max#$HalfBlue", + "AREA:min#$Canvas", + "LINE1:avg#$FullBlue:Quality", + 'GPRINT:min:MIN:%5.1lf%s%% Min,', + 'GPRINT:avg:AVERAGE:%5.1lf%s%% Avg,', + 'GPRINT:max:MAX:%5.1lf%s%% Max,', + 'GPRINT:avg:LAST:%5.1lf%s%% Last\l' + ], swap => ['-v', 'Bytes', '-b', '1024', 'DEF:avg={file}:value:AVERAGE', 'DEF:min={file}:value:MIN', -- 2.30.2