Skip to content

Comments

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

Open
sni wants to merge 2 commits intonaemon:masterfrom
sni:feature_expose_queryhandler
Open

WIP: add QH command to access the query handler via livestatus#62
sni wants to merge 2 commits intonaemon:masterfrom
sni:feature_expose_queryhandler

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 sven@nierlein.de

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 <sven@nierlein.de>
@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