I have problem with monitoring disc usage on Windows 2008 servers.
Cacti version: 0.8.7e
I'm using snmp v2
Host template: Windows 2000/XP host
Data query: SNMP - Get Mounted Partitions
Result is always 0.
There are no erros when running ss_host_disk.php in script server but result is also 0
Data Query Debug Information:
Code: Select all
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 192.168.1.1 22 2:161:500:1:10:community:::::: index'
+ Executing script query '/usr/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 192.168.1.1 22 2:161:500:1:10:community:::::: query index'
+ Found item [hrStorageIndex='1'] index: 1
+ Found item [hrStorageIndex='2'] index: 2
+ Found item [hrStorageIndex='3'] index: 3
+ Found item [hrStorageIndex='4'] index: 4
+ Found item [hrStorageIndex='5'] index: 5
+ Executing script query '/usr/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 192.168.1.1 22 2:161:500:1:10:community:::::: query description'
+ Found item [hrStorageDescr=''] index: 1
+ Found item [hrStorageDescr=''] index: 2
+ Found item [hrStorageDescr=''] index: 3
+ Found item [hrStorageDescr=''] index: 4
+ Found item [hrStorageDescr=''] index: 5
+ Executing script query '/usr/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 192.168.1.1 22 2:161:500:1:10:community:::::: query sau'
+ Found item [hrStorageAllocationUnits=''] index: 1
+ Found item [hrStorageAllocationUnits=''] index: 2
+ Found item [hrStorageAllocationUnits=''] index: 3
+ Found item [hrStorageAllocationUnits=''] index: 4
+ Found item [hrStorageAllocationUnits=''] index: 5
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
Code: Select all
$ snmpwalk -v 2c -c comm server2008 |grep hrStorage
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRemovableDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: A:\
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: C:\
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: F:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: I:\
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Physical Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 15359999
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 1234796031
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 106735103
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 163826
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 65507
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 5717833
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 790592608
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 91089001
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 52489
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 42914
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.3 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.4 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.5 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.6 = Counter32: 0
Similar server with Windows 2003R2
Code: Select all
$ snmpwalk -v 2c -c comm server2003 |grep hrStorage
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageIndex.8 = INTEGER: 8
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageCompactDisc
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.8 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: C:\
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: D:\
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: F:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: G:\
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: I:\
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: J:\
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Physical Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 512 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 8192 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 8192 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.8 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 76501529
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 13105015
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 62121346
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 134216042
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 134217046
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 127174
HOST-RESOURCES-MIB::hrStorageSize.8 = INTEGER: 63477
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 8085900
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 16950
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 32456669
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 103222458
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 113166592
HOST-RESOURCES-MIB::hrStorageUsed.7 = INTEGER: 8345
HOST-RESOURCES-MIB::hrStorageUsed.8 = INTEGER: 11610
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.3 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.4 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.5 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.6 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.7 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.8 = Counter32: 0