Xymon and /media mounts

by bitznbitez

Xymon [ formerly hobbit formerly big brother ] is a handy monitoring tool for linux and unix systems.    Out of the box, at least on the version of Ubuntu one of the clients we run, DVDs mounted as /media/* show up as 100% full.   This in turn causes a red alert.

Solution :  Modify /usr/lib/hobbit/client/bin/hobbitclient-linux.sh and append “-x udf” by adding this line

EXCLUDES="${EXCLUDES} -x udf "

The section looks like this when finished.

echo "[df]"
if test -f /proc/filesystems ; then # Linux
    EXCLUDES=`cat /proc/filesystems | grep nodev | grep -v tmpfs | awk '{print $2}' | xargs echo | sed -e 's! ! -x !g'`
    EXCLUDES="${EXCLUDES} -x udf "
else # kfreebsd (or /proc not mounted)
    EXCLUDES=`mount | grep -v '^/' | grep -v tmpfs | awk '{print $1}' | xargs echo | sed -e 's! ! -x !g'`
fi

There may be better ways of doing this, but this is the method I used.

Advertisements