[OpenSIPS-Users] SNMPstats not working
Alexey K.
kurgan-rus at inbox.ru
Tue Mar 6 09:13:38 EST 2018
Hi all.
- CentOS 7.4.1708
- OpenSIPS 2.2.5
- configured as written here http://www.opensips.org/html/docs/modules/2.2.x/snmpstats.html and http://saevolgo.blogspot.ru/2012/09/opensips-monitoring-using-snmp-part-i.html
- OPENSER-MIB, OPENSER-REG-MIB, OPENSER-SIP-COMMON-MIB, OPENSER-SIP-SERVER-MIB, OPENSER-TC - put from opensips-2.2.5.gz to all MIBs location (/usr/share/snmp/mibs/)
opensips.cfg
***************
loadmodule "snmpstats.so"
modparam("snmpstats", "snmpgetPath", "/usr/bin/")
modparam("snmpstats", "sipEntityType", "registrarServer")
netstat OK:
***************
sip01 ~ # netstat -tulpn | grep -e opens -e snm
tcp 0 0 127.0.0.1:705 0.0.0.0:* LISTEN 26539/snmpd
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 26539/snmpd
udp 0 0 10.5.10.21:5060 0.0.0.0:* 26569/opensips
udp 0 0 0.0.0.0:161 0.0.0.0:* 26539/snmpd opensipsctl fifo OK:
***************
sip01 ~ # opensipsctl fifo ps
Process:: ID=0 PID=26569 Type=attendant
Process:: ID=1 PID=26571 Type=SNMP AgentX
...
But this command shows no output:
***************
snmpd -f -Dagentx -x tcp:localhost:705 2>&1
And as a result - SNMP monitoring does not work.
-----------------------------------------------
BR, Alexey
http://alexeyka.zantsev.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180306/4a2df9f4/attachment.html>
More information about the Users
mailing list