neuralfraud / grafana-prtg

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

Upgraded to v7.0.1 - plugin no longer working #171

Open simonmms opened 4 years ago

simonmms commented 4 years ago

Anyone else experienced this. It was working fine on previous versions of Grafana (6.2). Since upgrading this problem keeps happening. Tried uninstalling etc, nothing seems to work.

Configuration > Data Sources > PRTG > Error thrown

image

angela-d commented 4 years ago

In 7.0, Grafana made a breaking change so that plugins must be signed. See this thread with a link to the Grafana changelog that explains how you can load unsigned plugins.

xuanyuanaosheng commented 4 years ago

@simonmms Can this plugin be used in v7.0?

b-reich commented 4 years ago

@angela-d @jaxxstorm What do you think about a fork of the plugin?

angela-d commented 4 years ago

@b-reich I don't personally have enough free time to fork it. I haven't even updated my own install to v7+, yet

angela-d commented 4 years ago

@simonmms @xuanyuanaosheng @b-reich I upgraded to Grafana v7.2.0 this evening with virtually no issues. Plugin is still working fine on both Linux and Windows installs.

@simonmms I would be curious to know if any of your sensor/device names or values have special characters in them. I did not see any bugs of this nature after upgrading.

magnumchode commented 4 years ago

@angela-d Can I ask exactly what you put in your grafana.ini to make this work in 7.0+? I've tried setting "allow_loading_unsigned_plugins =" to all of the following, both quoted/without quotes & caps/lowercase but I continue to get the unsigned error:

prtg grafana-prtg jasonlashua-prtg-datasource

I also tried setting all of these combinations prior to having the datasource/folder present the first time I restarted grafana with the same results.

Or are you saying it was working in a pre 7.0 version, then upgraded to 7.2.0 & it sort-of "grandfathered" it's way in during the upgrade without having to modify the ini?

angela-d commented 4 years ago

Or are you saying it was working in a pre 7.0 version, then upgraded to 7.2.0 & it sort-of "grandfathered" it's way in during the upgrade without having to modify the ini?

Seems to be this, I did not do anything to the installation for the plugin to work. When I upgrade, I install it atop of the old installation for both Linux and Windows.

Enter a comma-separated list of plugin identifiers to identify plugins that are allowed to be loaded even if they lack a valid signature.

Based on Grafana's documentation, this might be the syntax it's looking for:

[plugins]
allow_loading_unsigned_plugins=jasonlashua-prtg-datasource

Make sure it's under the [plugins] section.

You might need to restart the Grafana service for it to take effect, if it doesn't start working right away.