Waveter Asked: 2016-04-21 23:57:48 +0800 CST2016-04-21 23:57:48 +0800 CST 2016-04-21 23:57:48 +0800 CST Customize OID of snmp in linux 772 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? linux snmp oid mib 1 Answers Voted Recct 2016-04-22T01:10:49+08:002016-04-22T01:10:49+08:00 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
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