Werk #2493: Fixed wrong JSON format when using stats queries together with header columns

Component Livestatus
Title Fixed wrong JSON format when using stats queries together with header columns
Date Jul 28, 2015
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.2.7i3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

e.g. this query lead to invalid JSON output:

GET statehist Filter: time >= 1425168000 Filter: time < 1427846400 Filter: host_name = name Filter: service_description = Description Stats: sum duration_part_ok OutputFormat: json ColumnHeaders: on

Output: [["stats_1"][0.0000000000e+00]]

To the list of all Werks