[Xymon] xymon client and zfs filesystems (zfs on linux)

Shawn Heisey hobbit at elyograg.org
Wed Nov 2 00:18:19 CET 2016


It seems that when zfsonlinux is included and there are zfs filesystems,
those filesystems are excluded from the disk space reporting done by the
xymon client.

I found a solution, but I would like to know if there's something more
elegant that could be included in the source code.  I found this line in
xymonclient-linux.sh:

EXCLUDES=`cat /proc/filesystems | grep nodev | egrep -v rootfs | awk
'{print $2}' | xargs echo | sed -e 's! ! -x !g'`

This is what I changed it to:

EXCLUDES=`cat /proc/filesystems | grep nodev | egrep -v "rootfs|zfs" |
awk '{print $2}' | xargs echo | sed -e 's! ! -x !g'`

Even though this does work, it feels very much like a hack to me.

I also tried adding the bb-zfs script from xymonton.  This required a
fair amount of customizing, but even after fixing program paths, it
seems that some of the zfs utilities need to be run as root when they're
on Linux, so that doesn't work right.

Thanks,
Shawn



More information about the Xymon mailing list