<div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br><br></div>I've currently setup OpenSIPs 2.2.2 on CentOs 7.3 and trying to configure with SNMP as following urls: <br><a href="http://www.opensips.org/html/docs/modules/2.2.x/snmpstats.html">http://www.opensips.org/html/docs/modules/2.2.x/snmpstats.html</a><br><a href="http://saevolgo.blogspot.ro/2012/09/opensips-monitoring-using-snmp-part-i.html">http://saevolgo.blogspot.ro/2012/09/opensips-monitoring-using-snmp-part-i.html</a><br><a href="http://bestqualityvn.blogspot.com/2014_03_01_archive.html?view=classic">http://bestqualityvn.blogspot.com/2014_03_01_archive.html?view=classic</a><br><br></div>The issue I'm currently facing as some of the objects are not getting fetched and getting error using snmp utilities;<br><br>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>#snmpbulkwalk
-v2c -Os -c IrmcM0n localhost OPENSER-REG-MIB::openser</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>Error
in packet.</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>Reason:
(genError) A general failure occured</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>Failed
object: openserSIPCommonMIB.1.1.1.0</span></p>

<span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">openser
= No Such Object available on this agent at this OID<br><br></span>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>#
snmpbulkwalk -O s -v 2c -c<span>  </span>IrmcM0n
localhost OPENSER-SIP-COMMON-MIB::openserSIPCommonObjects</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>Error
in packet.</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>Reason:
(genError) A general failure occured</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>Failed
object: openserSIPProtocolVersion.0</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span> </span><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">openserSIPCommonObjects
= No Such Object available on this agent at this OID</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">However, some other objects are being fetched without any error;<br><br></span><br>

</p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>#
snmpwalk -O s -v1 -t 30 -c IrmcM0n localhost OPENSER-MIB::openserDialog<br>
openserCurNumDialogs.0 = Gauge32: 0</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>openserCurNumDialogsInProgress.0
= Gauge32: 0</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>openserCurNumDialogsInSetup.0
= Gauge32: 0</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>openserTotalNumFailedDialogSetups.0
= Counter32: 0</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>openserDialogLimitMinorThreshold.0
= INTEGER: 800</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>openserDialogLimitMajorThreshold.0
= INTEGER: -1</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>openserDialogUsageState.0
= INTEGER: idle(0)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>openserDialogLimitAlarmStatus.0
= BITS: 00</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>openserDialogLimitMinorAlarm.0
= INTEGER: clear(0)</span></p>

<span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">openserDialogLimitMajorAlarm.0
= INTEGER: clear(0)<br><br></span><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif"># snmptranslate -On
OPENSER-SIP-COMMON-MIB::openserSIPNumUnsupportedMethods.0<br>
.1.3.6.1.4.1.27483.3.1.1.1.8.2.0<br><br><br></span></div><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">I also verified that SNMP is listening to the interface;<br><br></span>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>#
netstat -pln | grep snmp<br>
tcp<span>        </span>0<span>      </span>0 <a href="http://127.0.0.1:705">127.0.0.1:705</a><span>           </span>0.0.0.0:*<span>               </span>LISTEN<span>      </span>29279/snmpd</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span>tcp<span>        </span>0<span>     
</span>0 <a href="http://127.0.0.1:199">127.0.0.1:199</a><span>          
</span>0.0.0.0:*<span>               </span>LISTEN<span>      </span>29279/snmpd</span></p>

<span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">udp<span>        </span>0<span>     
</span>0 <a href="http://0.0.0.0:161">0.0.0.0:161</a><span>            
</span>0.0.0.0:*<span>                          
</span>29279/snmpd<br><br></span></div><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">As per opensips config for SNMP, see below;<br><br></span>

<p class="MsoNormal"><span>loadmodule "snmpstats.so" # load snmpstats module<br>
<br>
modparam("snmpstats", "sipEntityType",
"proxyServer") # snmp</span></p>

<p class="MsoNormal"><span>modparam("snmpstats", "snmpgetPath",
"/usr/bin/")</span></p>

<p class="MsoNormal"><span>modparam("snmpstats", "snmpCommunity",
"IrmcM0n")</span></p>

<p class="MsoNormal"><span>modparam("snmpstats",
"MsgQueueMinorThreshold", 3000)</span></p>

<p class="MsoNormal"><span>modparam("snmpstats",
"MsgQueueMajorThreshold", 6000)</span></p>

<p class="MsoNormal"><span>modparam("snmpstats", "dlg_minor_threshold",
500)</span></p>

<span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">modparam("snmpstats",
"dlg_minor_threshold", 800)<br><br></span></div><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">Config for 'snmpd.conf' <br><br>sysContact Test User <<a href="mailto:testuser@testproxy.com">testuser@testproxy.com</a>><br><br>rwcommunity IrmcM0n <a href="http://127.0.0.1/32">127.0.0.1/32</a><br>rocommunity IrmcM0n <a href="http://10.0.0.0/8">10.0.0.0/8</a><br><br>master agentx<br>agentXSocket    tcp:localhost:705<br><br></span></div><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">Config for 'snmpstats.conf'<br><br></span><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif"><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">agentXSocket    tcp:localhost:705<br><br></span></span></div><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif"><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">Config for '/etc/sysconfig/snmpd'<br><br>OPTIONS="-x tcp:localhost:705 -Lsd -Lf /dev/null -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf<br><br><br></span></span></div><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif"><span style="font-size:11pt;line-height:107%;font-family:"calibri",sans-serif">Please advise if I missed out any steps for executing objects </span></span><br><span>OPENSER-REG-MIB::openser & </span><br><span>OPENSER-SIP-COMMON-MIB::openserSIPCommonObjects using snmpbulkwalk.<br></span><div><div><div><div><div><div><div><div><div><div><div><br>-- <br><div class="gmail_signature">Regards,<br><br>Ahmed Munir Chohan<br><br></div>
</div></div></div></div></div></div></div></div></div></div></div></div>