Shaun S
0ce9e7d42e
fix error if warning and/or critical not defined
...
Since warning and critical are not required params, we should check to see if they are defined first before looping over them. Otherwise, we get an error in the output.
2017-05-05 16:20:19 -07:00
Christopher Kreft
2e8e519493
Revert "Fully specify hash reference to find $attribute."
...
This reverts commit f3233fb247
.
2016-08-15 13:40:22 +02:00
Christopher Kreft
3c0e5b5252
Merge pull request #20 from Jimdo/master
...
Add expect
2016-03-23 08:22:31 +01:00
Alan Hodgson
34d7d3a1b0
Fix output and performance output values.
2015-12-16 11:27:40 -08:00
Alan Hodgson
f3233fb247
Fully specify hash reference to find $attribute.
2015-12-16 10:53:38 -08:00
Alan Hodgson
1cf1f9c298
Escape @host in text string.
2015-12-16 10:12:56 -08:00
Christopher Kreft
0c7e39bb3b
fixes #17
2015-11-28 17:34:16 +01:00
David Mat
327a941657
Enable proxy support for the HTTP(S) request
...
The 'env_proxy' option automatically loads proxy settings from *_proxy environment variables, if they are defined. This behaviour is consistent with other tools such as curl, wget, etc.
2015-07-13 18:28:09 +02:00
Joop Boonen
539635607c
Added a boolean test option. For json variables with true/false. In this case -wen -c true/false as well as 0/1 can be used.
2015-04-23 13:47:42 +02:00
Ilya Margolin
b625118e1e
Merge remote-tracking branch 'PeerJ/master'
...
Conflicts:
check_json.pl
2015-04-02 18:56:56 +02:00
locutus304
db0bbef030
Update check_json.pl
...
Added "metadata" option to enable sending additional RESTful request parameters to server.
2014-12-11 10:32:39 -06:00
Graham McGregor
4967a0920b
Fix for perl 5.8.8
...
Change the way $json_response has is referenced. See
https://stackoverflow.com/questions/20824920/perl-array-references-and-avoiding-type-of-arg-1-to-keys-must-be-hash-error
2014-11-05 10:04:56 -05:00
Christopher Kreft
0e6fe91112
version bump to 0.5
2014-09-29 13:34:35 +02:00
Manuel Sousa
045219b9bb
Added support for multiple attribute checks in same call and wildcard output
2014-09-26 18:01:12 +01:00
Patrick McAndrew
f6db970909
add expect
2014-05-16 16:39:08 +01:00
Christopher Kreft
a4529419db
Add new option outputvars to print JSON values in status message by rodo #6
2014-05-12 10:48:30 +02:00
Christopher Kreft
4a7e1ffb56
Added flag --ignoressl to ignore bad ssl certificates and fixed help text
2014-05-06 14:42:58 +02:00
Rodolphe Quiédeville
9d590c2cd1
Add option -T|contenttype to specify alternative content-type if the server does not answer application/json
2014-05-06 13:15:50 +02:00
Benjamin Rokseth
caeedf6435
small fix on divisor on check_value
2014-01-23 23:46:19 +01:00
Benjamin Rokseth
b716491160
added performance stats and cleaned up code
2014-01-23 22:38:12 +01:00
Benjamin Rokseth
33d2c1209a
first draft
2014-01-23 15:54:07 +01:00
mail@denisu.jp
23a7580f2e
Added Accept application/json
...
Some APIs output only cleartext if a correct accept-header is missing.
2013-06-26 20:06:21 +09:00
Christopher Kreft
75942dc27e
fixed threshold output in perfdata
2013-05-01 15:01:23 +02:00
Christopher Kreft
59754e1b8c
Added divisor, fixed help text
2013-04-28 20:30:44 +02:00
Christopher Kreft
45d107edc1
now exit critical on connection error
2013-04-28 20:07:31 +02:00
Christopher Kreft
04a60b603a
initial commit
2013-04-28 18:39:35 +02:00