[Xymon] update to AIX client script

Stef Coene stef.coene at docum.org
Thu Oct 23 21:59:00 CEST 2014


Hi,

In the older version of the AIX client script, the df command was modified so 
it uses the filtered output of the mount command to only include local 
filesystems.  This is removed in the newer client.

This is the modified script (sorry for the line breaks, but the mount command 
is the modified part of the script):

echo "[df]"
# The sed stuff is to make sure lines are not split into two.
df -Ik `mount | awk '$3~/jfs/ {printf $2 " "}'` | sed -e '/^[^   ][^   ]*$/{
N
s/[   ]*\n[    ]*/ /
}'

echo "[inode]"
/usr/sysv/bin/df -i `mount | awk '$3~/jfs/ {printf $2 " "}'` | sed -e 's!Mount 
Dir!Mount_Dir!' | awk '
NR<2 { printf "%-20s %10s %10s %10s %10s %s\n", $2, $5, $3, $4, $6, "Mounted 
on" }
NR>=2 && $5>0 { printf "%-20s %10d %10d %10d %10s %s\n", $2, $5, $3, $4, $6, 
$1}
'





More information about the Xymon mailing list