We have an API which is querying to MongoDB with GraphQL. We want to capture the output of the GraphQL query to NagiosXI and publish it on report. Is this feature available?
If not, is there any workaround to fetch the data from NagioSQL DB?
You could add a -v to the check_http plugin to see the output but the multi-line output is only displayed on the service detail page. If that doesn't meet your needs you'd likely need to find an alternative plugin that outputs it all on one line but that would break your formatting anyways, the text would still be there but it would be on a single line.
I did a lookup on the Nagios Exchange, and I'm not aware of a plugin for directly monitoring data from a graphql query.
All plugins must return an exit code the indicate the state of the host or service. The status message is optional. I could submit a feature request for you or another option is to make one, take a look a the guidelines below.