|The stupid question is the question not asked|
SNMP and addMibDirs?by suba (Novice)
|on Dec 07, 2012 at 12:02 UTC||Need Help??|
suba has asked for the
wisdom of the Perl Monks concerning the following question:
UpdateSorry, this was my mistake. The error did not come from the script, but another module that already tried to load the same mibs before the addMibDirs in the main script. Don't ask why... After removing the other LoadModule everything works.
Does anyone use the SNMP module? (not Net::SNMP)?
I have the following code:
Script is located in FULL_PATH.
If my CWD is FULL_PATH everything is great. Otherwise I get:
I did an strace and see (shortened the output a bit):
a bit later...
and continues to open and read the necessary MIB-Files. Even stranger: I use all OIDs by Name, not numbers some work some lead to "Unknown Object Identifier".
I could just drop the needed MIBs in the default directories, but this does bug me a bit. What am I doing wrong?