naemon / naemon-livestatus

Naemon - Livestatus Eventbroker Module
GNU General Public License v2.0
26 stars 30 forks source link

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

Open sni opened 4 years ago

sni commented 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

sni commented 4 years ago

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.