However, when I tried changing the plugin from PerfMon to UsageMonitor nothing works the way it should. All the drives mimic the Disk0 (C:) activity. The new code follows but from what I can understand the UsageMonitor gets its data from the PerfMon app and yet the manual says to use different terminology to access the counters.
By the way, M and P are partitions on the same physical drive.
On a side note, you recommend not using special characters in variable names. Not even an underscore (_)? Is there a better way of indicating sub groups of a variable instead of making it a single word? For instance, instead of #Color0#, #Color1#, etc., have #Color_0#, #Color_1#?
Code: Select all
Disk0=C:
Disk1=M:
Disk2=D:
Disk3=G:
Disk4=P:
[MeasureDisk1Percent]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=% Disk Time
Instance=#Disk1#
[MeasureDisk1Read]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Reads/sec
Instance=#Disk1#
[MeasureDisk1Write]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Writes/sec
Instance=#Disk1#
IfConditionMode=1
IfCondition=((MeasureDisk1Read = 0)&&(MeasureDisk1Write = 0))
IfTrueAction=[!SetVariable Disk1Color 0]
IfCondition2=((MeasureDisk1Read > 0)&&(MeasureDisk1Write = 0))
IfTrueAction2=[!SetVariable Disk1Color 1]
IfCondition3=((MeasureDisk1Read = 0)&&(MeasureDisk1Write > 0))
IfTrueAction3=[!SetVariable Disk1Color 2]
IfCondition4=((MeasureDisk1Read > 0)&&(MeasureDisk1Write > 0))
IfTrueAction4=[!SetVariable Disk1Color 3]
[MeasureDisk4Percent]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=% Disk Time
Instance=#Disk4#
[MeasureDisk4Read]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Reads/sec
Instance=#Disk4#
[MeasureDisk4Write]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Writes/sec
Instance=#Disk4#
IfConditionMode=1
IfCondition=((MeasureDisk4Read = 0)&&(MeasureDisk4Write = 0))
IfTrueAction=[!SetVariable Disk4Color 0]
IfCondition2=((MeasureDisk4Read > 0)&&(MeasureDisk4Write = 0))
IfTrueAction2=[!SetVariable Disk4Color 1]
IfCondition3=((MeasureDisk4Read = 0)&&(MeasureDisk4Write > 0))
IfTrueAction3=[!SetVariable Disk4Color 2]
IfCondition4=((MeasureDisk4Read > 0)&&(MeasureDisk4Write > 0))
IfTrueAction4=[!SetVariable Disk4Color 3]
[MeterStorage1Activity]
Meter=Roundline
Container=MeterStorage1Container
MeasureName=MeasureDisk1Percent
MeterStyle=styleSystemActivityGraph
LineColor=[#ActivityColor:[#Disk1Color]]
Y=(#StoragePieGraph:Y# + 1)
DynamicVariables=1
[MeterStorage4Activity]
Meter=Roundline
Container=MeterStorage4Container
MeasureName=MeasureDisk4Percent
MeterStyle=styleSystemActivityGraph
LineColor=[#ActivityColor:[#Disk4Color]]
Y=(#StoragePieGraph:Y# + 1)
DynamicVariables=1