Issue with Icingaweb 2 Graphite plugin
tbaror opened this issue · 9 comments
That is just an iframe and what you see there is http://www.graphite.com. You need to configure the plugin to use your own graphite url. See /etc/icingaweb/modules/graphite/config.in and change base_url.
Thanks for the answer , I manually created config.ini with following
[graphite]
metric_prefix = icinga
base_url = /render?
since my graphite is installed local , now its shows the graph nicely but when i choose for example last 10min 1hr and so forth i get following gibberish screen attached (looks likes png that that not render well) ,
any idea ?
Thanks
What is the source (src) for the iframe?
Same problem here.
I have to servers with Icinga2, Icingaweb2 + Graphite
On the first server:
Ubuntu 14.04.2 LTS (GNU/Linux 2.6.32-37-pve x86_64)
Graphite is running on an extra subdomain.
Second server:
Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-38-generic x86_64)
Graphite and Icingaweb running on the same domain.
need to replace replace relative path to absolute like here: kain64@5a81252.
/usr/share/icingaweb2/modules/graphite/application/views/scripts/index/index.phtml
it's work for me. but I'm nube in PHP : )
Thanks for taking a look @kain64 however the path is absolute already. Also thanks for introducing me to the term "nub", i intend to take that as my own..
I came across both issues found here after fixing the 'No Data' issue by updating Grapher.php per #23
the first was fixed by adding a config.ini in /etc/icingaweb2/modules/graphite (note this not the /usr/share/icingaweb2/modules path) and ensuring the base_url was a full path (http://yourhost.yourdomain.com/render?). Mine is something like:
[graphite]
metric_prefix = icinga
base_url = http://graphite.host.domain.com/render?
legacy_mode = true
service_name_template = "$host.name$.$service.name$"
host_name_template = "$host.name$"
graphite_args_template = "&target=$target$&source=0&width=300&height=120&hideAxes=true&lineWidth=2&hideLegend=true&colorList=049BAF"
graphite_large_args_template = "&target=alias(color($target$_warn,'yellow'),'warning')&target=alias(color($target$_crit,'red'),'critical')&target=$target$&source=0&width=800&height=700&colorList=049BAF&lineMode=connected"
the second issue - large graph png being incorrectly rendered as gibberish - i fixed by making sure both my icingaweb2 and graphite instances were configured as vhosts (i have them running on the same phyiscal machine), as the issue appeared when icingaweb2 was not running as a vhost using the default icingaweb2 config. Equally you then need to update your icingaweb2-module-graphite's config.ini so the base_url points to the vhost address (like my example above)
hope this helps someone.