Iwant to add an custom OID to MIB tree structure. I add the line as below to file /etc/snmp/snmpd.conf
extend test1 /bin/echo Hello, world!
but I don't know how to specifiy the exact OID number. Is there any way to do that?
Sure, for example when I want to graph more fancy disk usage with say, iostat I have
pass .1.3.6.1.3.1 /usr/bin/perl /usr/local/bin/iostat.pl
at the bottom of my /etc/snmp/snmpd.conf
then I can use snmpwalk -v2c -cpublic localhost snmpwalk -v2c -cpublic localhost .1.3.6.1.3.1