Werk #17682: Fix discovery crash when mssql_jobs don`t have a name

Component Checks & agents
Title Fix discovery crash when mssql_jobs don`t have a name
Date Mar 7, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Some jobs do not have a name so that field is missing in the agent plugin output (both, the deprecated mssql.vbs and the new mk-sql.exe) and will be set to an empty string in the parsed output. That leads to a discovery crash and all subsequent jobs will not be discovered as well. As a hotfix, a check whether job is unnamed was added to prevent the discovery process from crashing.

To the list of all Werks