Ingest JSON

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
csatola
Posts: 1
Joined: Thu Mar 07, 2019 2:38 pm

Ingest JSON

Post by csatola »

Hi All! I'm evaluating Nagios as a possible replacement for our current implementation of Solarwinds NPM and SAM. One of the key features I'm using in Solarwinds is writing a custom exe monitor to hit a web URL that returns JSON. I ingest the JSON and return the data to Solarwinds the way it wants it (Statistic and Message for a handful of items)

Example JSON Output:

Code: Select all

[
{
name: "queue-count",
message: "",
statistic: "0",
responseTime: "0",
status: "UP"
},
{
name: "phrase-search",
message: "",
statistic: "0",
responseTime: "4",
status: "UP"
}
]
Resulting output to Solarwinds:

Code: Select all

Message.queue_count:UP
Statistic.queue_count:0
Message.phrase_search:UP
Statistic.phrase_search:0
Message.Status:Check Complete: http:/url/status (RunID e8415e67-96ac-4fc3-908e-2ff502a7e040)
Statistic.Status:1205
So I can alert on the message or statistic of either of these sections. Is this doable in Nagios?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Ingest JSON

Post by cdienger »

There are a few plugins on the Exchange that work with json responses via urls. Check out:

https://exchange.nagios.org/index.php?o ... check_json
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked