Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to: install this plugin the correct way in Grafana 8 with multiplier option #184

Open
olsonnn opened this issue Jun 9, 2021 · 6 comments

Comments

@olsonnn
Copy link

olsonnn commented Jun 9, 2021

what not to do:
install grafana 8:
install plugin via : grafana-cli plugins install jasonlashua-prtg-datasource
this installs the prtg plugin without multiplier option.

so how to install properly:
remove the plugin

in /etc/grafana/grafani.ini put the following line: (make sure you don't have it twice configured)

[plugins]
allow_loading_unsigned_plugins = jasonlashua-prtg-datasource

(if you skip this step the plugin is not loaded and you get a "plugin not found, no installed plugin with that id")

Restart grafana. and the plugin should load.
Check if the multiplier option turns green. If not clear your browser cache!

i've spend hours on this. Hope it saves your time !

@rajaseelan
Copy link

Give this person a medal!

@heimberg
Copy link

I cannot get this to work, i can get data from the API endpoint using postman, but the plugin gives an error 502 bad gateway

@olsonnn
Copy link
Author

olsonnn commented Mar 20, 2023

I assume you checked this one? https://github.com/neuralfraud/grafana-prtg/wiki/Installation

@heimberg
Copy link

yes, i followed the wiki

@liam-ng
Copy link

liam-ng commented Apr 9, 2024

For future references, here're some more remarks on installing the PRTG plugin (PRTG API version 24.1.92;1554+) on Grafana 8

  • Check Grafana plugin directory in the configuration file at /etc/grafana/grafana.ini (default /var/lib/grafana/plugins in ubuntu22)
  • Use chmod to update folder / file permissions to gain access if needed
  • When updating the grafana.ini, make sure to remove the ; at the start of the line
  • If you still cannot see the PRTG plugin (Grafana web console > Connections or > Plugins and data) after updating the .ini, check your config again and try one of the following:
    • Run service grafana-server restart
    • Run systemctl restart grafana-server.service
    • Run sudo reboot
    • Run chown -R grafana:grafana /var/lib/grafana/plugins then run chmod -R 700 /var/lib/grafana/plugins (I didn't verify this)

you should see PRTG plugins with tags: installed, unsigned, angular on your web console

Remarks on data source configurations:

  • As per the plugin manual, the url should be something like http://{PRTG IP/ hostname}/api
  • Use passhash, not password. To see your user passhash, go to PRTG console > System Administration > User Account > {Your User} > User Account Settings > Click Show passhash

After pressing save & test, you should see a green banner showing your PRTG API version and you should be able query using the data explorer.
If you see error 400 bad request, check the configuration again

@mp-hh
Copy link

mp-hh commented Jun 26, 2024

Grafana has disabled Angular as of the April 2024 release so the PRTG plugin doesn't work.

You need to add the following to get it working.

#################################### Security ####################################
[security]
angular_support_enabled = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants