mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2026-02-12 01:51:01 +01:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3ac06864d | ||
|
|
63542f3226 | ||
|
|
cdb2474ee0 | ||
|
|
2821a1ae66 | ||
|
|
831bfdf97b | ||
|
|
f612277772 | ||
|
|
1f440e0ff5 |
@@ -210,7 +210,7 @@ More info about Nagios Range format and Units of Measure can be found at [https:
|
|||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
* Python 3
|
* Python 3.6+
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ class JsonHelper:
|
|||||||
(Element.Key.NestedKey). Returns (None, 'not_found') if not found
|
(Element.Key.NestedKey). Returns (None, 'not_found') if not found
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if temp_data:
|
if temp_data != '':
|
||||||
data = temp_data
|
data = temp_data
|
||||||
else:
|
else:
|
||||||
data = self.data
|
data = self.data
|
||||||
@@ -550,6 +550,7 @@ def main(cliargs):
|
|||||||
context.verify_mode = ssl.CERT_NONE
|
context.verify_mode = ssl.CERT_NONE
|
||||||
else:
|
else:
|
||||||
context.verify_mode = ssl.CERT_OPTIONAL
|
context.verify_mode = ssl.CERT_OPTIONAL
|
||||||
|
context.load_default_certs()
|
||||||
if args.cacert:
|
if args.cacert:
|
||||||
try:
|
try:
|
||||||
context.load_verify_locations(args.cacert)
|
context.load_verify_locations(args.cacert)
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ object CheckCommand "http_json" {
|
|||||||
value = "$http_json_key_not_equals_critical$"
|
value = "$http_json_key_not_equals_critical$"
|
||||||
description = "Checks equality of these keys and values (key[>alias],value key2,value2) to determine status. Multiple key values can be delimited with colon (key,value1:value2). Return critical if equality check succeeds."
|
description = "Checks equality of these keys and values (key[>alias],value key2,value2) to determine status. Multiple key values can be delimited with colon (key,value1:value2). Return critical if equality check succeeds."
|
||||||
}
|
}
|
||||||
"--key_metrics" = {
|
"--key_metric" = {
|
||||||
value = "$http_json_key_metrics$"
|
value = "$http_json_key_metric$"
|
||||||
description = "Gathers the values of these keys"
|
description = "Gathers the values of these keys"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user