grafana-prtg icon indicating copy to clipboard operation
grafana-prtg copied to clipboard

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

Open olsonnn opened this issue 4 years ago • 6 comments

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

  • grafana-cli plugins remove jasonlashua-prtg-datasource
  • download from (https://github.com/neuralfraud/grafana-prtg/archive/refs/heads/master.zip)
  • unzip and put in the plugin dir

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 !

olsonnn avatar Jun 09 '21 08:06 olsonnn

Give this person a medal!

rajaseelan avatar Nov 19 '21 13:11 rajaseelan

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

heimberg avatar Mar 20 '23 13:03 heimberg

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

olsonnn avatar Mar 20 '23 13:03 olsonnn

yes, i followed the wiki

heimberg avatar Mar 22 '23 10:03 heimberg

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

liam-ng avatar Apr 09 '24 00:04 liam-ng