diff --git a/README b/README index e3b0871..d07c1c7 100644 --- a/README +++ b/README @@ -7,6 +7,5 @@ Optionally verify content is found using data file. USAGE: check_http_json.pl -U http://my.url.com -d sample.data -U URL to retrieve (http or https) --d absolute path to data file containing hash to find with JSON response --t Timeout in seconds to wait for the URL to load. If the page fails to load, - Nagios check_http_json will exit with UNKNOWN state (default 60) +-d absolute path to data file containing hash to find with JSON response (optional) +-t Timeout in seconds to wait for the URL to load. If the page fails to load, will exit with UNKNOWN state (default 60) diff --git a/check_json.pl b/check_json.pl index f80df30..3f81ddd 100755 --- a/check_json.pl +++ b/check_json.pl @@ -105,12 +105,11 @@ sub HELP_MESSAGE --help shows this message --version shows version information - USAGE: $0 -U http://my.url.com -d sample.data + USAGE: $0 -U http://my.url.com [-d sample.data] -U URL to retrieve (http or https) - -d absolute path to data file containing hash to find with JSON response - -t Timeout in seconds to wait for the URL to load. If the page fails to load, - $plugin_name will exit with UNKNOWN state (default 60) + -d absolute path to data file containing hash to find with JSON response (optional) + -t Timeout in seconds to wait for the URL to load (default 60) EOHELP ;