1
0
mirror of https://github.com/c-kr/check_json.git synced 2024-11-23 10:53:47 +01:00
check_json_fork/README.md

15 lines
587 B
Markdown
Raw Normal View History

2013-04-28 18:23:25 +02:00
check_json
==========
2013-04-28 18:39:35 +02:00
Nagios plugin to check JSON attributes via http(s).
2013-04-28 19:00:36 +02:00
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.
2013-04-28 18:39:35 +02:00
2013-04-28 19:07:27 +02:00
Usage: `check_json -U <URL> -a <attribute> [ -v|--verbose ] [-t <timeout>] [ -c|--critical <threshold> ] [ -w|--warning <threshold> ]`
2013-04-28 18:39:35 +02:00
Example:
2013-04-28 19:07:27 +02:00
`check_json.pl -U http://192.168.5.10:9332/local_stats -a '{shares}->{dead}' -w :5 -c :10`
2013-04-28 19:00:36 +02:00
JSON OK - 2 | value=2;;