<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body style="font-family: Calibri; font-size: 11pt;"
bgcolor="#FFFFFF" text="#000000"><div style="font-size:
11pt;font-family: Calibri;">Anthony thanks for your input. I'll check it
out with our sysadmin of Zenoss tomorrow when back in office<br><br>regards<br><div
class="moz-signature">-- <br><span><span style="background-color:
rgba(255, 255, 255, 0);">Deon</span></span><br>
<br>
</div><br><br><blockquote style="border: 0px none;"
cite="mid:103B1F49-619D-49E7-A2DD-5A5BE682EFF0@icloud.com" type="cite"><div
style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px">          <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" href="mailto:agtmcgarry@icloud.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Anthony McGarry</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">January 29, 2014
at 7:31 PM</span></font></div></div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><meta content="text/html;
charset=ISO-8859-1" http-equiv="Content-Type"><div><div><div>Hi,</div><div><br></div><div>I
use this script, located in ~/bin of my freeswitch user, to graph
channel usage.</div><div><br></div><div>#!/bin/sh</div><div># script to
gather channel usage per customer</div><div><br></div><div>CHANNELS=`/usr/local/freeswitch/bin/fs_cli
-x "limit_usage db channels testcustomer"`</div><div><br></div><div>echo
.1.3.6.1.4.1.2021.8.0</div><div>echo integer</div><div>echo $CHANNELS</div><div><br></div><div>Then
in snmpd.conf</div><div><br></div><div>pass .1.3.6.1.4.1.2021.8.0
/bin/sh /home/fsadmin/bin/channel_usage.sh</div><div><br></div><div>Zenoss</div><div>Advanced
– monitoring templates</div><div>Create a new template under linux
servers for freeswitch</div><div>add data point with snmp oid.</div><div><br></div><div>Set
graph creation to GUAGE and set cmd to </div><div><br></div><div>RRA:AVERAGE:0.5:1:600</div><div>RRA:AVERAGE:0.5:6:600</div><div>RRA:AVERAGE:0.5:24:600</div><div>RRA:AVERAGE:0.5:288:600</div><div>RRA:MAX:0.5:6:600</div><div>RRA:MAX:0.5:24:600</div><div>RRA:MAX:0.5:288:600</div><div>RRA:LAST:0.5:1:600</div><div>RRA:LAST:0.5:6:600</div><div>RRA:LAST:0.5:24:600</div><div>RRA:LAST:0.5:288:600</div><div><br></div><div>Add
graph definition and the manage graph point.</div><div><br></div><div>Update
consolidation to LAST. </div><div><br></div><div>Also change format to
%5.0lf%s</div><div><br></div><div><br></div><div>Hope this helps</div><div><br></div><div><br></div><div>Anthony</div><div><br></div></div><div><br
class="Apple-interchange-newline"></div><br></div><div>_________________________________________________________________________<br>Professional
FreeSWITCH Consulting Services:<br><a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered
IP PBX: The CudaTel Communication Server<br><a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a><br><br>Official
FreeSWITCH Sites<br><a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br><a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br><a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a><br><br>FreeSWITCH-users
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></div><div
style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px">          <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" href="mailto:vermeulen.deon@gmail.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Deon Vermeulen</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">January 29, 2014
at 6:46 PM</span></font></div></div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<div style="font-size: 11pt;font-family: Calibri;"><span
style="font-family: Calibri;">Hi<br><br>I'm trying to export calls count
into snmp for graphing with zenoss.<br>I used this post for cacti.
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Snmp_Cacti"
class="moz-txt-link-freetext">http://wiki.freeswitch.org/wiki/Snmp_Cacti</a><br><br><br>Script:<br><br>#!/bin/bash<br>/usr/local/freeswitch/bin/fs_cli
-x "show calls count" | grep total | awk '{print $1}'<br><br><br>Permissions:<br><br>-rwxrwxrwx
1 root staff 295 Jan 29 17:01 curcalls<br><br><br>in snmpd.conf I have
following:<br><br>### ---- FreeSWITCH Active Calls ----<br>extend
.1.3.6.1.4.1.2021.8.1.101 curcalls /usr/local/scripts/curcalls<br><br><br>When
I run:<br><br>snmpwalk localhost -c public -v2c
.1.3.6.1.4.1.2021.8.1.101<br><br>I get following output:<br><br>iso.3.6.1.4.1.2021.8.1.101.1.0
= INTEGER: 1<br>iso.3.6.1.4.1.2021.8.1.101.2.1.2.8.99.117.114.99.97.108.108.115
= STRING: "/usr/local/freeswitch/bin/fs_cli -x 'show calls count' |
grep total | awk '{print $1}'"<br>iso.3.6.1.4.1.2021.8.1.101.2.1.3.8.99.117.114.99.97.108.108.115
= ""<br>iso.3.6.1.4.1.2021.8.1.101.2.1.4.8.99.117.114.99.97.108.108.115
= ""<br>iso.3.6.1.4.1.2021.8.1.101.2.1.5.8.99.117.114.99.97.108.108.115
= INTEGER: 5<br>iso.3.6.1.4.1.2021.8.1.101.2.1.6.8.99.117.114.99.97.108.108.115
= INTEGER: 1<br>iso.3.6.1.4.1.2021.8.1.101.2.1.7.8.99.117.114.99.97.108.108.115
= INTEGER: 1<br>iso.3.6.1.4.1.2021.8.1.101.2.1.20.8.99.117.114.99.97.108.108.115
= INTEGER: 4<br>iso.3.6.1.4.1.2021.8.1.101.2.1.21.8.99.117.114.99.97.108.108.115
= INTEGER: 1<br>iso.3.6.1.4.1.2021.8.1.101.3.1.1.8.99.117.114.99.97.108.108.115
= STRING: "/usr/local/freeswitch/bin/fs_cli: Permission denied"<br>iso.3.6.1.4.1.2021.8.1.101.3.1.2.8.99.117.114.99.97.108.108.115
= STRING: "/usr/local/freeswitch/bin/fs_cli: Permission denied"<br>iso.3.6.1.4.1.2021.8.1.101.3.1.3.8.99.117.114.99.97.108.108.115
= INTEGER: 1<br>iso.3.6.1.4.1.2021.8.1.101.3.1.4.8.99.117.114.99.97.108.108.115
= INTEGER: 1<br>iso.3.6.1.4.1.2021.8.1.101.4.1.2.8.99.117.114.99.97.108.108.115.1
= STRING: "/usr/local/freeswitch/bin/fs_cli: Permission denied"<br><br><br>I
run on Debian 6.0 with FreeSWITCH version:<br>FreeSWITCH Version
1.2.15+git~20131210T035405Z~b1288520bc~64bit (git b128852 2013-12-10
03:54:05Z 64bit)<br><br><br>Any input will be appreciated.<br><br><br>Thank
you<br></span>-- <br></div>
</div></blockquote></div></body></html>