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

WIP: add QH command to access the query handler via livestatus #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sni
Copy link
Contributor

@sni sni commented Nov 5, 2019

this PR adds access to the query handler via livestatus. Since livestatus is
commonly used it would be nice to subscribe to events via livestatus too.
So we simply pass through query handler commands and therefor allow things like:

echo "QH help" | nc -U tmp/run/live

or

echo "QH @nerd subscribe servicechecks" | nc -U tmp/run/live

It is not yet interactive, so you send a command once and will get the results.

Signed-off-by: Sven Nierlein [email protected]

this PR adds access to the query handler via livestatus. Since livestatus is
commonly used it would be nice to subscribe to events via livestatus too.
So we simply pass through query handler commands and therefor allow things like:

  echo "QH help" | nc -U tmp/run/live

or

  echo "QH @nerd subscribe servicechecks" | nc -U tmp/run/live

TODO:
  - It is not yet interactive, so you send a command once and will get the results.
  - implement proper shutdown

Signed-off-by: Sven Nierlein <[email protected]>
@sni sni force-pushed the feature_expose_queryhandler branch from b27a4e9 to dab7a7e Compare November 5, 2019 11:11
@sni
Copy link
Contributor Author

sni commented Nov 5, 2019

and it would be nice to have something next to nerd with returns json values. It makes no sense to parse the nerd output again.

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

Successfully merging this pull request may close these issues.

1 participant