Skip to content

Commit

Permalink
Bugfix for host & service names in timerange menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikesch-mp committed Apr 20, 2017
1 parent 9b35021 commit 27fa158
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -12,6 +12,8 @@ Grafana (>= 4.1)

InfluxDB, Graphite and PNP(untested)

PHP with curl enabled

## Installation

* **Enable basic auth or anonymous access in your Grafana configuration.**
Expand Down
2 changes: 1 addition & 1 deletion library/Grafana/ProvidedHook/Grapher.php
Expand Up @@ -235,7 +235,7 @@ public function getPreviewHtml(MonitoredObject $object)
}
$menu = '<div class="scrollmenu" style="overflow: auto; white-space: nowrap; padding: 8px">';
foreach ($this->timeranges as $key => $value) {
$menu .= $this->getTimerangeLink($hostName, $serviceName, $value, $key) .' : ';
$menu .= $this->getTimerangeLink($object->host_name, $object->service_description, $value, $key) .' : ';
}
$menu = substr($menu, 0, -3);
$menu .= '</div>';
Expand Down
2 changes: 1 addition & 1 deletion module.info
@@ -1,5 +1,5 @@
Name: Grafana
Version: 1.0.9
Version: 1.0.10
Depends: monitoring
Description: Grafana - A perfdata visualisation module
Shows Grafana graphs for captured metrics.
Expand Down

0 comments on commit 27fa158

Please sign in to comment.