Strange side-effect of new NetSNMP::OID() call in AgentX subagent (Perl)
"Ulrich Windl" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi!
I spent a whole day debugging a Perl AgentX subagent, and what I found iss as strange as can be -- can anybody explain?:
When I use "my $oid = new NetSNMP::OID($OID . '.' . $ar->[0]);" in some code before "$agent = new NetSNMP::agent('Name' => $name, 'AgentX' => 1);", the agent fals to register later without any error indication, but when the said line is executed AFTER "$agent = new NetSNMP::agent('Name' => $name, 'AgentX' => 1);", the agent registers successfully!
That line using new NetSNMP::OID() what inside a foreach loop when I had the problem, so there shouldn't be any global side effect.
Regards,
Ulrich
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users