I'm using the wmi.php script from somewhere on these forums (sorry, I can dig out the info if needed) and seem to be having some problems with the numbers received.
I have one script for LogicalDisk stats, and one for PhysicalDisk stats. The logical one is fine, and prints nice numbers for queues and iops. The physical one shows huge (really!) numbers.
Here's an example on one of my DC's:
the Logical Disk data source executes this PHP:
Code: Select all
/usr/bin/php -q /usr/share/cacti-0.8.7d/scripts/wmi.php
-h '192.168.1.201'
-u '/etc/cacti/cactiwmi.pw'
-w 'Win32_PerfRawData_PerfDisk_LogicalDisk'
-k 'Name'
-v 'C:'
-c 'DiskWritesPersec,DiskWriteBytesPersec,DiskReadsPersec,DiskReadBytesPersec,CurrentDiskQueueLength'
Code: Select all
output:
CurrentDiskQueueLength:0
DiskReadBytesPersec:60407738368
DiskReadsPersec:1773664
DiskWriteBytesPersec:265465877504
DiskWritesPersec:12907286
the Physical Disk data source executes this PHP:
Code: Select all
/usr/bin/php -q /usr/share/cacti-0.8.7d/scripts/wmi.php
-h '192.168.1.201'
-u '/etc/cacti/cactiwmi.pw'
-w 'Win32_PerfRawData_PerfDisk_PhysicalDisk'
-k 'Name'
-v '0 C: D:'
-c 'DiskWritesPersec,DiskReadsPersec,AvgDiskReadQueueLength,AvgDiskWriteQueueLength'
Code: Select all
output:
AvgDiskReadQueueLength:76468935000
AvgDiskWriteQueueLength:108384954000
DiskReadsPersec:1778786
DiskWritesPersec:13555491
Name:0
The graph then looks like this:
I'm stumped.