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

Component Checks & agents
Title active check check_sql: changed handling of query results and fixed hostname parameter
Date Feb 2, 2017
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.4.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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"

To the list of all Werks