CMK version:1.6.0
OS version:AIX
Error message:none
Hello,
I fixed today an issues with the AIX agent when a NFS share is hard mounted and becomes stale.
Agent hangs in section<<<df>>> because of command df -kP and df process remains in background after agent communication is killed by timeout.
I replaced the command with df -kp -T local which fixed that. df command didnt take care about any remote FS anymore.
At least on our AIX servers are no stat command installed and because of that the section <<<nfsmounts>>> was not executed by the agent.
I replaced the code in the agent with the following lines and it works for out of the box for now:
echo '<<<nfsmounts>>>'
mount | grep ' nfs' | awk '{print $3;}' | \
while read MP
do
waitmax 1 df -k ${MP} > /dev/null 2>&1
if [ "$?" -eq 0 ]; then
df -k ${MP} | sed 1d | awk '{print "'$MP' ok",$2,$3,$3,"1024";}'
else
echo "${MP} hanging 0 0 0 0"
fi
done
AIX OS is not so commonly used but maybe one finds it useful.
We run big DB2 instances and also SAP Application Server on AIX and I was asked to monitor NFS share used by SAP to transfer data.
regards
Michael