Template:FAQ:Coding 14
From Net-SNMP Wiki
It's difficult to provide a definitive answer to that. The best we can do is suggest a checklist that might help pinpoint the source of the problem. Try looking at the following:
- Is the new module being compiled?
(Delete any .o files, and re-run 'make'. Are the .o files re-created?)
- Is it being included in the agent library?
(Run 'nm' on the library and look for the names of the initialisation routine and variable handlers)
- Is the initialisation routine being run?
(Activate the debugging code that you put into this routine. You do include debugging code as a matter of course, don't you?)
- Has the module been registered with the agent?
(Try walking theNET-SNMP-MIB::nsModuleTable
) This will also check whether the agent accepts requests for enterprise-specific OIDs.
- Is the module handler actually being called at all?
(Activate the debugging code that you put into this handler, and do a single'snmpget'
or'snmpgetnext'
for a suitable instance. You do include debugging code as a matter of course, don't you?)
- Is it returning success or an error?
(Activate the debugging code.... but you get the idea!)
That won't actually solve the problem, but at least you'll have some idea where to look.