16(11979) DEBUG: <core> [local_timer.c:67]: init_local_timer: timer_list between 0x8223264 and 0x8245264
16(11979) DEBUG: <core> [io_wait.h:361]: DBG: io_watch_add(0x82230a0, 29, 1, (nil)), fd_no=0
sudo snmpd -f -Dagentx -x tcp:localhost:705
No log handling enabled - turning on stderr logging
registered debug token agentx, 1
agentx_register_app_config_handler: registering .conf token for "agentxsocket"
agentx_register_app_config_handler: registering .conf token for "agentxperms"
agentx_register_app_config_handler: registering .conf token for "agentxRetries"
agentx_register_app_config_handler: registering .conf token for "agentxTimeout"
Turning on AgentX master support.
agentx/master: initializing...
agentx/master: initializing... DONE
NET-SNMP version 5.3.3
agentx/master: unexpected callback op 4
agentx/master: handle pdu (req=0x64618cf8,trans=0x0,sess=0x0)
agentx/master: open 0x8b761b8
agentx/master: opened 0x8b86ae0 = 5 with flags = a0
agentx/master: send response, stat 0 (req=0x64618cf8,trans=0x0,sess=0x0)
agentx_build: packet built okay
agentx/master: handle pdu (req=0x64618cf9,trans=0x0,sess=0x5)
agentx/master: send response, stat 0 (req=0x64618cf9,trans=0x0,sess=0x5)
if i do an snmpwalk or snmpget,
snmpget -c VOIP -v 2c localhost .1.3.6.1.4.1.34352
SNMPv2-SMI::enterprises.34352 = No Such Object available on this agent at this OID
snmpwalk -c VOIP -v 2c localhost .1.3.6.1.4.1.34352
SNMPv2-SMI::enterprises.34352 = No Such Object available on this agent at this OID
i cannot see any other debug messages in kamailio when i do an snmpwalk or snmpget.
something is so screwed up here. can't seem to find it.
let me take this opportunity to also share this patch to avoid the dreaded undefined symbol: EVP_DigestInit
problem when compiling.
apparently,
BUILDAGENTLIBS = $(shell net-snmp-config --netsnmp-agent-libs)
is not enough because net-snmp external libraries aren't linked properly without implicitly stating it in the Makefile
so i added this line after it:
BUILDAGENTLIBS += $(shell net-snmp-config --external-libs)
*this is assuming net-snmp is built without perl. (or i think even if built with perl, this additional line will fix it)