101 |
|
double checkValue; |
102 |
|
String type; |
103 |
|
if(useValue) { |
104 |
< |
// kb disk in use |
104 |
> |
// queue count |
105 |
|
checkValue = qSize; |
106 |
|
type = "count"; |
107 |
|
} else { |
108 |
< |
// % disk in use |
108 |
> |
// % of queue |
109 |
|
checkValue = (qSize / qMax) * 100; |
110 |
|
type = "%"; |
111 |
|
} |
119 |
|
String strCheckValue = nf.format(checkValue); |
120 |
|
|
121 |
|
// say which disk had the problem |
122 |
< |
String attributeName = "Size of queue " + type + " in " + queueName; |
122 |
> |
String attributeName = "Size of queue " + type + " in " + queueName + " " + dataKey.substring(dataKey.lastIndexOf('.')); |
123 |
|
|
124 |
|
processAlert(newThreshold, attributeName, reg, SOURCE, strCheckValue); |
125 |
|
|