From: Sebastian Harl Date: Sun, 30 Mar 2008 17:35:14 +0000 (+0200) Subject: collection.cgi: Added support for "wireless" values. X-Git-Tag: collectd-4.2.7~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=915950cfc280a2fdaac92f839bf5fa66db96a433;p=collectd.git collection.cgi: Added support for "wireless" values. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- 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',