Manipulate HTTP response

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Manipulate HTTP response

Postby igeoigeo » Mon Feb 03, 2020 4:48 am


I would like to manipulate the HTTP response that I get from a web serivce (JSON format):

Code: Select all
  "state": "Unhealthy",
  "time": 500,
  "details": [
      "key": "One",
      "value": "Healthy",
      "time": 200
      "key": "Two",
      "value": "Healthy",
      "time": 200
      "key": "Three",
      "value": "Healthy",
      "time": 100

In other words, I would like to print the result of each key value referenced by the key. Is there a way of manipulating this by using the check_http?

thank you.
Posts: 6
Joined: Tue Oct 08, 2019 3:19 pm

Re: Manipulate HTTP response

Postby Box293 » Tue Feb 04, 2020 7:30 pm

You would have to write your own plugin to handle this logic.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Return to Community Support

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 10 guests