Snmpd Exec Issue
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.
One thought on - Snmpd Exec Issue
Disabling SELinux is not ideal.
Might try sifting through some of this info:
[0]
http://serverfault.com/questions/517893/configure-selinux-to-allow-snmpd-to-read-to-a-custom-location
[1] https://lists.CentOS.org/pipermail/CentOS/2012-May/126415.html
[2] https://lists.CentOS.org/pipermail/CentOS/2012-May/126455.html
[3] https://lists.CentOS.org/pipermail/CentOS/2012-May/126463.html
[4] https://bugzilla.redhat.com/show_bug.cgi?id