Blame perl/SNMP/BUG

Packit fcad23
Packit fcad23
1) Memory leak (have not seen this lately)
Packit fcad23
Packit fcad23
The following snippet used to grow in memory (and may still) - please
Packit fcad23
notify me if anyone still observes this and even better has a fix.
Packit fcad23
Packit fcad23
perl -le '
Packit fcad23
use SNMP;
Packit fcad23
$obj = new SNMP::Session DestHost, "dubravka";
Packit fcad23
while (){
Packit fcad23
print $obj->get(["ifNumber",0]);
Packit fcad23
}
Packit fcad23
'
Packit fcad23
Packit fcad23
***Note: need to verify this with the async API as well***
Packit fcad23
Packit fcad23
2) not sure if this is a bug but I can cause a crash with a 'goto
Packit fcad23
LABEL;' from within an async callback function.
Packit fcad23
Packit fcad23
3) the following varbind format is not encoded correctly ... I have seen this crash the agent as well
Packit fcad23
Packit fcad23
$sess->get(["sysDescr.0"]);
Packit fcad23
Packit fcad23
use the following instead:
Packit fcad23
Packit fcad23
$sess->get(["sysDescr",0]);
Packit fcad23
or
Packit fcad23
$sess->get("sysDescr.0");
Packit fcad23
Packit fcad23
4) this is not handled yet
Packit fcad23
$sess->get(['MODULE-NAME::mibName',0]);
Packit fcad23
but strangely
Packit fcad23
$sess->get(['MODULE-NAME::mibName.0']);
Packit fcad23
works
Packit fcad23
Packit fcad23
5) if you are on a system that does not have vsnprintf in libc but you
Packit fcad23
do have BerkleyDB installed ucd configure will assume you will get it
Packit fcad23
from there - you will need to change hints/solaris.pl to
Packit fcad23
Packit fcad23
$self->{LIBS} .= ' -lkstat -ldb';