Sha256: e9607d493f4533dce69091101226ccd23282e4d7a779bb969b239a8ed364f4fa

Contents?: true

Size: 808 Bytes

Versions: 1

Compression:

Stored size: 808 Bytes

Contents

Feature: Check ZFS

	In order to notified before it's to late
	As an agile System-Administrator
	I want the health of my ZFS pools monitored with Nagios by check_zfs

	Scenario Outline: Exit status and stdout
		Given a double of "zpool" with stdout:
			"""
			rpool	<rpool>
			tank	<tank>
			tank2	<tank2>
			"""
		When I run `check_zfs`
		Then the exit status should be <exit>
		And the stdout should contain exactly:
			"""
			<stdout>
		
			"""
			
		Examples:
		 | rpool  | tank     | tank2   | exit | stdout                                    |
		 | ONLINE | ONLINE   | ONLINE  | 0    | OK: 3 ONLINE                              |
		 | ONLINE | DEGRADED | ONLINE  | 1    | Warning: 1 DEGRADED, 2 ONLINE             |
		 | ONLINE | DEGRADED | FAULTED | 2    | Critical: 1 FAULTED, 1 DEGRADED, 1 ONLINE |

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
check_zfs-0.0.1 features/check_zfs.feature