+ add interface for alcatel ISAM

This commit is contained in:
garnier-quentin 2017-05-17 14:42:26 +02:00
parent ea7e3b1909
commit c1ea98d60d
2 changed files with 7 additions and 5 deletions

View File

@ -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);

View File

@ -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;