Skip to content

Commit

Permalink
Merge pull request #38 from Max-AR/master
Browse files Browse the repository at this point in the history
Added usages to README
  • Loading branch information
cwjohnston committed Jun 24, 2016
2 parents efbb7c0 + d9ff15e commit abbc027
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -22,6 +22,12 @@
* bin/metrics-memory.rb

## Usage
Use `-h` flag on any command to see available usages, `-w` to set warning threshold `-c` to set critical threshold and `-p` to print out performance data.
* `/opt/sensu/embedded/bin/check-memory.rb -w 2500 -c 3000` - Values in Megabytes
* `/opt/sensu/embedded/bin/check-memory-percent.rb -w 70 -c 80` - Values in Percentages
* `/opt/sensu/embedded/bin/check-swap.rb -w 2500 -c 3000` - Values in Megabytes
* `/opt/sensu/embedded/bin/check-swap-percent.rb -w 70 -c 80` - Values in Percentages
* `/opt/sensu/embedded/bin/metrics-memory.rb -s FooBar` - So metrics are now prepended with foobar, default is machine hostname.

## Installation

Expand Down

0 comments on commit abbc027

Please sign in to comment.