Skip to content

Commit

Permalink
Removed auth from graph link.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikesch-mp committed Feb 8, 2017
1 parent 0f75409 commit 019e3fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/Grafana/Grapher.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function getPreviewHtml(MonitoredObject $object)

$this->getGraphConf($serviceName);

$html = '<a href="%s://%s%s/dashboard/db/%s?var-hostname=%s&var-service=%s&from=now-%s&to=now';
$html = '<a href="%s://%s/dashboard/db/%s?var-hostname=%s&var-service=%s&from=now-%s&to=now';

if ( $this->dashboard != "icinga2-default")
{
Expand All @@ -140,7 +140,6 @@ public function getPreviewHtml(MonitoredObject $object)
return sprintf(
$html,
$this->protocol,
$this->auth,
$this->grafanaHost,
$this->dashboard,
urlencode($hostName),
Expand Down

0 comments on commit 019e3fb

Please sign in to comment.