126 |
|
|
127 |
|
boolean useValue = false; |
128 |
|
try { |
129 |
< |
String option = _cp.getProperty("Host." + source, "Monitor." + _name + ".thresholdMeasure"); |
129 |
> |
// try looking for a mount-point specific thresholdMeasure first |
130 |
> |
String option = _cp.getProperty("Host." + source, "Monitor." + _name + "." + mount + ".thresholdMeasure"); |
131 |
|
if (option.equals("VALUE")) { |
132 |
|
useValue = true; |
133 |
< |
} |
133 |
> |
} |
134 |
|
} catch (PropertyNotFoundException e) { |
135 |
< |
// we default to percentage |
135 |
> |
try { |
136 |
> |
// now look for a more general thresholdMeasure |
137 |
> |
String option = _cp.getProperty("Host." + source, "Monitor." + _name + ".thresholdMeasure"); |
138 |
> |
if (option.equals("VALUE")) { |
139 |
> |
useValue = true; |
140 |
> |
} |
141 |
> |
} catch (PropertyNotFoundException f) { |
142 |
> |
// we default to percentage in any case |
143 |
> |
} |
144 |
|
} |
145 |
|
|
146 |
|
// this bit determines if the disk check is a % check |