Subject: | Missing comma in json response from statehist |
Date: | Tue, 21 Oct 2014 17:24:19 +0000 |
To: | "bug-Nagios-MKLivestatus [...] rt.cpan.org" <bug-Nagios-MKLivestatus [...] rt.cpan.org> |
From: | <anseregin [...] yandex.ru> |
Hello,
Livestatus returns wrong formatted json string on statehist request with ColumnHeaders on. There’s a missing comma after headers line.
Tested on livestatus 1.2.4p5, 1.2.4p2 and Nagios 3.5.1
Request example:
echo -e 'GET statehist\nColumns: host_name service_description\nFilter: host_name = 185\nFilter: service_description = ssh\nFilter: time >= 1412107200\nStats: sum duration_part_ok\nColumnHeaders: on\nOutputFormat:json\nResponseHeader: fixed16\n' | nc localhost 6557
Response:
[["host_name","service_description","stats_1"]["185","ssh",6.7680143752e-01]]
Kind regards,
Anatoly