[OpenSIPS-Users] Getting general failure Error when trying to fetch SNMP stats.
Husnain Taseer
husnain.taseer at gmail.com
Tue Feb 9 15:17:48 CET 2016
Dear Users,
I am trying to fetch SNMP stats from opensips and getting general failure
error, I have configured snmpstats module in opensips and have also
configured snmpd service on CentOS. System Packaging details are as follows:
OS Version: CentOS Linux release 7.1.1503 (Core)
Opensips Version: Server:: OpenSIPS (2.1.1 (x86_64/linux))
SNMP Version: NET-SNMP version 5.7.2
Configuration Details and logs are as follows:
*snmpstats.so configuration:*
loadmodule "snmpstats.so"
modparam("snmpstats", "sipEntityType", "registrarServer")
modparam("snmpstats", "snmpgetPath", "/usr/bin/")
*snmpd.conf :*
*rocommunity public*
*syslocation "VM, Virtual DataCenter"*
*syscontact XXXX*
*master agentx*
*agentXSocket tcp:localhost:705*
*snmp.conf:*
*defVersion 2c*
*defCommunity public*
*snmpstats.conf*
agentXSocket tcp:localhost:705
*Output of netstat:*
[root at VoIPDevSys ~]# netstat -nlp | grep snmpd
tcp 0 0 127.0.0.1:705 0.0.0.0:* LISTEN
28461/snmpd
udp 0 0 0.0.0.0:161 0.0.0.0:*
28461/snmpd
in snmpd.log AgentX master support enabled can be seen:
*snmpd.log*
*Feb 9 16:49:45 VoIPDevSys systemd: Starting Simple Network Management
Protocol (SNMP) Daemon....*
*Feb 9 16:49:45 VoIPDevSys snmpd[28461]: Turning on AgentX master support.*
*Feb 9 16:49:45 VoIPDevSys snmpd[28461]: Turning on AgentX master support.*
*Feb 9 16:49:45 VoIPDevSys snmpd[28461]: NET-SNMP version 5.7.2*
*Feb 9 16:49:45 VoIPDevSys systemd: Started Simple Network Management
Protocol (SNMP) Daemon..*
Output of different commands:
Basic command sysLocation.0 works:
*[root at VoIPDevSys opensips]# snmpbulkwalk -O s -v 2c -c public localhost
sysLocation.0*
*sysLocation.0 = STRING: \"VM, Virtual DataCenter\"*
Command openserSIPProtocolVersion.0 also works using snmpget:
[root at VoIPDevSys opensips]# snmpget -O s -v 2c -c public localhost
OPENSER-SIP-COMMON-MIB::openserSIPProtocolVersion.0
openserSIPProtocolVersion.0 = STRING: SIP/2.0
*But when I try to fetch common objects i am getting following error:*
*[root at VoIPDevSys opensips]# snmpwalk -O s -v 2c -c public localhost
OPENSER-SIP-COMMON-MIB::openserSIPCommonObjects*
*openserSIPProtocolVersion.0 = STRING: SIP/2.0*
*Error in packet.*
*Reason: (genError) A general failure occured*
*Failed object: openserSIPProtocolVersion.0*
[root at VoIPDevSys opensips]# snmpbulkwalk -v2c -Os -c public 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.
Please advice where I am doing wrong, or is it a bug in getting the
complete object from snmpstats module.
*Regards,*
*Husnain Taseer*
*VoIP Developer*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160209/7e7a0862/attachment.htm>
More information about the Users
mailing list