Hi Guys,
I have created two shell scripts to monitor file size of two files and want to run using NET-SNMP-EXTEND-MIB kept in /bin folder.
a) /bin/etcodbc.sh
#!/bin/sh
ls -l /etc/odbcinst.ini | awk '{ print $5}'
Script a is working fine using NET-SNMP-EXTEND in UnDP poller and giving proper output.

b)/bin/rootodbc.sh
#!/bin/sh
ls -al /root/.odbc.ini | awk '{ print $5}'

added below lines into snmpd.conf
exec rootodbc /bin/sh /bin/rootodbc.sh
exec etcodbc /bin/sh /bin/etcodbc.sh
while running snmp translate command getting OID as well. But in UnDP getting permission denied error.
Can any one help me solve this.