Manipulate HTTP response

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
igeoigeo
Posts: 8
Joined: Tue Oct 08, 2019 3:19 pm

Manipulate HTTP response

Post by igeoigeo »

Hello,

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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Manipulate HTTP response

Post by Box293 »

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.
Locked