Xymon Client side configurations - Hermann99/XYmon-Documentation GitHub Wiki

Xymon client side

Monitoring NFS shares

To inclusde NFS shares we need to update the client script on the client machine to include NFS shares. We have to remove it from the excludes and update the df command to show remote mounts.

# vi /usr/share/xymon-client/bin/xymonclient-linux.sh
#EXCLUDES=`cat /proc/filesystems | grep nodev | grep -v -e '[:space:](/Hermann99/XYmon-Documentation/wiki/:space:)tmpfs' -e rootfs | awk '{print $2}' | xargs echo | sed -e 's! ! -x !g'`
EXCLUDES=`cat /proc/filesystems | grep nodev | grep -v -e '[:space:](/Hermann99/XYmon-Documentation/wiki/:space:)tmpfs' -e rootfs -e '[:space:](/Hermann99/XYmon-Documentation/wiki/:space:)nfs'| awk '{print }' | xargs echo | sed -e 's! ! -x !g'`
ROOTFS=`readlink -m /dev/root`
#df -Pl -x iso9660 -x $EXCLUDES | sed -e '/^[^  ][^     ]*$/{
df -P -x iso9660 -x $EXCLUDES | sed -e '/^[^    ][^     ]*$/{