mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 10:28:36 +00:00
snmp__if_combined: graph all interfaces, not only ethernetCsmacd.
For routers it might very well that you're trying to graph tunnels as well.
This commit is contained in:
parent
5a98a7672f
commit
3505cf5213
1 changed files with 5 additions and 6 deletions
|
@ -30,10 +30,9 @@ case the community string for your devices should not be "public".
|
|||
Please see 'perldoc Munin::Plugin::SNMP' for further configuration
|
||||
information.
|
||||
|
||||
The ifTypeOnly is a space separated list of media types to show. By
|
||||
default the plugin shows only interfaces identified as
|
||||
'ethernetCsmacd'. To see what interface types your switch, router, or
|
||||
other net thing uses you can use this command:
|
||||
The ifTypeOnly is a space separated list of media types to show. To
|
||||
see what interface types your switch, router, or other net thing uses
|
||||
you can use this command:
|
||||
|
||||
snmpwalk -c public -v 2c switch 1.3.6.1.2.1.2.2.1.3
|
||||
|
||||
|
@ -502,7 +501,7 @@ sub do_preprocess_if {
|
|||
|
||||
|
||||
sub do_preprocess {
|
||||
my $mediatypes = 'ethernetCsmacd';
|
||||
my $mediatypes = 'ALL';
|
||||
|
||||
if (exists( $ENV{'ifTypeOnly'} )) {
|
||||
$mediatypes = $ENV{'ifTypeOnly'};
|
||||
|
@ -511,7 +510,7 @@ sub do_preprocess {
|
|||
my @mediatypes = split(/[ ,]+/,$mediatypes);
|
||||
|
||||
# Hash of numerical media types the user finds interesting.
|
||||
my $mediatype={};
|
||||
my $mediatype={};
|
||||
|
||||
if ($mediatypes eq 'ALL') {
|
||||
$mediatype = undef;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue