Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lausser committed Oct 30, 2024
1 parent 9555df7 commit d85b560
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions plugins-scripts/CheckNwcHealth/Fortigate/Component/VpnSubsystem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,10 @@ sub check {
}
}

#fgVpnTunEntPhase1Name.3.2 = S2S_Copeland
#fgVpnTunEntPhase2Name.3.2 = S2S_Copeland
package CheckNwcHealth::Fortigate::Component::VpnSubsystem::Tunnel;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;

sub ifinish {
my ($self) = @_;
$self->{flat_indices} =~ /^(\d+\.\d+\.\d+\.\d+)/;
$self->{tunnelPeerIpAddr} ||= $1;
$self->{tunnelPeerObjName} ||= $self->{tunnelPeerIpAddr};
if (! defined $self->{tunnelState}) {
$self->{tunnelState} = $self->get_snmp_object('CHECKPOINT-MIB', 'tunnelState', $self->{tunnelPeerIpAddr});
}
}

sub check {
my ($self) = @_;
$self->add_info(sprintf 'tunnel to %s (%s) is %s',
Expand Down

0 comments on commit d85b560

Please sign in to comment.