I am trying to get the EXTEND feature of SNMPD to work. I have added this at the end of my snmpd.conf file.
Code:
extend datecheck /bin/date
and after restarted snmpd I get this error when I try to walk for my new "extension"
Code:
No more variables left in this MIB View (It is past the end of the MIB tree)
Here is the full output of all my walks.
Code:
me@testserver:~$ snmpwalk -v 2c -c public localhost UCD-SNMP-MIB::extTable
UCD-SNMP-MIB::extTable = No more variables left in this MIB View (It is past the end of the MIB tree)
me@testserver:~$ snmpwalk -v 2c -c public localhost NET-SNMP-EXTEND-MIB::nsExtendResult
NET-SNMP-EXTEND-MIB::nsExtendResult = No more variables left in this MIB View (It is past the end of the MIB tree)
me@testserver:~$ snmpwalk -v 2c -c public localhost NET-SNMP-EXTEND-MIB::nsExtendOutput1Table
NET-SNMP-EXTEND-MIB::nsExtendOutput1Table = No more variables left in this MIB View (It is past the end of the MIB tree)
me@testserver:~$ snmpwalk -v 2c -c public localhost NET-SNMP-AGENT-MIB::nsExtensions
NET-SNMP-AGENT-MIB::nsExtensions = No more variables left in this MIB View (It is past the end of the MIB tree)
and here is my snmpd.conf file
Code:
com2sec paranoid default public
group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
extend datecheck /bin/date
so can anyone tell me what I'm doing wrong?
Thanks