diff --git a/README.md b/README.md index 14b7d76..a1216f7 100644 --- a/README.md +++ b/README.md @@ -3,28 +3,11 @@ check_json Nagios plugin to check JSON attributes via http(s). -This Plugin is a fork of the existing JSON Plugin from https://github.com/bbuchalter/check_json with the enhancements of using the Nagis::Plugins Perl Module, allowing to use thresholds and performancedata collection from various json attributes. +This Plugin is a fork of the existing JSON Plugin from https://github.com/bbuchalter/check_json with the enhancements of using the Nagios::Plugin Perl Module, allowing to use thresholds and performancedata collection from various json attributes. -Usage: check_json [ -v|--verbose ] [-U ] [-t ] [ -c|--critical ] [ -w|--warning ] [ -a | --attribute ] - - -?, --usage - Print usage information - -h, --help - Print detailed help screen - -V, --version - Print version information - --extra-opts=[section][@file] - Read options from an ini file. See http://nagiosplugins.org/extra-opts - for usage and examples. - -U, --URL http://192.168.5.10:9332/local_stats - -a, --attribute {shares}->{dead} - -w, --warning INTEGER:INTEGER . See http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT for the threshold format. - -c, --critical INTEGER:INTEGER . See http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT for the threshold format. - -t, --timeout=INTEGER - Seconds before plugin times out (default: 15) - -v, --verbose - Show details for command-line debugging (can repeat up to 3 times) +Usage: check_json -U -a [ -v|--verbose ] [-t ] [ -c|--critical ] [ -w|--warning ] Example: -check_json.pl -U http://192.168.5.10:9332/local_stats -a '{shares}->{dead}' -w :5 -c :10 +check_json.pl -U http://192.168.5.10:9332/local_stats -a '{shares}->{dead}' -w :5 -c :10 +JSON OK - 2 | value=2;;