neuralfraud / grafana-prtg

A PRTG Datasource plugin for Grafana
180 stars 75 forks source link

Channel showing wrong data #115

Open ruudmens opened 6 years ago

ruudmens commented 6 years ago

I added some SSL, HTTPS and ping sensors in PRTG and I want to display if the site and VPS is UP or DOWN in Grafana. Therefore I check the Downtime channel. This works fine for one device, but the with the other 3 I get the ping value or HTTPS response time instead of the value from the downtime channel.

I waited a day, tinkered around with time rang, but can't get it working. If I check the XML file, then the data is there. So I don't get it.

Part of the XML results from the query inspector

`

19.09.2018 06:00:00 - 07:00:00 43362.2083333333 3 msec 2.6633 2 msec 2.1250 3 msec 3.0583 0 % 0.0000 0 % 0.0000 100 % 0000010000

19.09.2018 07:00:00 - 08:00:00 43362.2500000000 3 msec 2.8450 2 msec 2.3333 3 msec 3.1500 0 % 0.0000 0 % 0.0000 100 % 0000010000

` If somebody knows a way to fix this or howto use the RAW query mode with a query string to select the proper data the please let me know.

Maybe similar to #66

Yakelixir commented 5 years ago

Can you post your query for this? some screenshots would help. Thanks in advance

qwake22 commented 5 years ago

I'm having this same issue. image

The results are showing ping time, not downtime.

neuralfraud commented 5 years ago

Thats a status, which i may be remembering incorrectly, requires a different api call because it isnt a timeseries metric like ping. Also you can use a singlestat for that but i think it only colorizes numeric values. JSON table works.

Sent from my iPhone

On Sep 19, 2018, at 1:14 AM, Ruud notifications@github.com wrote:

I added some SSL, HTTPS and ping sensors in PRTG and I want to display if the site and VPS is UP or DOWN in Grafana. Therefore I check the Downtime channel. This works fine for one device, but the with the other 3 I get the ping value or HTTPS response time instead of the value from the downtime channel.

I waited a day, tinkered around with time rang, but can't get it working. If I check the XML file, then the data is there. So I don't get it.

Part of the XML results from the query inspector

19.09.2018 06:00:00 - 07:00:00 43362.2083333333 3 msec 2.6633 2 msec 2.1250 3 msec 3.0583 0 % 0.0000 0 % 0.0000 100 % 0000010000 19.09.2018 07:00:00 - 08:00:00 43362.2500000000 3 msec 2.8450 2 msec 2.3333 3 msec 3.1500 0 % 0.0000 0 % 0.0000 100 % 0000010000

If somebody knows a way to fix this or howto use the RAW query mode with a query string to select the proper data the please let me know.

Maybe similar to #66

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Ernest-Darmanin commented 5 years ago

Hi, I am experiencing a similar issue like it is posted up here. I am creating a dashboard with Grafana to monitor our RabbitMQ server. When I'm plotting out the graph for the Messages Stats, it looks like it is mixing the figures of 'Publish' with 'Downtime'. Another strange thing is that when I got the histdata.xml file from Chrome, the Downtime channel is not even present in the file. The following is a snippet from the histdata.xml response:

07/08/2019 11:57:49 43684.4151534375 0.20 /s 0.2000 0 /s 0.0000 0.20 /s 0.2000 0 /s 0.0000 0.20 /s 0.2000 0 /s 0.0000 0 /s 0.0000 0 /s 0.0000 0 /s 0.0000 100 % 0000010000

Also, attached is a screenshot of the graph.

Thank you in advance :)

Ernest Screenshot_1

neuralfraud commented 5 years ago

Try current build in the master branch... i ditched the XML for native JSON which seems to have been fixed sometime between 2017 and now. This build probably won't introduce any instabilities, worst case scenario something is broken that wasn't before, in that case, just reinstall the old release version 4.0.3