findmypast/icingaweb2-module-graphite

Wrong URL for disk graph

Closed this issue · 3 comments

Hi,

I have an issue with the disk graph.

The URL of the embedded graph in icingaweb2 is:
target=host_com.services.disk__.disk.perfdata._.value

By looking through the graphiteweb interface I found the correct URL should be:
target=host_com.services.disk__.disk.perfdata./.value

Any way to modify this url?

Hi, same issue here:

image

actual url: icinga2.host.services.disk__.dummy.perfdata./.value

should be: icinga2.host.services.disk__.dummy.perfdata._.value

Hi, I have same issue,but I fixed

at line 107 in graphite/library/Graphite/Grapher.php

$target = Macro::resolveMacros($target, array("metric"=>$metric), $this->legacyMode, false);
change to
$target = Macro::resolveMacros($target, array("metric"=>$metric), $this->legacyMode, true);
or
$target = Macro::resolveMacros($target, array("metric"=>$metric), $this->legacyMode);

closed #42