Sha256: eb65284e1fef710e8bfe0740be14b8b3bdfe9a2b287f333c396dbd04334d0732
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
Feature: Check ZFS In order to be 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 I could run `zpool list -H -o name,health` 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: """ ZFS <output> """ Examples: | rpool | tank | tank2 | exit | output | | 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 | Scenario: Missing zpool command Given I could run `zpool list -H -o name,health` with exit status 127 and stderr: """ command not found: zpool list -H -o name,health """ When I run `check_zfs` Then the exit status should be 3 And the stdout should contain "ZFS UNKNOWN: command not found: zpool"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
check_zfs-0.2.1 | features/check_zfs.feature |
check_zfs-0.2.0 | features/check_zfs.feature |
check_zfs-0.1.1 | features/check_zfs.feature |
check_zfs-0.1.0 | features/check_zfs.feature |