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

Komponente Checks & agents
Titel active check check_sql: changed handling of query results and fixed hostname parameter
Datum 02.02.2017
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
1.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

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"

Zur Liste aller Werks