One thing the aix check_mk agent is missing is the memory usage reporting.
So far i am using a local scrip that looks like the following
#!/bin/sh
SWAP_ATM=`lsps -s|tail -1|awk '{print $2}'|sed "s/%//"`
echo '<<<local>>>'
if [ $SWAP_ATM -lt 10 ];then
status=0
statustxt=OK
elif [ $SWAP_ATM -lt 15 ];then
status=1
statustxt=WARNING
else
status=2
statustxt=CRITICAL
fi
echo "$status swap_used swap_atm=$SWAP_ATM;10;15;100 $statustxt -
${SWAP_ATM}% swap used."
USED_MEM=`svmon -G | grep memory | awk '{print $3}'`
TOTAL_MEM=`svmon -G | grep memory | awk '{print $2}'`
USED_PCT=`echo "$USED_MEM*100/$TOTAL_MEM"|bc`
if [ $USED_PCT -lt 80 ];then
status=0
statustxt=OK
elif [ $USED_PCT -lt 90 ];then
status=1
statustxt=WARNING
else
status=2
statustxt=CRITICAL
fi
echo "$status Memory_used Memory_used=$USED_PCT;80;90;100; $statustxt -
${USED_PCT}% Memory used."
Any chance to see native support in the aix agent for the svmon command, or
perhaps there is a better implemented check i could use?
Some reference for the used command is here
http://www.unix.com/aix/217091-howto-analyze-memory-usage-aix-aka-svmon-101-a.html
, in case someone is interested.
_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users