Query to livestatus won't return
DessaiImrane opened this issue · comments
DessaiImrane commented
Hi,
I'm using Shinken 2.0 and this module master branch
When launching this command, livestatus doesn't return
echo -e "GET services\n Columns: host_name description state notifications_enabled\n\n" | netcat localhost 50000
It lists properly all services available but doesn't return. I have to Ctrl+C to close connection
Where can I look in the code to solve this ? Thanks
DessaiImrane commented
Some info :
When launching previous command multiple time (without closing each) in debug mode i got this message :
2014-04-18 16:24:59,560 [1397823899] Error : Imrane [Livestatus Broker] Connection 10 is idle since 8 seconds (idle)
2014-04-18 16:24:59,560 [1397823899] Error : Imrane [Livestatus Broker] Connection 13 is idle since 3 seconds (idle)
DessaiImrane commented
https://github.com/shinken-monitoring/mod-livestatus/blob/master/module/module.py#L598
writing this seems to do the trick :
close_it = True
What do you think ?