<br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 9:38 AM, jay binks <span dir="ltr">&lt;<a href="mailto:jaybinks@gmail.com">jaybinks@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
has anyone done any work on getting SNMP monitoring of freeswitch ??<div><br></div><div>from looking at some other emails about this, it seems that there is not a heap of desire ( from developers point of view )</div><div>


to have a FS SNMP module.   Ive also noticed most requests for this type of monitoring are directed to ESL.</div></blockquote><div><br>because there is no need :)<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br></div><div>so my thought,  has anyone done any work on building a script / module for NET-SNMP ( <a href="http://net-snmp.sourceforge.net/" target="_blank">http://net-snmp.sourceforge.net/</a> )</div>

<div>that uses ESL to fetch its data.</div><div><br></div></blockquote><div><br>what i&#39;m doing is just make a script to call fs_cli -x command<br><br>e.g. <br><br>tculjaga@nemesis:~$ /usr/local/freeswitch/bin/fs_cli -x &quot;status&quot;<br>
UP 0 years, 0 days, 0 hours, 0 minutes, 8 seconds, 470 milliseconds, 62 microseconds<br>0 session(s) since startup<br>0 session(s) 0/30<br>1000 session(s) max<br><br><br>and bind it to an OID...<br><br><br>I&#39;m even firing SIPP with to check end-to-end FS sanity.<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div></div><div>so we would run snmpd on our FS boxes, with the FS-ESL module ( or script ) loaded into snmpd.</div>
<div>from there SNMP requests would be handled by snmpd and the data would then be pulled over ESL directly from freeswitch.</div>

<div><br></div><div>this seems like a decent solution that would not risk stability of FS by introducing yet another module.</div><div><br></div><div>so I guess my question here is, has anyone done something like this ?</div>
</blockquote><div><br>yes...<br><br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>what do you all think of this idea ?</div><div>is there anyone who would like to contribute to this idea or offer other suggestions.</div><div><br></div></blockquote><div><br>it is just a script ... quite easy to setup...<br>
<br>prepare your script:<br><br>[tculjaga@ bin]$ cat activeChannels.sh <br>#!/bin/sh<br><br>CHANNELS=`/usr/local/freeswitch/bin/fs_cli -x &quot;show channels count&quot; |/bin/grep total | /bin/awk {&#39;print $1&#39;}`<br>
/bin/echo $CHANNELS<br>exit $CHANNELS<br>[tculjaga@l01sipindir2 bin]$ <br>[tculjaga@l01sipindir2 bin]$ <br>[tculjaga@l01sipindir2 bin]$ cat currentCallsPerSec.sh <br>#!/bin/sh<br><br>
<br>
<br>in snmpd.conf add this:<br>
<br>
exec activeChannels /usr/local/bin/activeChannels.sh<br>
exec checkCallFlowCPS /usr/local/bin/sipgen/sipgen.sh 1234 1 10<br>
<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div></div><div>oh yea, and why SNMP..  I duno... </div><div>SNMP is just so easy to integrate into other monitoring systems.</div>


<div><br></div></blockquote><div><br>because every NMS uses it .. maybe thats why :)<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div> </div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div></div><div><br>-- <br>Sincerely<br><br>Jay<br>
</div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>