Module: check_mk
Branch: master
Commit: 368ecaf55b25fbaafde8e1ea80299ddb84c655dc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=368ecaf55b25fb…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Tue Aug 27 16:06:15 2013 +0200
Updated bug entries #1037, #1039
---
.bugs/1037 | 25 +++++++++++++++++-
.bugs/1039 | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 106 insertions(+), 1 deletion(-)
diff --git a/.bugs/1037 b/.bugs/1037
index 1061495..ff1bce5 100644
--- a/.bugs/1037
+++ b/.bugs/1037
@@ -1,9 +1,9 @@
Title: check_mk_agent.exe unable to restart after a crash: logstate.txt 0 bytes
Component: checks
+Class: bug
State: open
Date: 2013-08-27 10:58:29
Targetversion: 1.2.3
-Class: bug
came in via feedback@ // original mail still available in feedback/gitbug folder
@@ -27,3 +27,26 @@ To work around the problem I remove the logstate.txt and then start the
check_mk
hint by bs: the attached logstate.txt is 0 bytes
+
+2013-08-27 13:19:06: changed state open -> open
+more info from Peter Rogers:
+
+Hi Bernd,
+
+Thank you for your reply, the currupt file is not empty (123k in size) so I have
reattached a copy of the file.
+
+If I edit the file in Notepad++ I see one line of null entries, and converted to HEX I
get the following:
+
+00000000000000000000000000000000
+00000000000000000000000000000000
+00000000000000000000000000000000
+00000000000000000000000000000000
+00000000000000000000000000000000
+00000000000000000000000000000000
+00000000000000000000000000000000
+0000000000000000000000
+
+I have had a number of crashes on this server as the Windows machine is running on a VM
server which has had problems, but the currupt logstate.txt file is always 123k in size
and looks the same when edited.
+
+Regards,
+Peter Rogers
diff --git a/.bugs/1039 b/.bugs/1039
new file mode 100644
index 0000000..da19013
--- /dev/null
+++ b/.bugs/1039
@@ -0,0 +1,82 @@
+Title: livestatus bug in OutputFormat: json
+Component: livestatus
+State: open
+Date: 2013-08-27 16:02:02
+Targetversion: 1.2.3
+Class: bug
+
+came in via feedback@ // mail still available in feedback/gitbug folder
+
+
+From: <Sascha.Pfalz(a)ivz.de>
+To: <feedback(a)check-mk.org>
+Subject: [Bug]: JSON Data falsch
+Thread-Topic: [Bug]: JSON Data falsch
+Thread-Index: Ac6IZny063o7fFKiSS2eLhEqKFzKaA==
+Date: Wed, 24 Jul 2013 12:08:20 +0000
+
+Hi,
+
+Erst mal möchte ich danke sagen für das super Plugin, das hat mir viel Arbeit erspart und
macht den Einsatz von unseren Nagios und SMBox Systemen etwas leichter
+
+Allerdings scheint sich ein Bug in die V1.2.2p2 eingeschlichen zu haben, und zwar geht es
um das Auslesen von Kommentaren bei folgendem Kommando:
+
+$CMD = "GET services\n";
+$CMD.= "Columns: host_name comments_with_info\n";
+$CMD.= "Filter: host_name = localhost\n";
+$CMD.= "OutputFormat: json\n";
+
+Der Host localhost hat 11 Services definiert, wobei einer einen Kommentar definiert hat.
Dabei erhalte ich folgende Ausgabe:
+
+[["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[[705,"nagios","Testing",]]]]
+
+Und das ist leider nicht korrekt, das letzte ",]" ist falsch! Diese Daten
lassen sich leider nicht via json_decode() in PHP dekodieren. Wandel ich das Ganze aber
wie folgt ab:
+
+[["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[]],
+["localhost",[[705,"nagios","Testing"]]]]
+
+-------------------------------------^^^
+
+
+Dann funktioniert das auch sofort wieder.
+
+Ich habe leider aktuell nicht so viel Zeit, um einen Patch zu liefern, deswegen dieser
etwas chaotische Bugreport, ich hoffe aber, das man das soweit nachvollziehen kann.
+
+In der 1.1.10p3 war dieser Bug definitiv nicht drin.
+
+Getestet habe ich mit den Nagios Versionen 3.2.1 und 3.5.0, bei beiden tritt diese
falsche JSON Kodierung auf.
+
+Nochmals vielen Dank für das Plugin!
+
+Viele Grüße,
+--
+Sascha Pfalz
+Oracle Developer
+Archiv- und Produktionssysteme
+
+Tel. +49(0)30 97993-86318
+sascha.pfalz"at"ivz.de
+
+Informations-Verarbeitungs-Zentrum
+Gemeinschaftseinrichtung von
+DW - Deutschlandradio - MDR - NDR - RB - RBB - SR - WDR
+Masurenallee 8-14 14057 Berlin