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

update project

parent ce4401a5
No related branches found
No related tags found
No related merge requests found
...@@ -235,13 +235,13 @@ def check_snmp_configuration(params, section) -> CheckResult: ...@@ -235,13 +235,13 @@ def check_snmp_configuration(params, section) -> CheckResult:
complexity_regex=key_complexity, complexity_regex=key_complexity,
complexity_repeated=repeated_chars, complexity_repeated=repeated_chars,
) )
if snmp_credentials[3] != snmp_credentials[5]: if snmp_credentials[3] == snmp_credentials[5]:
yield Result(state=State.OK, notice=F'Authentication and Encryption key are different') yield from _result(
message=f'Authentication and Encryption key are identical',
state=params['auth_enc_key_identical'],
report_only=report_only)
else: else:
yield Result( yield Result(state=State.OK, notice=F'Authentication and Encryption key are different')
state=State(params['auth_enc_key_identical']),
notice=F'Authentication and Encryption key are identical'
)
else: else:
yield Result(state=State.OK, summary='No SNMP host') yield Result(state=State.OK, summary='No SNMP host')
......
No preview for this file type
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