Skip to content

Commit

Permalink
ISSUE=SCTASK0048781 Adding some more debugging. Require Crypt-Rijndae…
Browse files Browse the repository at this point in the history
…l to support AES SNMPv3 connections
  • Loading branch information
Dan Doyle committed Mar 12, 2020
1 parent 456d530 commit fcecdf0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/GRNOC/Simp/Poller/Worker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ sub start
else
{
$self->logger->error(
"Hosts or OIDs were not defined for $self->worker_name!");
"Hosts or OIDs were not defined for " . $self->worker_name . "!");
return;
}

Expand Down Expand Up @@ -514,7 +514,10 @@ sub _connect_to_snmp
{
($snmp, $error) = Net::SNMP->session(%args);
$self->{'snmp'}{$host_name} = $snmp;


if ($error){
$self->logger->error("Error creating SNMPv3 Session: $error");
}
}
else
{
Expand All @@ -524,6 +527,11 @@ sub _connect_to_snmp

($snmp, $error) = Net::SNMP->session(%args);
$self->{'snmp'}{$host_name}{$ctxEngine} = $snmp;

if ($error){
$self->logger->error("Error creating SNMPv3 Session (context $ctxEngine): $error");
}

}
}

Expand Down
1 change: 1 addition & 0 deletions simp-poller.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Requires: perl(POSIX)
Requires: perl-Redis >= 1.991
Requires: perl-Try-Tiny
Requires: perl-Type-Tiny
Requires: perl-Crypt-Rijndael

Provides: perl(GRNOC::Simp::Poller)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Expand Down

0 comments on commit fcecdf0

Please sign in to comment.