I'm not able to reproduce your issue exactly, but here is information which shows that the snmp extend functionality is available in latest lucid.
zef@lucid:/tmp$ ps -ef |grep nfsd root 1152 2 0 13:29 ? 00:00:00 [nfsd4] root 1156 2 0 13:29 ? 00:00:00 [nfsd] root 1157 2 0 13:29 ? 00:00:00 [nfsd] root 1158 2 0 13:29 ? 00:00:00 [nfsd] root 1159 2 0 13:29 ? 00:00:00 [nfsd] root 1160 2 0 13:29 ? 00:00:00 [nfsd] root 1161 2 0 13:29 ? 00:00:00 [nfsd] root 1162 2 0 13:29 ? 00:00:00 [nfsd] root 1163 2 0 13:29 ? 00:00:00 [nfsd] zef 2194 1647 0 13:47 pts/0 00:00:00 grep --color=auto nfsd zef@lucid:/tmp$ snmpwalk -v 2c -c stokescanonical localhost NET-SNMP-EXTEND-MIB::nsExtendObjects NET-SNMP-EXTEND-MIB::nsExtendNumEntries.0 = INTEGER: 1 NET-SNMP-EXTEND-MIB::nsExtendCommand."top_lists" = STRING: /bin/sh NET-SNMP-EXTEND-MIB::nsExtendArgs."top_lists" = STRING: /usr/local/bin/blah.sh NET-SNMP-EXTEND-MIB::nsExtendInput."top_lists" = STRING: NET-SNMP-EXTEND-MIB::nsExtendCacheTime."top_lists" = INTEGER: 5 NET-SNMP-EXTEND-MIB::nsExtendExecType."top_lists" = INTEGER: exec(1) NET-SNMP-EXTEND-MIB::nsExtendRunType."top_lists" = INTEGER: run-on-read(1) NET-SNMP-EXTEND-MIB::nsExtendStorage."top_lists" = INTEGER: permanent(4) NET-SNMP-EXTEND-MIB::nsExtendStatus."top_lists" = INTEGER: active(1) NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."top_lists" = STRING: NET-SNMP-EXTEND-MIB::nsExtendOutputFull."top_lists" = STRING: NET-SNMP-EXTEND-MIB::nsExtendOutNumLines."top_lists" = INTEGER: 1 NET-SNMP-EXTEND-MIB::nsExtendResult."top_lists" = INTEGER: 9 NET-SNMP-EXTEND-MIB::nsExtendOutLine."top_lists".1 = STRING: zef@lucid:/tmp$ sudo cat /etc/snmp/snmpd.conf ########################################################################### # # snmpd.conf # ########################################################################### rocommunity stokescanonical extend top_lists /bin/sh /usr/local/bin/blah.sh zef@lucid:/tmp$ cat /usr/local/bin/blah.sh #!/bin/bash NUMPIDS=`pgrep nfsd | wc -l` exit $NUMPIDS zef@lucid:/tmp$ uname -a Linux lucid 2.6.32-41-generic #89-Ubuntu SMP Fri Apr 27 22:18:56 UTC 2012 x86_64 GNU/Linux zef@lucid:/tmp$ dpkg -l snmp snmpd Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-===================-===================-====================================================== ii snmp 5.4.2.1~dfsg0ubuntu SNMP (Simple Network Management Protocol) applications ii snmpd 5.4.2.1~dfsg0ubuntu SNMP (Simple Network Management Protocol) agents -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to net-snmp in Ubuntu. https://bugs.launchpad.net/bugs/496922 Title: Ubuntu snmpd package doesn't include all net-snmpd modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/496922/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs