shinken-monitoring / mod-livestatus

Shinken module for presenting data with a MK/Livestatus comptabile interface
GNU Affero General Public License v3.0
15 stars 20 forks source link

Wrapped json support #79

Open enriquefromojaro opened 6 years ago

enriquefromojaro commented 6 years ago

This pull request adds support for the output format "wrapped_json".

This format, supported by LMD, includes information about the data length and the errors that may have been occurred. Summing up, this format returns additional information in the response.

The aiming of including this format is the interest to know what happened if a query fails for some reason in order to fix it or handle the error if there was any, because at the moment if the query fails, the reader in the socket cannot know it without looking at the broker logs.