Wrong URL for disk graph
Closed this issue · 3 comments
matthenning commented
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?
AdamNuclear commented
Deleted user commented
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);