Open yoshi314 opened 7 years ago
I must see why I have this, if you don't want waiting, see to patch GLPI: https://github.com/ddurieux/glpi_app_grafana/issues/10#issuecomment-336712233
The patch works great. Will it land in glpi at some point?
Hi, I'm also having the same error & after using the patch, no luck. :( `// retrieve ip of client $this->iptxt = (isset($_SERVER["HTTP_X_FORWARDED_FOR"]) ? $_SERVER["HTTP_X_FORWARDED_FOR"] : $_SERVER["REMOTE_ADDR"]); $this->ipnum = (strstr($this->iptxt, ':')===false ? ip2long($this->iptxt) : '');
$spl = explode(',', $this->iptxt);
if (count($spl) > 1) {
$this->iptxt = $spl[0];
}
`
getting below error. `
Another thing, i'm unable to get the user_token. Kindly help how can i get the same.
Kindly help..
Thanks a lot ..
t=2017-10-23T10:15:07+0200 lvl=info msg="Request Completed" logger=context userId=35 orgId=5 uname=user@COMPANY.COM method=GET path=/glpi/apirest.php/initSession status=400 remote_addr="192.168.186.23, 127.0.0.1" time_ms=40 size=142 referer=https://grafana.company.com/datasources/edit/8
In grafana setup dialog, i get this :
GLPI API Error Response: No active client matching your IP address (192.168.186.23, 127.0.0.1, 127.0.0.1)
I tried setting api access without ip restriction or with 127.0.0.1 - 192.168.186.23, even though grafana IP is 172.17.2.29 on my network.
Is this normal to pass two ip's as remote_addr ? Should i somehow rewrite it in apache on glpi side?
I am running Grafana 4.5.2 and GLPI 9.1.6.