Werk #4123: active check check_sql: changed handling of query results and fixed hostname parameter

KomponenteChecks & Agents
Titelactive check check_sql: changed handling of query results and fixed hostname parameter
Datum2017-02-02 15:09:11
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.4.0b1
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

If the used SQL query results in only one column its value is shown in check output now. Otherwise the second column of the result is used for check output.

Also, the hostname parameter has been fixed to prevent erros like this:

Error while connecting to database: [2005] Unknown MySQL server host "10.11.12.13"