Low commit activity in last 3 years
No release in over a year
Sensu plugin for zfs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 2.1
~> 0.10
~> 13.0
~> 3.2
~> 3.4
~> 0.80.1
~> 0.8

Runtime

>= 4.0, < 5.0
 Project Readme

SensuPluginsZFS

Sensu plugin for zfs health checks.

Build Status Gem Version Dependency Status Community Slack

Checks

check-zpool.rb

This checks does the following checks against one or more zpools.

  • Check state
  • Check vdev errors
  • Check capacity
  • Check that a scrub has been run recently

The following flags can be used to configure the checks.

  • -z, --zpool What zpool to check. If omitted, we check all zpools.
  • -c, --capacity-warn Capacity threshold for when to warn. (default 80)
  • -C, --capacity-crit Capacity threshold for when to crit. (default 90)
  • -s, --scrubbing-interval Warn when it is more than this number of days since last scrub. (default 7)

Metrics

metric-zfs-arc.rb

Reads /proc/spl/kstat/zfs/arcstats for ARC statistics and puts them in a form usable by Graphite.

For more information see ZoL Linux Module Parameters

Installation

Installation and setup

Contributing

At this time ideas for additional checks/metrics would be very much appreciated.

I have a few ideas that would be nice:

  • Check for zpool state
  • Check for vdev errors
  • Check for pool capacity
  • Check that disks have been scrubbed recently
  • Metric for disk utilization

Bug reports and pull requests are welcome on GitHub at https://github.com/sensu-plugins/sensu-plugins-zfs.

License

The gem is available as open source under the terms of the MIT License.