SNMP For dummies

So I don't use SNMP enough .. but this one is a really interresting trick.
the "exec" one.

exec FileCheck /usr/local/bin/filecheck.sh  /tmp/mon.log

Basically you run a script and the output from that script (say an error message or a status) , will be shown in an snmpwalk.