+ add interface for alcatel ISAM
This commit is contained in:
parent
ea7e3b1909
commit
c1ea98d60d
|
@ -175,7 +175,7 @@ sub manage_selection {
|
||||||
|
|
||||||
$snmp_result = $options{snmp}->get_leef(oids => [$oid_asamSwmTotalSpaceOnFileDisk, $oid_asamSwmFreeSpaceOnFileDisk]);
|
$snmp_result = $options{snmp}->get_leef(oids => [$oid_asamSwmTotalSpaceOnFileDisk, $oid_asamSwmFreeSpaceOnFileDisk]);
|
||||||
if (defined($snmp_result->{$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 '' &&
|
if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' &&
|
||||||
$name !~ /$self->{option_results}->{filter_name}/) {
|
$name !~ /$self->{option_results}->{filter_name}/) {
|
||||||
$self->{output}->output_add(long_msg => "skipping '" . $name . "': no matching filter.", debug => 1);
|
$self->{output}->output_add(long_msg => "skipping '" . $name . "': no matching filter.", debug => 1);
|
||||||
|
|
|
@ -31,10 +31,12 @@ sub new {
|
||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'cpu' => 'network::alcatel::isam::snmp::mode::cpu',
|
'cpu' => 'network::alcatel::isam::snmp::mode::cpu',
|
||||||
'hardware' => 'network::alcatel::isam::snmp::mode::hardware',
|
'hardware' => 'network::alcatel::isam::snmp::mode::hardware',
|
||||||
'memory' => 'network::alcatel::isam::snmp::mode::memory',
|
'interfaces' => 'snmp_standard::mode::interfaces',
|
||||||
'vlan-traffic' => 'network::alcatel::isam::snmp::mode::vlantraffic',
|
'list-interfaces' => 'snmp_standard::mode::listinterfaces',
|
||||||
|
'memory' => 'network::alcatel::isam::snmp::mode::memory',
|
||||||
|
'vlan-traffic' => 'network::alcatel::isam::snmp::mode::vlantraffic',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
|
Loading…
Reference in New Issue