Snmpd Exec Issue

Home » CentOS » Snmpd Exec Issue
CentOS 1 Comment

Hello guys , I was trying to get a command output from my CentOS 6
server using the snmpd “exec” section.

The line added to snmpd.conf id:

exec get_whitelist /bin/cat /home/snmp_user/whitelist.txt

Afer trying to get the resut performing the snmpwalk client form another server I always got “permission denied”
After reading some forums I founded that disabling selinux It works. My question is .. What is the proper way to achieve snmpd executing some commands ?
In my case it is working now but … Im not sure if disabling selinux is the best way.

Regards. Leandro.