Skip Menu |

This queue is for tickets about the Nagios-MKLivestatus CPAN distribution.

Report information
The Basics
Id: 99704
Status: rejected
Priority: 0/
Queue: Nagios-MKLivestatus

People
Owner: NIERLEIN [...] cpan.org
Requestors: anseregin [...] yandex.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
this should be fixed upstream in the livestatus module itself. There is nothing this perl module could do about it.