MRTG and SNMP
  mrtg を動かすには
  snmpd の確認
  Links(mrtg)
  Links(ucd-snmp)
    /usr/local/share/snmp
    /etc/snmp/
  設置
    pkgsrc
    non pkgsrc
  OID
  snmpd.conf
    share/snmp/
  snmpd -h
  disk info

SNMPD & MRTG

Last Update: "2004/07/31 23:17:31 makoto"

disk info

snmpwalk  - public -v 1 example.com .1.3.6.1.4.1.2021.9.1
will give you disk usage information
UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/wd0a
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: 10000
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: -1
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 9770972
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 9005936
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 276488
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 3
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 1
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorMsg.1 = STRING: 
and if you want to pick 3rd line above,
snmpwalk  - public -v 1 example.com .1.3.6.1.4.1.2021.9.1.3
It returns one line as:
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 3
Last Update: Fri, 03 May 2019 17:20:29 GMT 1.66 2008/03/08