[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] ZFS Monitoring Script



T.J. Yang wrote:
As promised, here is hb client zfs wiki notes.

http://en.wikibooks.org/wiki/System_Monitoring_with_Hobbit/HOWTO#Hobbit_Client_and_ZFS_monitoring

It is not done yet, I haven't able to see the zfs column on hb server.

T.J. Yang





From: "Mike Rowell" <Mike.Rowell (at) Rightmove.co.uk>
Reply-To: hobbit (at) hswn.dk
To: <hobbit (at) hswn.dk>
Subject: RE: [hobbit] ZFS Monitoring Script
Date: Thu, 12 Apr 2007 16:13:43 +0100

Sorry made a typo when trying some new functionality, working version
attached.



Mike



________________________________

From: Mike Rowell [mailto:Mike.Rowell (at) Rightmove.co.uk]
Sent: 12 April 2007 15:15
To: hobbit (at) hswn.dk
Subject: [hobbit] ZFS Monitoring Script



Okay here it is, it's small but does the following.



File system HEALTH.



ONLINE = green

DEGRADED = yellow

FAULTED = red



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.  It doesn't
check scrub status as yet as I'm not to sure what the scrub will report
back, so once I've got some scrubbing underway I'll adjust the script to
take into account scrubbing.



This was something I threw together in 15minutes as we just realized
that UFS would not suit the requirements of a project and therefore we
had to move to ZFS.  Enhancements I'm working on are to display all the
storage devices in the pools and their health and also read / write and
checksum errors, but they will have to wait for a bit.


<< zfs_stat.sh >>
Let's not forget about The Shire folks...http://www.trantor.org/theshire/doku.php/faq has a template you can send to the developers list on the Shire...

=G=