I'm running Red Hat 5u1 32-bit and I've got:
net-snmp-perl-5.3.1-19.el5
net-snmp-utils-5.3.1-19.el5
net-snmp-libs-5.3.1-19.el5
net-snmp-5.3.1-19.el5

I'm just trying to get snmp to run an external script which I've done by uncommenting the line
exec echotest /bin/echo hello world

in /etc/snmp/snmpd.conf

I've started/restarted snmpd (/etc/init.d/snmpd restart)

Running command
snmpwalk -v 1 localhost -c public 1.3.6.1

I do get some results - but no hello world
1.3.6.1.4.1.2021.8 gets me End of MIB

Tried several variants of the commands and settings

Also tried snmpconf to edit snmp.conf - same result

Also tried to run a script file - similar problem

Tried changing location info, and get expected response, so at least modifying correct file.

Googling indicates several similar questions, but no resolution.

Is snmp just broken when it comes to running a script?


Any ideas?

No, I cannot upgrade to some later version of Red Hat/CentOS or try some other flavour of Linux - but do I need some later fixed version of net snmp?