I'm trying to monitor the disk space of the OpenVZ container. The shell inside the container gives me a
Code: Select all
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 96G 43G 53G 45% /
none 5.9G 4.0K 5.9G 1% /dev
Code: Select all
+ Running data query [10].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/hrStorageTable.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.25.2.3.1.1' Index Count: 6
+ Index found at OID: '1.3.6.1.2.1.25.2.3.1.1.1' value: '1'
+ Index found at OID: '1.3.6.1.2.1.25.2.3.1.1.3' value: '3'
+ Index found at OID: '1.3.6.1.2.1.25.2.3.1.1.6' value: '6'
+ Index found at OID: '1.3.6.1.2.1.25.2.3.1.1.7' value: '7'
+ Index found at OID: '1.3.6.1.2.1.25.2.3.1.1.10' value: '10'
+ Index found at OID: '1.3.6.1.2.1.25.2.3.1.1.34' value: '34'
+ Located input field 'hrStorageIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.25.2.3.1.1'
+ Found item [hrStorageIndex='1'] index: 1 [from value]
+ Found item [hrStorageIndex='3'] index: 3 [from value]
+ Found item [hrStorageIndex='6'] index: 6 [from value]
+ Found item [hrStorageIndex='7'] index: 7 [from value]
+ Found item [hrStorageIndex='10'] index: 10 [from value]
+ Found item [hrStorageIndex='34'] index: 34 [from value]
+ Located input field 'hrStorageDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.25.2.3.1.3'
+ Found item [hrStorageDescr='Physical memory'] index: 1 [from value]
+ Found item [hrStorageDescr='Virtual memory'] index: 3 [from value]
+ Found item [hrStorageDescr='Memory buffers'] index: 6 [from value]
+ Found item [hrStorageDescr='Cached memory'] index: 7 [from value]
+ Found item [hrStorageDescr='Swap space'] index: 10 [from value]
+ Found item [hrStorageDescr='/dev'] index: 34 [from value]
+ Located input field 'hrStorageAllocationUnits' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.25.2.3.1.4'
+ Found item [hrStorageAllocationUnits='1024'] index: 1 [from regexp value parse]
+ Found item [hrStorageAllocationUnits='1024'] index: 3 [from regexp value parse]
+ Found item [hrStorageAllocationUnits='1024'] index: 6 [from regexp value parse]
+ Found item [hrStorageAllocationUnits='1024'] index: 7 [from regexp value parse]
+ Found item [hrStorageAllocationUnits='1024'] index: 10 [from regexp value parse]
+ Found item [hrStorageAllocationUnits='4096'] index: 34 [from regexp value parse]
Code: Select all
# snmpwalk -v1 -c public localhost .1.3.6.1.2.1.25.2.3.1.3
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.34 = STRING: /dev
best regards
Frank