On Thu, May 26, 2011 at 4:20 PM, Ronny Lindner <ronny.lindner@unister.de> wrote:
Hi Jean,

I attached a part of the debug log with 2 exceptions. We tested it with
version 95292d9121b731e1963ed5bcc0126f540c0afec2 .

Thanks. It seems that a log message is not formed as it should. Can you apply this patch, re-run it and grep for Warning messages?
Thanks,


diff --git a/shinken/modules/livestatus_broker/livestatus_broker.py b/shinken/modules/livestatus_broker/livestatus_broker.py
index b687259..b17ebc6 100644
--- a/shinken/modules/livestatus_broker/livestatus_broker.py
+++ b/shinken/modules/livestatus_broker/livestatus_broker.py
@@ -567,7 +567,11 @@ class Livestatus_broker(BaseModule):
             if type == 'CURRENT SERVICE STATE':
                 logobject = LOGOBJECT_SERVICE
                 logclass = LOGCLASS_STATE
-                host_name, service_description, state, state_type, attempt, plugin_output = options.split(';')
+                try:
+                    host_name, service_description, state, state_type, attempt, plugin_output = options.split(';')
+                except ValueError:
+                    print "WARNING : bad CURRENT SERVICE STATE log : %s" % options
+                    return
             elif type == 'INITIAL SERVICE STATE':
                 logobject = LOGOBJECT_SERVICE
                 logclass = LOGCLASS_STATE


There is another exception in the status.dat, but it should be an utf8 character that make str() function not so happy, I'll try to reproduce it :)


Jean
 
Bye, Ronny