[Xymon] Support for ZFS?

Novosielski, Ryan novosirj at ca.rutgers.edu
Fri Mar 14 02:59:07 CET 2014


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


----- Original Message -----
From: Lists [mailto:lists at benjamindsmith.com]
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
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon




More information about the Xymon mailing list