Hi,
The livestatus broker hang when you submit a command using Thruk.
REQUEST COMMAND [1280825848] SCHEDULE_FORCED_HOST_SVC_CHECKS;aglaee;1280825843
Process Process-3:
Traceback (most recent call last):
File "/opt/Python-2.6.4/lib/python2.6/multiprocessing/process.py", line 232,
in _bootstrap
self.run()
File "/opt/Python-2.6.4/lib/python2.6/multiprocessing/process.py", line 88,
in run
self._target(*self._args, **self._kwargs)
File "../etc/../shinken/modules/livestatus_broker/livestatus_broker.py", line
546, in main
s.shutdown(2)
File "<string>", line 1, in shutdown
error: [Errno 107] Transport endpoint is not connected
Error : the external module Livestatus goes down unexpectly!
I think that because Thruk shutdown the socket as soon as the command has been
send. This patch catch the exception so the broker still alive.
--- livestatus_broker.py.orig 2010-08-03 10:55:21.000000000 +0200
+++ livestatus_broker.py 2010-08-03 10:55:48.000000000 +0200
@@ -543,7 +543,10 @@
response =
self.livestatus.handle_request(databuffer[s].rstrip())
del databuffer[s]
s.send(response)
- s.shutdown(2)
+ try:
+ s.shutdown(2)
+ except Exception as exp:
+ print exp
s.close()
input.remove(s)
--
Nicolas DUPEUX <[email protected]>
Arkea - Domaine Systèmes
tel : 02.98.00.36.68
--
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. Tout
message etant susceptible d'alteration, l'emetteur decline toute
responsabilite au titre de ce message s'il a ete altere, deforme ou
falsifie.
-----------------------------------
This message and any attachments (the "message") are confidential and
intended solely for the addressees. Any unauthorised use or
dissemination is prohibited. As e-mails are susceptible to alteration,
the issuer shall not be liable for the message if altered, changed
or falsified.
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Shinken-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shinken-devel