Page 1 of 1

./check_http_json.py

Posted: Wed May 13, 2020 4:28 am
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

Re: ./check_http_json.py

Posted: Fri May 22, 2020 3:09 pm
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/.