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 b9590cbc authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent e083649d
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
# 2022-02-05: fixed missing comment in CVE data (THX to doc[at]snowheaven[dot]de) # 2022-02-05: fixed missing comment in CVE data (THX to doc[at]snowheaven[dot]de)
# 2022-02-07: added state_not_fixed option for per cve plugin # 2022-02-07: added state_not_fixed option for per cve plugin
# 2022-02-14: added files_safe counter # 2022-02-14: added files_safe counter
# 2022-10-24: replace "\n" with "\N" in details output to avoid linebreaks in filenames with "\n" (usually in Windows only)
# #
# sample agent output # sample agent output
...@@ -456,7 +457,7 @@ def check_cve_2021_44228_log4j(params, section: CVE_2021_44228_log4j) -> CheckRe ...@@ -456,7 +457,7 @@ def check_cve_2021_44228_log4j(params, section: CVE_2021_44228_log4j) -> CheckRe
yield Result(state=State(params['state_missing_output']), notice=f'{label} is missing from agent output') yield Result(state=State(params['state_missing_output']), notice=f'{label} is missing from agent output')
yield Result(state=State.OK, notice='\nRaw output of the script and the scanner:') yield Result(state=State.OK, notice='\nRaw output of the script and the scanner:')
yield Result(state=State.OK, notice=section.details) yield Result(state=State.OK, notice=section.details.replace('\\n', '\\N'))
register.agent_section( register.agent_section(
......
No preview for this file type
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
'name': 'cve_2021_44228_log4j', 'name': 'cve_2021_44228_log4j',
'num_files': 9, 'num_files': 9,
'title': 'CVE-2021-44228-log4j scanner plugin', 'title': 'CVE-2021-44228-log4j scanner plugin',
'version': '20220506.v0.1.4a', 'version': '20221130.v0.1.4c',
'version.min_required': '2.0.0', 'version.min_required': '2.0.0',
'version.packaged': '2021.09.20', 'version.packaged': '2021.09.20',
'version.usable_until': None} 'version.usable_until': None}
\ No newline at end of file
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
# 2022-02-14: added option "Report safe files" (--report-patch) # 2022-02-14: added option "Report safe files" (--report-patch)
# removed "Use logpresse log watch" and "Report fixed" from windows options, need to stay with pre 3.0.0 # removed "Use logpresse log watch" and "Report fixed" from windows options, need to stay with pre 3.0.0
# scanner version (3.0.0 and up are to large for the installer :-() # scanner version (3.0.0 and up are to large for the installer :-()
# # 2022-11-30: fixed CheckParameterRulespecWithoutItem (from CheckParameterRulespecWithItem)
from cmk.gui.i18n import _ from cmk.gui.i18n import _
from cmk.gui.valuespec import ( from cmk.gui.valuespec import (
...@@ -63,6 +63,7 @@ from cmk.gui.plugins.wato import ( ...@@ -63,6 +63,7 @@ from cmk.gui.plugins.wato import (
RulespecGroupCheckParametersOperatingSystem, RulespecGroupCheckParametersOperatingSystem,
RulespecGroupCheckParametersDiscovery, RulespecGroupCheckParametersDiscovery,
CheckParameterRulespecWithItem, CheckParameterRulespecWithItem,
CheckParameterRulespecWithoutItem,
HostRulespec, HostRulespec,
) )
from cmk.gui.plugins.wato.utils import ( from cmk.gui.plugins.wato.utils import (
...@@ -235,7 +236,7 @@ def _valuespec_cve_2021_44228_log4j(): ...@@ -235,7 +236,7 @@ def _valuespec_cve_2021_44228_log4j():
rulespec_registry.register( rulespec_registry.register(
CheckParameterRulespecWithItem( CheckParameterRulespecWithoutItem(
check_group_name='cve_2021_44228_log4j', check_group_name='cve_2021_44228_log4j',
group=RulespecGroupCheckParametersOperatingSystem, group=RulespecGroupCheckParametersOperatingSystem,
parameter_valuespec=_valuespec_cve_2021_44228_log4j, parameter_valuespec=_valuespec_cve_2021_44228_log4j,
......
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