Xymon Mailing List Archive search

AIX DF monitoring

list Allan Cano
Wed, 31 Dec 2014 10:59:50 -0600
Message-Id: <CALD8jqfzjG0LrDRQH2KX5zevE549EW=user-4713046abbad@xymon.invalid>

If you change the default [df] in xymonclient-aix.sh to report in megs or
gigs the monitoring will break because a space is added in the block column
'MB blocks' or 'GB blocks'.
To fix the issue and report only on local filesystems id suggest updating
the df command in xymonclient-aix.sh to the following:

# The awk stuff is to make sure we don't get hung on NFS mount by only
looking at local (jfs(2)?) file systems
# The sed stuff is to make sure lines are not split into two.
df -Im `/usr/sbin/lsfs -c | /usr/bin/awk -F: '{if( $3 ~ /jfs/ ){print
$1}}'` | sed -e 's/ blocks/_blocks/' ...


While at it update the inode df to:

# Added -l to report only on local FSs
/usr/sysv/bin/df -il  ...

-- 


Allan Cano
System Administrator 3
IS Operations

Fossil Group
901 S. Central Expwy.
Richardson
TX
XXXXX
United States
www.fossilgroup.com

t: XXX-XXX-XXXX
m: XXX-XXX-XXXX
f: XXX-XXX-XXXX
e: user-9203bc1a557f@xymon.invalid