Disk Utilization % - correction
Hi,
I have found a code mistake in file HostResource.xml. Using original one delivered with the OpManager 5.6 Disk Utilization % was always 0!!! The problem was in the following part of the xml code:
<CATEGORY ID="Disk Utilization" command="/usr/bin/df -F ufs -k | awk '{x+=$2}{y+=$3}{z+=$4}END{print x,y,z}'" parseAll="false" description="Percentage of Utilization on the disk.">
<ENTITY ID="DiskUtilization" applyThresholdOver="curValue" threshold="Th6" storeHistory="true" units="%" storeValue="((used*100)/curValue)" comparePreValue="false">
<PARSE line="1" token="1" name="curValue"/>
<PARSE line="1" token="2" name="used"/>
</ENTITY>
</CATEGORY>
These bold values are correct one. Using command above, you get only one line as result, so the arguments for the PARSE line should be 1 not 2. This is related to Solaris.
I hope you are going to correct this in future releases! ;-)
Best Regards,
Ivo
New to ADSelfService Plus?