1
0
mirror of https://github.com/c-kr/check_json.git synced 2024-11-27 04:43:49 +01:00

fixed broken readme

This commit is contained in:
Christopher Kreft 2013-04-28 19:00:36 +02:00
parent 04a60b603a
commit f87e43e151

View File

@ -3,28 +3,11 @@ check_json
Nagios plugin to check JSON attributes via http(s). 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 <URL>] [-t <timeout>] [ -c|--critical <threshold> ] [ -w|--warning <threshold> ] [ -a | --attribute ] <attribute> Usage: check_json -U <URL> -a <attribute> [ -v|--verbose ] [-t <timeout>] [ -c|--critical <threshold> ] [ -w|--warning <threshold> ]
-?, --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)
Example: 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;;