1
0
mirror of https://github.com/c-kr/check_json.git synced 2024-11-23 10:53:47 +01:00
Go to file
Christopher Kreft 787ade934c Merge pull request #1 from denisu/master
Add Accept Header (application/json)
2013-06-26 05:33:55 -07:00
check_json.pl Added Accept application/json 2013-06-26 20:06:21 +09:00
README.md Used markdown for readme 2013-04-28 20:07:27 +03:00

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 Nagios::Plugin Perl Module, allowing to use thresholds and performancedata collection from various json attributes.

Usage: check_json -U <URL> -a <attribute> [ -v|--verbose ] [-t <timeout>] [ -c|--critical <threshold> ] [ -w|--warning <threshold> ]

Example:

check_json.pl -U http://192.168.5.10:9332/local_stats -a '{shares}->{dead}' -w :5 -c :10

JSON OK - 2 | value=2;;