check_junos_bgp: Fixed typo.
This commit is contained in:
parent
deffe2eebe
commit
18b043428c
|
@ -195,7 +195,7 @@ if (! ref $neigh_info) {
|
||||||
@peers = $neigh_info->getElementsByTagName('bgp-peer');
|
@peers = $neigh_info->getElementsByTagName('bgp-peer');
|
||||||
if ($conf{'verbose'} >= 3) {
|
if ($conf{'verbose'} >= 3) {
|
||||||
my @p = map { (get_peer_address($_) // "<unknown address>")
|
my @p = map { (get_peer_address($_) // "<unknown address>")
|
||||||
. " => " . (get_peer_description($_) // "<unkown description>") } @peers;
|
. " => " . (get_peer_description($_) // "<unknown description>") } @peers;
|
||||||
verbose(3, "Peers: " . join(", ", @p));
|
verbose(3, "Peers: " . join(", ", @p));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ foreach my $check (@{$conf{'checks'}}) {
|
||||||
my @relevant_peers = get_relevant_peers($check, @peers);
|
my @relevant_peers = get_relevant_peers($check, @peers);
|
||||||
if ($conf{'verbose'} >= 2) {
|
if ($conf{'verbose'} >= 2) {
|
||||||
my @p = map { (get_peer_address($_) // "<unknown address>")
|
my @p = map { (get_peer_address($_) // "<unknown address>")
|
||||||
. " => " . (get_peer_description($_) // "<unkown description>") } @relevant_peers;
|
. " => " . (get_peer_description($_) // "<unknown description>") } @relevant_peers;
|
||||||
verbose(2, "Relevant peers: " . join(", ", @p));
|
verbose(2, "Relevant peers: " . join(", ", @p));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ foreach my $check (@{$conf{'checks'}}) {
|
||||||
my $peer_addr = get_peer_address($peer);
|
my $peer_addr = get_peer_address($peer);
|
||||||
|
|
||||||
if (! defined($peer_addr)) {
|
if (! defined($peer_addr)) {
|
||||||
$peer_addr = "<unkown address>";
|
$peer_addr = "<unknown address>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$value = get_peer_element($peer, 'peer-state');
|
$value = get_peer_element($peer, 'peer-state');
|
||||||
|
|
Loading…
Reference in a new issue