Xymon Mailing List Archive search

ZFS Monitoring Script

list Greg Shea
Thu, 12 Apr 2007 11:32:34 -0400
Message-Id: <user-e7765d54cf1d@xymon.invalid>

Hi,

Here's some output from one of my Sol10 boxes running ZFS.
Don't quote me but I think the filesystems are carved up from
the ZFS pools.

-Grs-
Gregory R Shea
EMC Corporation


[hobbit at solaris10 ]$ df -n -l
/                  : ufs
/devices           : devfs
/system/contract   : ctfs
/proc              : proc
/etc/mnttab        : mntfs
/etc/svc/volatile  : tmpfs
/system/object     : objfs
/dev/fd            : fd
/tmp               : tmpfs
/var/run           : tmpfs
/data              : zfs
/data/docp1        : zfs
/data/docp1/dctm   : zfs
/data/docp1/dctm/data: zfs

[hobbit at solaris10 ]$ /usr/sbin/zpool list -H
node_apps       123M    6.83M   116M    5%      ONLINE  -
ofcdocp1        7.94G   86K     7.94G   0%      ONLINE  -
ofcdocp1_data   398G    86K     398G    0%      ONLINE  -
ofcdocp1_doc    99.5G   88K     99.5G   0%      ONLINE  -

[hobbit at solaris10 ]$ df -lk
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/emcpower2a  12392428 4946137 7198443    41%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 6953160    1280 6951880     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
fd                         0       0       0     0%    /dev/fd
swap                 6951992     112 6951880     1%    /tmp
swap                 6951928      48 6951880     1%    /var/run
node_apps              93184    6911   86204     8%    /data
ofcdocp1             8193024      25 8192941     1%    /data/docp1
ofcdocp1_doc         102703104      26 102703019     1%
/data/docp1/dctm
ofcdocp1_data        410812416      24 410812333     1%
/data/docp1/dctm/data
 

-----Original Message-----
From: Rich Smrcina [mailto:user-cf452ff334e0@xymon.invalid] 
Sent: Thursday, April 12, 2007 11:13 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] ZFS Monitoring Script

I concur, unless there's something specific that ZFS provides that is 
critical to monitor.  This way the back end client code will be similar 
to (or the same as) that for Linux.

Charles Goyard wrote:
Hi,

Mike Rowell wrote :
File system sizes are set to alert yellow at 80% capacity and red at
90%, the variables to alter this are at the top of the file.
I don't know about ZFS, but are these the same kind of values "du"
reports ? If so, maybe it's a duplicate, or maybe you should format
the
output the way "disk" does.

Just a question/suggestion.

Regards,
-- 
Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2007 - Green Bay, WI - May 18-22, 2007