here is a short snippet from kamailio debug logs:
16(11979) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (12): dialog16(11979) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (12): snmpstats16(11979) DEBUG: <core> [local_timer.c:67]: init_local_timer: timer_list between 0x8223264 and 0x824526416(11979) DEBUG: <core> [io_wait.h:361]: DBG: io_watch_add(0x82230a0, 29, 1, (nil)), fd_no=0No log handling enabled - turning on stderr loggingNET-SNMP version 5.3.3 AgentX subagent connected
here we can see proper communication between kamailio and net-snmp:
sudo snmpd -f -Dagentx -x tcp:localhost:705No log handling enabled - turning on stderr loggingregistered debug token agentx, 1agentx_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... DONENET-SNMP version 5.3.3agentx/master: unexpected callback op 4agentx/master: handle pdu (req=0x64618cf8,trans=0x0,sess=0x0)agentx/master: open 0x8b761b8agentx/master: opened 0x8b86ae0 = 5 with flags = a0agentx/master: send response, stat 0 (req=0x64618cf8,trans=0x0,sess=0x0)agentx_build: packet built okayagentx/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.34352SNMPv2-SMI::enterprises.34352 = No Such Object available on this agent at this OIDsnmpwalk -c VOIP -v 2c localhost .1.3.6.1.4.1.34352SNMPv2-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_DigestInitproblem 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 Makefileso 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)
Kelvin Chua
On Tue, Feb 16, 2010 at 1:15 AM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,yes, before release there was quite some activity around this module.
On 02/14/2010 04:24 AM, Kelvin Chua wrote:
hi guys,
anybody here tried using snmpstats with 3.0.0?
I am not really using it production wise, but if you can post here syslog messages of the error and other details that you can grab, I might be able to help.
i keep on getting "No such Object"
already verified that kamailio is talking to agentx master.
net-snmp version 5.3.3 compiled from source
also disabled openssl and md5 in net-snmp to prevent any undefined symbols
been reading the mailing lists and so far nothing helped. seems like only a couple of guys
are using this module?
Cheers,
Daniel
-- Daniel-Constantin Mierla Kamailio SIP Router Masterclass, Berlin, March 22-26, 2010 * http://www.asipto.com/index.php/sip-router-masterclass/