Problem with OPmanager 8 Build 8723 and HPUX 11.31
I have a server with Hpux 11.31 and i monitoring this server, cpu monitor and disk monitor works fine, but memory monitor always shown in 0%, my actual script in HostResource.xml is:
<CATEGORY ID="Memory Utilization" command="Total=`cat /var/adm/syslog/syslog.log | awk '/Physical/ {print $7}'`;Free=`/usr/bin/vmstat 1 3 | awk -v cmd=0 '{for (i=0;i<=NF;i++) if ($i == "free") cmd=i;} {print $cmd}'| tail -1`;echo "scale=3; ((($Total-($Free*4))/$Total)*100)" | bc" description="Percentage of Physical Memory." parseAll="false">
<ENTITY ID="PhysicalMemUtilization" applyThresholdOver="curValue" comparePreValue="false" storeHistory="true" storeValue="curValue" threshold="Th6" units="%">
<PARSE line="1" name="curValue" token="1"/>
</ENTITY>
</CATEGORY>
thx for help
Regards.
New to ADSelfService Plus?