Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 4bf9790b authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent bf289428
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/curl-0.3.0-20240623.mkp "curl-0.3.0-20240623.mkp"
[PACKAGE]: ../../raw/master/mkp/curl-0.3.1-20241123.mkp "curl-0.3.1-20241123.mkp"
[EXECUTABLE]: ../../raw/master/mkp/curl_executable-20220410.v7.82.0.mkp "curl_executable-20220410.v7.82.0.mkp"
# cURL agent plugin for Linux and Windows
......
File added
......@@ -31,6 +31,7 @@
# 2023-06-07: moved gui files to ~/local/lib/chek_mk/gui/plugins/...
# 2024-06-23: modified imports for cmk 2.3
# removed work around for render negative timespan
# 2024-11-23: fixed http_error_code_to_ignore and curl_error_code_to_ignore not working (compare int with str)
# Example output from agent:
#
......@@ -315,7 +316,7 @@ def check_curl(item, params, section: Dict[str, Any]) -> CheckResult:
yield Result(state=State.OK, notice=f'{label}: {value}')
if curl_error_code != 0:
if curl_error_code in params['curl_error_code_to_ignore']:
if str(curl_error_code) in params['curl_error_code_to_ignore']:
yield Result(
state=State.OK,
notice=f'curl error code: {curl_error_code}, {_curl_error_codes.get(curl_error_code, "N/A")}')
......@@ -329,7 +330,7 @@ def check_curl(item, params, section: Dict[str, Any]) -> CheckResult:
if http_return_code < 400: # no connect, Ok, Redirect
yield Result(state=State.OK, notice=f'HTTP Return code: {http_return_code}')
else:
if http_return_code in params['http_error_code_to_ignore']:
if str(http_return_code) in params['http_error_code_to_ignore']:
yield Result(
state=State.OK, notice=f'HTTP Return code: {http_return_code}'
)
......
......@@ -28,7 +28,7 @@
'lib': ['python3/cmk/base/cee/plugins/bakery/curl.py']},
'name': 'curl',
'title': 'cURL agent plugin',
'version': '0.3.0-20240623',
'version': '0.3.1-20241123',
'version.min_required': '2.3.0b1',
'version.packaged': 'cmk-mkp-tool 0.2.0',
'version.usable_until': '2.4.0b1'}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment