If you want extended MIB scripts to run with root privileges (I ran into that with my script to check software RAIDs), you have to edit the sudoers file on the machine that will run the script.
add this at the end of the sudoers file
snmp ALL=(ALL) NOPASSWD: ALL
then if your script has commands that need root privileges, you should be good to go.
Manuel