Check SQL database - Database port macro BUG!

Checkmk Enterprise Edition 2.3.0p25:
CMK Appliance:

check_mk: Config creation for active check sql failed on celpgsqlp403_pgSQL_tsmp: invalid literal for int() with base 10: ‘$HOSTLABEL_pgport$’:

I think there is a bug that was introduced in
Werk #16644: Check SQL: Allow to configure port via custom macros

When creating rule for Check SQL Database you should be able to determine DB port from macro, but it seems this doesnt works properly. All other macros in rule expands as expected.

Obviously this Macro doesnt expand as seen from error message. Does anybody has the same problem, or do I use wrong macro name? I believe $HOSTLABEL_key$ is the correct syntax.

Did you try using tags instead? It worked here.

The problem was in incorrect format/syntax I have used. The correct syntax for MACRO labels is $__HOST_LABEL__key$.

Thank you for you help!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.