Thanks Dave,
I did check and did not have another agent running.
Checked version and saw the module.
Didn't see it in nsModulename
Snmptranslate works, and the snmpget can take the oid alpha name and print the oid.
So I did an apt-get remove and then installed from the tarball, and it worked!!
I'll have to investigate more later if time allows.
Thanks again Dave
Ed
-----Original Message-----
From: ***@googlemail.com [mailto:***@googlemail.com] On Behalf Of Dave Shield
Sent: Friday, May 01, 2009 3:53 AM
To: Kuczynski, Edward
Cc: net-snmp-***@lists.sourceforge.net
Subject: Re: problem getting agent to call mib init code
Post by Kuczynski, EdwardThen ran daemon, snmpd with debug and I see NO debug output from the
init_XXXXobject like I do in fedora. Tailing /var/log/snmpd.log
So please tell me what did I miss??
One possibility is that you have two agents installed on the system,
and the running agent is the "other one" (without your new module).
Try retrieving the value of UCD-SNMP-MIB::versionConfigurationOptions.0
This should give you the same results as net-snmp-config
Also, if you walk the NET-SNMP-AGENT-MIB::nsModuleName object,
you ought to see mention of your new module - assuming that it's
being registered correctly. Though given your report, I strongly suspect
that it won't be there.
Post by Kuczynski, EdwardI do see the request go to the agent,
and it knows the alpha name of the object.
What do you mean by "know[ing] the alpha name of the object"?
That simply means that the MIB file is in place, and is being read
in by the library MIB parser. In the same way, the command line
tools (snmpget, snmpwalk, etc) will be reading in the MIB file, and
hence able to ask for your new MIB objects.
But that's completely separate from whether the agent actually
*implements* these objects,
Post by Kuczynski, EdwardI doubt it's a permission issue, its all read only, and I config'd for v2c
read only with public. But that shouldn't stop it from calling init should it?
No.
That should be invoked when the agent first starts up.
It's probably worth checking that the file
agent/mibgroup/mib_modules_inits.h
does make mention of init_XXXobject.
Just to check - what is the filename of the code file that contains
this initialisation routine?
Dave