Xymon Mailing List Archive search

Support for ZFS?

list Ryan Novosielski
Thu, 13 Mar 2014 21:59:07 -0400
Message-Id: <ADFBD4B618944F499D05722136ECD9937FDD1EF478@umdexmbx02>

I actually don't think that's the worst solution. 

----- Original Message -----
From: Lists [mailto:user-bd60c1f964ce@xymon.invalid]
Sent: Thursday, March 13, 2014 09:41 PM
To: xymon at xymon.com <xymon at xymon.com>
Subject: Re: [Xymon] Support for ZFS?

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