Hello!

 

I'm trying to setup SNMPStats on Debian Sid. I have:

 

dev5:~# cat /etc/openser/openser.cfg | grep snmp

loadmodule "snmpstats.so"

modparam("snmpstats", "snmpgetPath", "/usr/bin/")

modparam("snmpstats", "sipEntityType", "proxyServer")

modparam("snmpstats", "MsgQueueMinorThreshold", 1234)

modparam("snmpstats", "MsgQueueMajorThreshold", 5678)

modparam("snmpstats", "dlg_minor_threshold", 500)

modparam("snmpstats", "dlg_minor_threshold", 600)

 

dev5:~# cat /etc/snmp/snmpd.conf | grep agent

master  agentx

agentXSocket tcp:localhost:705

 

 

dev5:~# cat /etc/snmp/snmpstats.conf

agentXSocket tcp:localhost:705

 

dev5:~# snmpd -f -D -Dagentx -x tcp:localhost:705 2>&1 | less

No log handling enabled - turning on stderr logging

registered debug token agentx, 1

netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()

netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()

netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()

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"

/etc/snmp/snmpd.conf: line 115: Warning: Unknown token: system.sysDescr.0.

Turning on AgentX master support.

agentx/config: port spec: tcp:localhost:705

agentx/master: initializing...

agentx/master: initializing...   DONE

NET-SNMP version 5.4.1

agentx/master: unexpected callback op 4

agentx/master: handle pdu (req=0x365b5eac,trans=0x0,sess=0x0)

agentx/master: open 0x86b37e8

agentx/master: opened 0x86c2028 = 6 with flags = a0

agentx/master: send response, stat 0 (req=0x365b5eac,trans=0x0,sess=0x0)

 

But it doesn't work:

dev5:~# snmpget -v2c -c public localhost openserSIPEntityType.0

OPENSER-SIP-COMMON-MIB::openserSIPEntityType.0 = No Such Object available on this agent at this OID

 

Am I missing something?

 

--

Best Regards,

Alex Massover