1
0
mirror of https://github.com/c-kr/check_json.git synced 2024-11-23 19:03:49 +01:00
Commit Graph

44 Commits

Author SHA1 Message Date
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
Christopher Kreft
c24e265ccc Merge pull request #18 from AlanHodgson/master
Changes needed to make it work at all in my environment
2016-03-14 13:46:24 +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
2f510a9b3b fix icingaexchange.yml 2015-11-28 17:56:25 +01:00
Christopher Kreft
43657c9cf0 icingaexchange.yml 2015-11-28 17:49:41 +01:00
Christopher Kreft
0c7e39bb3b fixes #17 2015-11-28 17:34:16 +01:00
Christopher Kreft
7f9cb10fbc Merge pull request #15 from MTN-RowinAndruscavage/patch-1
Update README.md
2015-08-27 13:00:46 +02:00
Rowin Andruscavage
478993ff7f Update README.md
additional package requirements not installed by default on ubuntu
2015-08-26 14:38:28 -07:00
Christopher Kreft
c89b04a799 Merge pull request #14 from davidmat/master
Enable proxy support
2015-07-14 10:09:36 +02:00
David Mat
6a395d0ea8 Merge pull request #1 from davidmat/davidmat-proxy-support
Enable proxy support for the HTTP(S) request
2015-07-14 09:26:05 +02: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
Christopher Kreft
125e30842f Merge pull request #13 from worldcitizen/master
Added a boolean test option. For json variables with true/false. In this case -w en -c  true/false as well as 0/1 can be used.
2015-04-29 09:47:07 +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
Christopher Kreft
8290ad203b Merge pull request #10 from locutus304/master
Update check_json.pl
2014-12-11 17:49:13 +01: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
Christopher Kreft
b327672da1 Merge pull request #9 from Graham42/master
Fix for perl 5.8.8
2014-11-05 18:12:49 +01: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
f7850203b8 Merge pull request #1 from PeerJ/AddExpect
add expect
2014-05-16 16:40:09 +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
326f1c8af9 Fixed readme 2014-05-06 14:44:37 +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
Christopher Kreft
1cd13015dc Merge pull request #5 from rodo/master
Add option -T|contenttype to specify alternative content-type
2014-05-06 13:35:42 +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
Christopher Kreft
422dac69d2 Merge pull request #3 from bensinober/master
Improvements made by bensinober
2014-01-24 01:38:57 -08: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
Christopher Kreft
787ade934c Merge pull request #1 from denisu/master
Add Accept Header (application/json)
2013-06-26 05:33:55 -07: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
1f4757d1dc Used markdown for readme 2013-04-28 20:07:27 +03:00
Christopher Kreft
f87e43e151 fixed broken readme 2013-04-28 19:00:36 +02:00
Christopher Kreft
04a60b603a initial commit 2013-04-28 18:39:35 +02:00
c-kr
14afb9664f Initial commit 2013-04-28 09:23:25 -07:00