mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
commit
60b8e89523
3 changed files with 7 additions and 7 deletions
|
@ -4,7 +4,7 @@ use strict;
|
||||||
|
|
||||||
my ($Args) = @ARGV;
|
my ($Args) = @ARGV;
|
||||||
|
|
||||||
my $expecter = "/home/alex/bin/beboxstats.expect";
|
my $expecter = "/path/to/beboxstats.expect";
|
||||||
|
|
||||||
if ($Args) {
|
if ($Args) {
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ if ($Args) {
|
||||||
printf("
|
printf("
|
||||||
graph_title bebox line stats
|
graph_title bebox line stats
|
||||||
graph_vlabel deciBels
|
graph_vlabel deciBels
|
||||||
graph_category other
|
graph_category network
|
||||||
graph_info This graph shows the various line parameters
|
graph_info This graph shows the various line parameters
|
||||||
attenuationdownstream.label Downstream Attenuation
|
attenuationdownstream.label Downstream Attenuation
|
||||||
attenuationupstream.label Upstream Attenuation
|
attenuationupstream.label Upstream Attenuation
|
||||||
|
|
|
@ -19,7 +19,7 @@ expect "Password :"
|
||||||
send "$password\r"
|
send "$password\r"
|
||||||
|
|
||||||
expect "}=>"
|
expect "}=>"
|
||||||
send "adsl info\r"
|
send "adsl info expand=enabled\r"
|
||||||
|
|
||||||
expect "}=>"
|
expect "}=>"
|
||||||
send "exit\r"
|
send "exit\r"
|
||||||
|
|
|
@ -7,7 +7,7 @@ use strict;
|
||||||
|
|
||||||
my ($Args) = @ARGV;
|
my ($Args) = @ARGV;
|
||||||
|
|
||||||
my $expecter = "/home/alex/bin/beboxstats.expect";
|
my $expecter = "/path/to/beboxstats.expect";
|
||||||
|
|
||||||
if ($Args) {
|
if ($Args) {
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ if ($Args) {
|
||||||
printf("
|
printf("
|
||||||
graph_title bebox sync stats
|
graph_title bebox sync stats
|
||||||
graph_vlabel ATM kbps
|
graph_vlabel ATM kbps
|
||||||
graph_category other
|
graph_category network
|
||||||
graph_info This graph shows line sync speed
|
graph_info This graph shows line sync speed
|
||||||
syncdownstream.label Downstream Sync Speed
|
syncdownstream.label Downstream Sync Speed
|
||||||
syncupstream.label Upstream Sync Speed
|
syncupstream.label Upstream Sync Speed
|
||||||
|
@ -43,8 +43,8 @@ syncupstream.type GAUGE
|
||||||
|
|
||||||
my @insplitted = split(' ', `$expecter | grep stream`);
|
my @insplitted = split(' ', `$expecter | grep stream`);
|
||||||
|
|
||||||
print "syncdownstream.value $insplitted[11]\n";
|
print "syncdownstream.value $insplitted[3]\n";
|
||||||
print "syncupstream.value $insplitted[15]\n";
|
print "syncupstream.value $insplitted[7]\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue