From c1ea98d60d73e1b13977fcdde1c2f9dcf85bd67e Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 17 May 2017 14:42:26 +0200 Subject: [PATCH] + add interface for alcatel ISAM --- network/alcatel/isam/snmp/mode/memory.pm | 2 +- network/alcatel/isam/snmp/plugin.pm | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/network/alcatel/isam/snmp/mode/memory.pm b/network/alcatel/isam/snmp/mode/memory.pm index ed60cda9b..33fc94aac 100644 --- a/network/alcatel/isam/snmp/mode/memory.pm +++ b/network/alcatel/isam/snmp/mode/memory.pm @@ -175,7 +175,7 @@ sub manage_selection { $snmp_result = $options{snmp}->get_leef(oids => [$oid_asamSwmTotalSpaceOnFileDisk, $oid_asamSwmFreeSpaceOnFileDisk]); if (defined($snmp_result->{$oid_asamSwmFreeSpaceOnFileDisk})) { - my $name = 'sd_card'; + my $name = 'SD Card'; if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $name !~ /$self->{option_results}->{filter_name}/) { $self->{output}->output_add(long_msg => "skipping '" . $name . "': no matching filter.", debug => 1); diff --git a/network/alcatel/isam/snmp/plugin.pm b/network/alcatel/isam/snmp/plugin.pm index 866bd2a9e..c066bb53e 100644 --- a/network/alcatel/isam/snmp/plugin.pm +++ b/network/alcatel/isam/snmp/plugin.pm @@ -31,10 +31,12 @@ sub new { $self->{version} = '1.0'; %{$self->{modes}} = ( - 'cpu' => 'network::alcatel::isam::snmp::mode::cpu', - 'hardware' => 'network::alcatel::isam::snmp::mode::hardware', - 'memory' => 'network::alcatel::isam::snmp::mode::memory', - 'vlan-traffic' => 'network::alcatel::isam::snmp::mode::vlantraffic', + 'cpu' => 'network::alcatel::isam::snmp::mode::cpu', + 'hardware' => 'network::alcatel::isam::snmp::mode::hardware', + 'interfaces' => 'snmp_standard::mode::interfaces', + 'list-interfaces' => 'snmp_standard::mode::listinterfaces', + 'memory' => 'network::alcatel::isam::snmp::mode::memory', + 'vlan-traffic' => 'network::alcatel::isam::snmp::mode::vlantraffic', ); return $self;