Werk #15615: Disallow Specifying Invalid Ports in Rulesets

Component Setup
Title Disallow Specifying Invalid Ports in Rulesets
Date May 17, 2023
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required
Checkmk versions & editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

With this Werk, it is no longer possible to specify ports outside of the range 1 to 65535. This affects rules such as Amazon Web Services (AWS). In case you have an invalid port, the following error will be shown while updating.

-| WARNING: Invalid rule configuration detected
-| Ruleset: special_agents:aws
-| Title: Amazon Web Services (AWS)
-| Folder: main
-| Rule nr: 1
-| Exception: -1 is too low. The minimum allowed value is 1.
-|
-| You can abort the update process (A) and try to fix the incompatibilities with a downgrade to the version you came from or continue (c) the update.
-|
-| Abort update? [A/c]

In this case, you should continue the update, and follow the instructions provided. For example:

-| WARNING: Invalid rule configuration detected (Ruleset: special_agents:aws, Title: Amazon Web Services (AWS), Folder: ,
-| Rule nr: 1, Exception: -1 is too low. The minimum allowed value is 1.)
-| Detected 1 issue(s) in configured rules.
-| To correct these issues, we recommend to open the affected rules in the GUI.
-| Upon attempting to save them, any problematic fields will be highlighted.

To the list of all Werks