Sometime check_ospf comes back with saying a link is
down when it's up.
It looks like it's checking if there are any neighhor
left in the hash before it's actually checked if they
match the snmp data.
I've fixed this by moving the check to before the curly
brace instead of after:
251,261d250
<
#---------------------------------------------------------------
< # If there are any neighbors
left in the has, it means that
< # we were supposed to report on
the status, but the neighbor
< # wasn't in the ospf neighbors
table. We'll assume this means
< # the neighbor is down.
<
#---------------------------------------------------------------
< foreach my $neighbor (keys
%ospf_neighbors) {
< #print "OSPF to
$ospf_neighbors{$neighbor} is DOWN\n";
< push(@down,
$ospf_neighbors{$neighbor});
< $state = 2;
< }
262a252,262
>
#---------------------------------------------------------------
> # If there are any neighbors left in
the has, it means that
> # we were supposed to report on the
status, but the neighbor
> # wasn't in the ospf neighbors table.
We'll assume this means
> # the neighbor is down.
>
#---------------------------------------------------------------
> foreach my $neighbor (keys
%ospf_neighbors) {
> #print "OSPF to
$ospf_neighbors{$neighbor} is DOWN\n";
> push(@down,
$ospf_neighbors{$neighbor});
> $state = 2;
> }