forked from lausser/check_nwc_health
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! fix cisco bgp for routers which do not export the proptietary …
…mib, but bgp4
- Loading branch information
Showing
2 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
plugins-scripts/Classes/Cisco/WLC/Component/HaSubsystem.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package Classes::Cisco::WLC::Component::HaSubsystem; | ||
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item); | ||
use strict; | ||
|
||
sub init { | ||
my ($self) = @_; | ||
if ($self->mode =~ /device::ha::status/) { | ||
$self->{name} = $self->get_snmp_object('MIB-2-MIB', 'sysName', 0); | ||
$self->get_snmp_objects('CISCO-LWAPP-HA-MIB', qw( | ||
cLHaPeerIpAddressType cLHaPeerIpAddress | ||
cLHaServicePortPeerIpAddressType cLHaServicePortPeerIpAddress | ||
cLHaServicePortPeerIpNetMaskType cLHaServicePortPeerIpNetMask | ||
cLHaRedundancyIpAddressType cLHaRedundancyIpAddress | ||
cLHaPrimaryUnit cLHaNetworkFailOver | ||
cLHaBulkSyncStatus cLHaRFStatusUnitIp | ||
cLHaAvgPeerReachLatency cLHaAvgGwReachLatency | ||
)); | ||
} | ||
} | ||
|
||
sub check { | ||
my ($self) = @_; | ||
$self->add_info('checking access points'); | ||
if ($self->mode =~ /device::ha::status/) { | ||
if ($self->{cLHaNetworkFailOver} && | ||
$self->{cLHaNetworkFailOver} eq 'true') { | ||
if($self->{cLHaPrimaryUnit} && | ||
$self->{cLHaPrimaryUnit} eq 'false') { | ||
$self->add_ok('no access points found, this is a secondary unit in a failover setup'); | ||
} else { | ||
$self->add_unknown('no access points found, this is a primary unit in a failover setup'); | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters