[OpenSIPS-Users] OpenSIPs 2.2.2 + SNMP on CentOs 7

Ahmed Munir ahmedmunir007 at gmail.com
Mon Feb 6 14:18:31 EST 2017


Hi,

I've currently setup OpenSIPs 2.2.2 on CentOs 7.3 and trying to configure
with SNMP as following urls:
http://www.opensips.org/html/docs/modules/2.2.x/snmpstats.html
http://saevolgo.blogspot.ro/2012/09/opensips-monitoring-using-snmp-part-i.html
http://bestqualityvn.blogspot.com/2014_03_01_archive.html?view=classic

The issue I'm currently facing as some of the objects are not getting
fetched and getting error using snmp utilities;

#snmpbulkwalk -v2c -Os -c IrmcM0n localhost OPENSER-REG-MIB::openser

Error in packet.

Reason: (genError) A general failure occured

Failed object: openserSIPCommonMIB.1.1.1.0
openser = No Such Object available on this agent at this OID

# snmpbulkwalk -O s -v 2c -c  IrmcM0n localhost
OPENSER-SIP-COMMON-MIB::openserSIPCommonObjects

Error in packet.

Reason: (genError) A general failure occured

Failed object: openserSIPProtocolVersion.0

 openserSIPCommonObjects = No Such Object available on this agent at this
OID


However, some other objects are being fetched without any error;


# snmpwalk -O s -v1 -t 30 -c IrmcM0n localhost OPENSER-MIB::openserDialog
openserCurNumDialogs.0 = Gauge32: 0

openserCurNumDialogsInProgress.0 = Gauge32: 0

openserCurNumDialogsInSetup.0 = Gauge32: 0

openserTotalNumFailedDialogSetups.0 = Counter32: 0

openserDialogLimitMinorThreshold.0 = INTEGER: 800

openserDialogLimitMajorThreshold.0 = INTEGER: -1

openserDialogUsageState.0 = INTEGER: idle(0)

openserDialogLimitAlarmStatus.0 = BITS: 00

openserDialogLimitMinorAlarm.0 = INTEGER: clear(0)
openserDialogLimitMajorAlarm.0 = INTEGER: clear(0)

# snmptranslate -On
OPENSER-SIP-COMMON-MIB::openserSIPNumUnsupportedMethods.0
.1.3.6.1.4.1.27483.3.1.1.1.8.2.0


I also verified that SNMP is listening to the interface;

# netstat -pln | grep snmp
tcp        0      0 127.0.0.1:705           0.0.0.0:*               LISTEN
29279/snmpd

tcp        0      0 127.0.0.1:199           0.0.0.0:*               LISTEN
29279/snmpd
udp        0      0 0.0.0.0:161             0.0.0.0:*
29279/snmpd

As per opensips config for SNMP, see below;

loadmodule "snmpstats.so" # load snmpstats module

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

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

modparam("snmpstats", "snmpCommunity", "IrmcM0n")

modparam("snmpstats", "MsgQueueMinorThreshold", 3000)

modparam("snmpstats", "MsgQueueMajorThreshold", 6000)

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

Config for 'snmpd.conf'

sysContact Test User <testuser at testproxy.com>

rwcommunity IrmcM0n 127.0.0.1/32
rocommunity IrmcM0n 10.0.0.0/8

master agentx
agentXSocket    tcp:localhost:705

Config for 'snmpstats.conf'

agentXSocket    tcp:localhost:705

Config for '/etc/sysconfig/snmpd'

OPTIONS="-x tcp:localhost:705 -Lsd -Lf /dev/null -smux -p
/var/run/snmpd.pid -c /etc/snmp/snmpd.conf


Please advise if I missed out any steps for executing objects
OPENSER-REG-MIB::openser &
OPENSER-SIP-COMMON-MIB::openserSIPCommonObjects using snmpbulkwalk.

-- 
Regards,

Ahmed Munir Chohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170206/8f10d795/attachment.html>


More information about the Users mailing list