hi guys,
anybody here tried using snmpstats with 3.0.0? 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?
Kelvin Chua
Hello,
On 02/14/2010 04:24 AM, Kelvin Chua wrote:
hi guys,
anybody here tried using snmpstats with 3.0.0?
yes, before release there was quite some activity around this module.
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?
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.
Cheers, Daniel
here is a short snippet from kamailio debug logs:
16(11979) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (12): dialog 16(11979) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (12): snmpstats 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 No log handling enabled - turning on stderr logging NET-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: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)
Kelvin Chua
On Tue, Feb 16, 2010 at 1:15 AM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Hello,
On 02/14/2010 04:24 AM, Kelvin Chua wrote:
hi guys,
anybody here tried using snmpstats with 3.0.0?
yes, before release there was quite some activity around this module.
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?
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.
Cheers, Daniel
Hello,
On 02/20/2010 05:46 AM, Kelvin Chua wrote:
here is a short snippet from kamailio debug logs:
16(11979) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (12): dialog 16(11979) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (12): snmpstats 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 No log handling enabled - turning on stderr logging NET-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: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.
I will look more into it soon -- I was offline for several days.
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)
So both are needed, right? There was a discussion about missing symbols after linking, probably this will fix it better.
Thanks, Daniel
Kelvin Chua
On Tue, Feb 16, 2010 at 1:15 AM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Hello, On 02/14/2010 04:24 AM, Kelvin Chua wrote: hi guys, anybody here tried using snmpstats with 3.0.0? yes, before release there was quite some activity around this module. 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? 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. Cheers, Daniel
ok thanks, i'm also doing some digging myself. still no luck
On Wed, Feb 24, 2010 at 4:59 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Hello,
On 02/20/2010 05:46 AM, Kelvin Chua wrote:
here is a short snippet from kamailio debug logs:
16(11979) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (12): dialog 16(11979) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (12): snmpstats 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 No log handling enabled - turning on stderr logging NET-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: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.
I will look more into it soon -- I was offline for several days.
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)
So both are needed, right? There was a discussion about missing symbols after linking, probably this will fix it better.
yes, both are needed to avoid the missing symbol issue
Thanks, Daniel
Kelvin Chua
On Tue, Feb 16, 2010 at 1:15 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
On 02/14/2010 04:24 AM, Kelvin Chua wrote:
hi guys,
anybody here tried using snmpstats with 3.0.0?
yes, before release there was quite some activity around this module.
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?
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.
Cheers, Daniel
-- Daniel-Constantin Mierla Kamailio SIP Router Masterclass, Berlin, March 22-26, 2010