Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query to livestatus won't return #20

Open
DessaiImrane opened this issue Apr 18, 2014 · 2 comments
Open

Query to livestatus won't return #20

DessaiImrane opened this issue Apr 18, 2014 · 2 comments

Comments

@DessaiImrane
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member Author

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant