./check_http_json.py

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
cyberchief
Posts: 1
Joined: Fri May 08, 2020 3:19 am

./check_http_json.py

Post by cyberchief »

hope someone can help me with the check.
want to check the value yesterday

{"StatusSNS":{"Time":"2020-05-13T10:25:27","ENERGY":{"Total":2.545,"Yesterday":0.006,"Today":0.003,"Power":0,"Factor":0.00,"Voltage":0,"Current":0.000}}}

./check_http_json.py ??? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

unfortunately I can't manage it
thank you for the syntax

regard Thomas
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: ./check_http_json.py

Post by cdienger »

Where you able to get this working? It looks like you'd need:

Code: Select all

StatusSNS.ENERGY.Yesterday
I'd also point out that the upcoming 5.7 release of XI will have a JSON wizard. You can get a free trial and access to the customer forums with it - https://www.nagios.com/products/nagios-xi/.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked