neuralfraud / grafana-prtg

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

i can't connection test #97

Closed kbyou74 closed 5 years ago

kbyou74 commented 6 years ago

default

i'm check regedit and passhash but not connection.. please help

ThomasRunting commented 6 years ago

Is that ip address for the prtg server correct?

huangyingja commented 6 years ago

Hi All, Since My PRTG version (13.1.2.1462) too old. When test PRTG connection, I got http code 404. After checked from PRTG website folder, I found there is no status.json. May I know how to resolve it since I saw PRTGAPIService.js also check "getstatus.htm" ? And PRTG version 13 http://myprtg/API/getstatus.htm existed. How to edit " PRTGAPIService.js " to pass the connection testing ? Thank you ~

sergiopizarrou commented 6 years ago

Hi everyone, I'm going to show you how it works:

Step 1 Replace " * " String value named "AccessControlAllowOriginHTTPHeader" to the registry key HKLM\Software\Wow6432Node\Paessler\PRTG Network Monitor\Server\Webserver

by http://yourserver/

image

Press OK.

Step 2

Open PRTG Administration Tool

Change Probe connection Management to Accept connections from remote probes and all IPs

image

Restart the PRTG Core Server service.

image

Step 3 get passhash to connect with PRTG api from Grafana.

example URLs now also contain the credentials for authentication purposes:

username=myuser&passhash=hash` (or password=mypassword)

You can request the passhash for an account with the following API call:

http://**yourserver**/api/getpasshash.htm?username=**myuserhere**&password=**mypasswordhere**

** Replace: your server, myuserhere, mypasswordhere

and paste it on your browser, if it's ok PRTG return number with a 9 digits

THIS NUMBER IS YOUR PASSHASH

2º paste the passhash on your PRTG API Configuration for your user. captura de pantalla 2018-05-30 a la s 18 10 06

NOTE: REMEMBER PASSHASH NOT PASSWORD

Thank you-

niccol commented 5 years ago

I know this is an old issue, but I'm running into the same issue with my install. I've made the changes listed above to PRTG but it still isn't working.

neuralfraud commented 5 years ago

I know this is an old issue, but I'm running into the same issue with my install. I've made the changes listed above to PRTG but it still isn't working.

@niccol Break it until it starts working.

And never use browser access mode Never use the PRTG admin account ...dont use localhost... etc. etc. Please read wiki