-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Though it could use improvement, this feature is working.) The "zpool nagios" command behaves as a Nagios plugin - output a single line of status information to stdout and exit with a status code (0=OK, 1=Warning, 2=Critical, 3=Unknown). There are a few cases that could use improvement for multi-pool systems, and not all failure scenarios are tested, but it's certainly a step in the right direction. TODO: * Specify pools which must be present on the system * Additional testing. I don't have a lot of broken pools to mess with. * Deadman timer of sorts in case ioctls hang
- Loading branch information
Showing
4 changed files
with
821 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.