From c04d012d9f02362640ce4b5040202d2f771d1217 Mon Sep 17 00:00:00 2001 From: Brian Buchalter Date: Sun, 26 Feb 2012 08:50:10 -0400 Subject: [PATCH] Revised help message and README --- README | 5 ++--- check_json.pl | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) 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 ;