Werk #10151: mssql: Sanitize mssql ini file name

Component Checks & agents
Title mssql: Sanitize mssql ini file name
Date Oct 9, 2019
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required
Checkmk versions & editions
2.0.0i1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0p5 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0p23 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

If the instance name contained a backslash, the ini-files path was wrongly considered to contain a subdirectory. When using the agent bakery, this lead to missing plugins in the deployed agents.

We now replace "\" and "," by "_"; such that the instance "FOO\Bar,5038" will create the file "mssql_FOO_Bar_5038.ini", instead of "Bar,5038.ini" in the folder "mssql_FOO".

Users that manually adopted to the previous behaviour, should redeploy the plugin and move the file accordingly.

To the list of all Werks