Xymon Mailing List Archive search

Support for ZFS?

list Benjamin Smith
Thu, 13 Mar 2014 18:41:00 -0700
Message-Id: <user-cff1bba58357@xymon.invalid>

I sent the below message a few days ago, but sent it to Ryan rather than the list. I'd really like to see if there's a "more righter" way to do this than the somewhat hackish response below.

-Ben

/////////////////

On 03/11/2014 01:36 PM, Novosielski, Ryan wrote:
These things are configured now in $XYMONCLIENT/bin/xymonclient-$OSTYPE.sh.
Thanks for the tip! It appears that this line is the culprit:

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

It produces a bunch of "-x $filetype -x $filetype..." output used as an exclusion for the df command. The output
of this line includes "-x zfs" in the output. Sadly, zfs is marked "nodev" because it isn't mounted on a normal block device! So a quick hack is to change to

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

This is by no means a good idea. Better suggestions? Perhaps it would be a good idea to add a whitelist or something?

Thanks. Ben