diff --git a/plugins/snmp/snmp__if_combined b/plugins/snmp/snmp__if_combined index 970fbb75..f2503b01 100755 --- a/plugins/snmp/snmp__if_combined +++ b/plugins/snmp/snmp__if_combined @@ -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;