Hey guys,
i want to integrate a solar-logging device into my prtg monitor. This device provides data with JSON with HTTP Post Request.
Actually im not able to show this data via browser. But i get the data with using curl in windows command line.
##############################
Device manual says:
The actually data you can get with a HTTP Post Request. The requestet Object has to be in body:
POST /getjp HTTP/1.1 Host: 192.168.1.10 (IP-Adress of the device) ... Content-Length: 20 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache {„801“:{„170“:null}}
The answer should show a JSON-Objekt as String in Body:
HTTP/1.1 200 OK Date: Mon, 31 Mar 2014 10:42:32 GMT Server: IPC@CHIP Content-Type: text/plain Transfer-Encoding: chunked {„801“:{„170“:{„100“:“31.03.14 10:42:15“,“101“:0,“102“:0,“103“:0,“104“:0,“105“:0,“106“:0,“107“:3527647, “108“:0,“109“:0,“110“:0,“111“:0,“112“:0,“113“:1132434,“114“:0,“115“:0,“116“:45000}}}
##############################
So i tested different Sensors with PRTG but none ofe them worked. With windows cmd using curl i get the relevant data without problems. this is the key iam using:
curl -X POST -H "Content-Type: application/json" -d '{\"801\":{\"170\":null}}' 192.168.1.10/getjp |
And this is the answer i get:
{"801":{"170":{"100":"11.02.19 07:42:35","101":0,"102":0,"103":0,"104":0,"105":0,"106":22679,"107":631999,"108":1618447,"109":426525009,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":82095}}}
So the question is how to get this data into PRTG. Whats the correct Sensor to do this und how to configure the sensor correctly. Can you help me please?
Add comment