Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
Updated README and moved dumper.sh to bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
eripa committed Aug 25, 2015
1 parent a56e31b commit e5f1444
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ Tested on:

## Example run

In order to separate privileges and avoid root requirement for check_zfs, the check is split into two steps.

### First, dump data using root privileges and the dumper script

$ bin/check_zfs_dumper.sh

This will create simple text files with status in /tmp (change script if desired). These files will later on be parsed by check_zfs.

This script would presumably be run by crontab every minute or so. Example crontab entry:

* * * * * /root/scripts/nagios-zfs-go/dumper.sh

### Next, run the check_zfs command

A typical example for SmartOS "zones" pool:

$ bin/check_zfs -p zones -w 70 -c 78
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion check_zfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
toolVersion = "0.2.0"
toolVersion = "0.2.1"
)

var zfsPool string
Expand Down

0 comments on commit e5f1444

Please sign in to comment.