diff --git a/agent_based/snmp_configuration.py b/agent_based/snmp_configuration.py index 76c5543a76e694061865c5fdcaf492c9946dc3be..c680bf6136cca59b3563a1ac08418d71486b6b0b 100644 --- a/agent_based/snmp_configuration.py +++ b/agent_based/snmp_configuration.py @@ -235,13 +235,13 @@ def check_snmp_configuration(params, section) -> CheckResult: complexity_regex=key_complexity, complexity_repeated=repeated_chars, ) - if snmp_credentials[3] != snmp_credentials[5]: - yield Result(state=State.OK, notice=F'Authentication and Encryption key are different') + if snmp_credentials[3] == snmp_credentials[5]: + yield from _result( + message=f'Authentication and Encryption key are identical', + state=params['auth_enc_key_identical'], + report_only=report_only) else: - yield Result( - state=State(params['auth_enc_key_identical']), - notice=F'Authentication and Encryption key are identical' - ) + yield Result(state=State.OK, notice=F'Authentication and Encryption key are different') else: yield Result(state=State.OK, summary='No SNMP host') diff --git a/snmp_configuration-0.0.5-20230804.mkp b/snmp_configuration-0.0.5-20230804.mkp index edd4609bcac5b61a53eb101afe0fd32600569da8..9c18d7f6ca9e9ca460698570b310d91dfc56b667 100644 Binary files a/snmp_configuration-0.0.5-20230804.mkp and b/snmp_configuration-0.0.5-20230804.mkp differ