From 19961cc5b695767345906bfa730e50eaf962c820 Mon Sep 17 00:00:00 2001 From: ni-red <99717688+ni-red@users.noreply.github.com> Date: Fri, 18 Feb 2022 14:02:02 +0100 Subject: [PATCH] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c332949..64d0b62 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,15 @@ This Plugin is a fork of the existing JSON Plugin from https://github.com/c-kr/c Performance data is also enhanced to extract performance data compliant to Nagios and Graphite standards. One attribute is selected for thresholds check, multiple others can be added for extracting performance data. This plugin is aimed at simplifying Nagios, Icinga & Icinga2 polling of JSON status APIs. -It is now also possible to compare with regex. +Comparing with regular expression is supported. +Expected values for OK and WARNING status. + +Custom headers can be added. +Syntax for -H: key1:value1#key2:value2#key3:value3... Usage: ``` -check_json -u|--url -a|--attribute [ -c|--critical ] [ -w|--warning ] [ -p|--perfvars ] [ -o|--outputvars ] [ -t|--timeout ] [ -d|--divisor ] [ -T|--contenttype ] [ --ignoressl ] [ -h|--help ] +check_json -u|--url -a|--attribute [ -c|--critical ] [ -w|--warning ] [ -p|--perfvars ] [ -o|--outputvars ] [ -e|--expect ] [ -W|--warningstr ] [ -t|--timeout ] [ -d|--divisor ] [ -H|--headers ][ -T|--contenttype ] [ --ignoressl ] [ -h|--help ] ``` Example: