Open sni opened 4 years ago
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
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.
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