[Xymon] AIX DF monitoring
Allan Cano
acano at fossil.com
Wed Dec 31 17:59:50 CET 2014
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
75080
United States
www.fossilgroup.com
t: 469-587-3211
m: 469-571-3933
f: 972-238-4909
e: acano at fossil.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20141231/909dfa70/attachment.html>
More information about the Xymon
mailing list