1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-22 18:33:45 +01:00
This commit is contained in:
Páll Guðjón Sigurðsson 2010-05-31 14:43:24 +00:00
parent e2d9f6e73c
commit 88787eda36

View File

@ -325,7 +325,7 @@ strInfo=""
Set colWMI = objWMIService.ExecQuery("Select * from Win32_PerfRawData_PerfDisk_LogicalDisk") Set colWMI = objWMIService.ExecQuery("Select * from Win32_PerfRawData_PerfDisk_LogicalDisk")
for Each objWMI In colWMI for Each objWMI In colWMI
strOut = strOut & objWMI.Name & ", " strOut = strOut & objWMI.Name & ", "
strPerfdata = strPerfdata & "'disk_read_" & objWMI.Name & "'=" & objWMI.DiskReadBytesPerSec & " " & "'disk_write_" & objWMI.Name & "'=" & objWMI.DiskWriteBytesPerSec & " " strPerfdata = strPerfdata & "'disk_read_" & objWMI.Name & "'=" & objWMI.DiskReadBytesPerSec & " " & "'disk_write_" & objWMI.Name & "'=" & objWMI.DiskWriteBytesPerSec & " " & "'disk_queue_" & objWMI.Name & "'=" & objWMI.CurrentDiskQueueLength & " "
next next
strResultTemp = "; Logical Disks: " & strOut & " | " & strPerfdata strResultTemp = "; Logical Disks: " & strOut & " | " & strPerfdata
Exit Function Exit Function