-munin-plugins-local (0.8) UNRELEASED; urgency=low
+munin-plugins-local (0.8) unstable; urgency=low
* Add snmp__sky_router_ for network clients and bandwidth usage
Package: munin-plugins-local
Architecture: all
Depends: munin-node, ${misc:Depends}
-Recommends: nvidia-smi, smartctl, libxml-fast-perl, libhtml-tree-perl
+Recommends: nvidia-smi, smartctl, libxml-fast-perl, libhtml-tree-perl, libwww-mechanize-perl
Suggests: python
Description: network-wide graphing framework (local plugins for node)
Extra plugins for munin-node, for use on michaelhowe.org machines.
=head1 BUGS
+Using the 'rate' option will lock other administrators out of the device.
+
=head1 AUTHORS
Michael Howe
my $ipre = $RE{net}{IPv4};
# All we care about is the host:
-#my ( $host ) = Munin::Plugin::SNMP->config_session();
-my $host = "192.168.5.1";
+my ( $host ) = Munin::Plugin::SNMP->config_session();
my ( $verbose );
GetOptions( "verbose" => \$verbose );
# * Traffic rate
# * Connected devices
-my $basename = $0;
-$basename =~ m{.*_[^_]+$};
-
-$basename = 'devices';
+my ( $basename ) = $0 =~ m{.*_([^_]+)$};
my $config = ( defined $ARGV[0] and $ARGV[0] eq 'config' );
} elsif( $basename eq 'devices' ){
get_devices();
} else {
- die "Incorrect option: '$basename'\n";
+ die "Incorrect suffix on $0: '$basename'\n";
}
sub get_rate {