From d93823c0da30a72d38742162446622e58fe2649e Mon Sep 17 00:00:00 2001 From: Marcus Povey Date: Sat, 6 Apr 2013 16:26:30 +0100 Subject: [PATCH 1/3] Modified expect script to work with my BeBox (Thomson TG585 v7, software Be 8.2.7.7.KS) --- plugins/beboxsync/beboxstats.expect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/beboxsync/beboxstats.expect b/plugins/beboxsync/beboxstats.expect index aedd3d89..c990f271 100755 --- a/plugins/beboxsync/beboxstats.expect +++ b/plugins/beboxsync/beboxstats.expect @@ -19,7 +19,7 @@ expect "Password :" send "$password\r" expect "}=>" -send "adsl info\r" +send "adsl info expand=enabled\r" expect "}=>" send "exit\r" From 0dd9f1fc781d0faebcc633032d1cfd294bfab570 Mon Sep 17 00:00:00 2001 From: Marcus Povey Date: Sat, 6 Apr 2013 16:36:50 +0100 Subject: [PATCH 2/3] Updated example script path to something sensible; changing graph category to network --- plugins/beboxsync/beboxstats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/beboxsync/beboxstats b/plugins/beboxsync/beboxstats index 184b8315..5f539724 100755 --- a/plugins/beboxsync/beboxstats +++ b/plugins/beboxsync/beboxstats @@ -4,7 +4,7 @@ use strict; my ($Args) = @ARGV; -my $expecter = "/home/alex/bin/beboxstats.expect"; +my $expecter = "/path/to/beboxstats.expect"; if ($Args) { @@ -21,7 +21,7 @@ if ($Args) { printf(" graph_title bebox line stats graph_vlabel deciBels -graph_category other +graph_category network graph_info This graph shows the various line parameters attenuationdownstream.label Downstream Attenuation attenuationupstream.label Upstream Attenuation From 3909f4d40e93d6fb5f3d7043707670d779d4410f Mon Sep 17 00:00:00 2001 From: Marcus Povey Date: Sat, 6 Apr 2013 16:39:01 +0100 Subject: [PATCH 3/3] * Updating array to pull appropriate bandwidth values from BeBox (Thomson TG585 v7, software Be 8.2.7.7.KS) * Updated example script path to something sensible; changing graph category to network; --- plugins/beboxsync/beboxsync | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/beboxsync/beboxsync b/plugins/beboxsync/beboxsync index be992845..369ec8f6 100755 --- a/plugins/beboxsync/beboxsync +++ b/plugins/beboxsync/beboxsync @@ -7,7 +7,7 @@ use strict; my ($Args) = @ARGV; -my $expecter = "/home/alex/bin/beboxstats.expect"; +my $expecter = "/path/to/beboxstats.expect"; if ($Args) { @@ -23,7 +23,7 @@ if ($Args) { printf(" graph_title bebox sync stats graph_vlabel ATM kbps -graph_category other +graph_category network graph_info This graph shows line sync speed syncdownstream.label Downstream Sync Speed syncupstream.label Upstream Sync Speed @@ -43,8 +43,8 @@ syncupstream.type GAUGE my @insplitted = split(' ', `$expecter | grep stream`); -print "syncdownstream.value $insplitted[11]\n"; -print "syncupstream.value $insplitted[15]\n"; +print "syncdownstream.value $insplitted[3]\n"; +print "syncupstream.value $insplitted[7]\n"; }