Re: problem getting agent to call mib init code
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/4/30 Kuczynski, Edward <[email protected]>: > Then 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. > I 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"? > Snmptranslate will work. 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, > I 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 ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ 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