<div dir="ltr">Check the permissions of every component of the&nbsp;<span style="color:rgb(80,0,80);font-family:Calibri;font-size:15px">/usr/local/freeswitch/bin/fs_</span><span style="color:rgb(80,0,80);font-family:Calibri;font-size:15px">cli path - the permissions of the binary might be ok but the user may still be denied access at one of the directory levels.</span><div>

<span style="color:rgb(80,0,80);font-family:Calibri;font-size:15px"><br></span></div><div><span style="color:rgb(80,0,80);font-family:Calibri;font-size:15px">Try running the command through the su command as the snmp user to see if you can debug it interactively that way</span></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 January 2014 20:30, Deon Vermeulen <span dir="ltr">&lt;<a href="mailto:vermeulen.deon@gmail.com" target="_blank">vermeulen.deon@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="font-family:Calibri;font-size:11pt" bgcolor="#FFFFFF" text="#000000"><div style="font-size:11pt;font-family:Calibri"><span style="font-family:Calibri">Ken,<br><br>I&#39;m
 not sure what I&#39;m missing, but I&#39;ve done pretty much all I know, but 
still not getting any ware.<br>Here is info I can supply atm.<br><br><br><span style="font-weight:bold">SNMP:</span><br>ps aux | grep snmp<br>snmp&nbsp;&nbsp;&nbsp;&nbsp;
 16011&nbsp; 0.0&nbsp; 0.0&nbsp; 49200&nbsp; 5520 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 22:13&nbsp;&nbsp; 0:00 /usr/sbin/snmpd
 -Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid<br><br><br><span style="font-weight:bold">SNMP.CONF</span><div class="im"><br>### ---- FreeSWITCH 
Active Calls ----<br>extend .1.3.6.1.4.1.2021.8.1.101 curcalls 
/usr/local/scripts/curcalls<br><br><br></div><span style="font-weight:bold">USER:</span><br>&nbsp;id
 snmp<br>uid=105(snmp) gid=106(snmp) groups=106(snmp),0(root),1(daemon)<br><br><br><span style="font-weight:bold">FS INIT:</span><br>/etc/init.d/freeswitch<br><br>FS_USER=freeswitch<br>FS_GROUP=daemon<br><br>#<br>#
 Function that starts the daemon/service<br>#<br>do_start()<br>{<br>&nbsp;&nbsp;&nbsp; #
 Set user to run as<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ $FS_USER ] ; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
DAEMON_ARGS=&quot;`echo $DAEMON_ARGS` -u $FS_USER&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br>&nbsp;&nbsp;&nbsp; # Set
 group to run as<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ $FS_GROUP ] ; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
DAEMON_ARGS=&quot;`echo $DAEMON_ARGS` -g $FS_GROUP&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br><br><br><span style="font-weight:bold">FS_CLI:</span><br>-rwxrwxrwx&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
daemon 596002 Dec 10 08:42 fs_cli<br><br><br><span style="font-weight:bold">SCRIPT:</span><br>-rwxrwxrwx&nbsp; 1 root daemon&nbsp; 364 Jan 29 22:15 
curcalls<div class="im"><br><br>#!/bin/bash<br>/usr/local/freeswitch/bin/fs_cli -x &quot;show
 calls count&quot; | grep total | awk &#39;{print $1}&#39;<br><br><br></div><span style="font-weight:bold">SNMPWALK OUTPUT:</span><div class="im"><br>snmpwalk localhost
 -c public -v2c .1.3.6.1.4.1.2021.8.1.101<br></div>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: &quot;/usr/local/scripts/curcalls&quot;<div class="im"><br>iso.3.6.1.4.1.2021.8.1.101.2.1.3.8.99.117.114.99.97.108.108.115
 = &quot;&quot;<br>iso.3.6.1.4.1.2021.8.1.101.2.1.4.8.99.117.114.99.97.108.108.115
 = &quot;&quot;<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></div>iso.3.6.1.4.1.2021.8.1.101.3.1.1.8.99.117.114.99.97.108.108.115
 = STRING: &quot;/usr/local/scripts/curcalls: line 6: 
/usr/local/freeswitch/bin/fs_cli: Permission denied&quot;<br>iso.3.6.1.4.1.2021.8.1.101.3.1.2.8.99.117.114.99.97.108.108.115
 = STRING: &quot;/usr/local/scripts/curcalls: line 6: 
/usr/local/freeswitch/bin/fs_cli: Permission denied&quot;<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: 0<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: &quot;/usr/local/scripts/curcalls: line 6: 
/usr/local/freeswitch/bin/fs_cli: Permission denied&quot;<br><br><br>Hope the
 above provides enough information to find solution.<br><br>Thanks<span class="HOEnZb"><font color="#888888"><br></font></span></span><span class="HOEnZb"><font color="#888888"><div>-- <span><span style="background-color:rgba(255,255,255,0)"><br>

Deon</span></span><br></div><br></font></span><blockquote style="border:0px none" type="cite"><span class="HOEnZb"><font color="#888888"><div style="margin:30px 25px 10px 25px"><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 href="mailto:krice@freeswitch.org" style="color:#737f92!important;padding-right:6px;font-weight:bold;text-decoration:none!important" target="_blank">Ken Rice</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:53 PM</span></font></div></div></div></font></span><div style="color:#888888;margin-left:24px;margin-right:24px"><div class="im">



<font face="Monaco, Courier New"><span style="font-size:11pt">The user 
running snmpd does it have perms to execute fs_cli? Just because it can 
exec the shell script doesn&rsquo;t mean it has perms to exec fs_cli<br>
<br>
<br>
On 1/29/14 10:46 AM, &quot;Deon Vermeulen&quot; &lt;<a href="http://vermeulen.deon@gmail.com" target="_blank">vermeulen.deon@gmail.com</a>&gt; wrote:<br>
<br>
</span></font></div><div class="im"><span style="font-size:11pt"><font face="Calibri, Verdana,
 Helvetica, Arial"><br>
</font><font face="Monaco, Courier New">-- <br>
Ken<br>
<font color="#0000FF"><u><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
</u></font><a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
Twitter: @FreeSWITCH<br>
<br>
</font></span>
</div><div class="im"><div>_________________________________________________________________________<br>Professional
 FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>

<br>FreeSWITCH-powered
 IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official
 FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>

<br>FreeSWITCH-users
 mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>

</div></div></div><div class="im"><div style="margin:30px 25px 10px 25px"><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 href="mailto:vermeulen.deon@gmail.com" style="color:#737f92!important;padding-right:6px;font-weight:bold;text-decoration:none!important" target="_blank">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><div><div class="h5"><div style="color:#888888;margin-left:24px;margin-right:24px">

<div style="font-size:11pt;font-family:Calibri"><span style="font-family:Calibri">Hi<br><br>I&#39;m trying to export calls count
 into snmp for graphing with zenoss.<br>I used this post for cacti.&nbsp; 
<a href="http://wiki.freeswitch.org/wiki/Snmp_Cacti" target="_blank">http://wiki.freeswitch.org/wiki/Snmp_Cacti</a><br><br><br>Script:<br><br>#!/bin/bash<br>/usr/local/freeswitch/bin/fs_cli

 -x &quot;show calls count&quot; | grep total | awk &#39;{print $1}&#39;<br><br><br>Permissions:<br><br>-rwxrwxrwx&nbsp;

 1 root staff&nbsp; 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: &quot;/usr/local/freeswitch/bin/fs_cli -x &#39;show calls count&#39; | 
grep total | awk &#39;{print $1}&#39;&quot;<br>iso.3.6.1.4.1.2021.8.1.101.2.1.3.8.99.117.114.99.97.108.108.115

 = &quot;&quot;<br>iso.3.6.1.4.1.2021.8.1.101.2.1.4.8.99.117.114.99.97.108.108.115
 = &quot;&quot;<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: &quot;/usr/local/freeswitch/bin/fs_cli: Permission denied&quot;<br>iso.3.6.1.4.1.2021.8.1.101.3.1.2.8.99.117.114.99.97.108.108.115

 = STRING: &quot;/usr/local/freeswitch/bin/fs_cli: Permission denied&quot;<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: &quot;/usr/local/freeswitch/bin/fs_cli: Permission denied&quot;<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></div></div></blockquote></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div>