net-snmp 5.8: "unknown snmp version 193" from agentx subagent
Bill Fenner <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CAF4SogbeGyd590pYwFAZYnrvdTF5O7QEJnbSBYFhsUapFPLvhw@mail.gmail.com> |
The new code in net-snmp 5.8 that tries to account for v1 or v2 trap sessions logs an error from an agentx subagent, since the agentx code registers the session as being AGENTX_VERSION_1. This constant is only defined in the agentx code, so agent_trap.c doesn't know what it is. I suspect that this code, which is trying to avoid calling callbacks when there aren't any sessions of the given version, is irrelevant when using the built in list of sinks (i.e., when there is no snmp_callback_available( ..., SNMPD_CALLBACK_REGISTER_NOTIFICATIONS ). However, I don't have a brilliant idea about how to avoid this error. 1. Change it to a DEBUGMSG. Obviously makes the apparent error not very visible, but, I don't know if it needs visibility. 2. Register the agentx session using SNMP_VERSION_2c. I assume something else will break if we pretend it's an SNMP session and not AgentX, but I haven't tried this. 3. Teach agent_trap.c about AGENTX_VERSION_ numbers. I don't think anyone wants to do this, since otherwise the agentx code is encapsulated in mibgroup/agentx/ Any other ideas? Thanks, Bill ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders