-
Notifications
You must be signed in to change notification settings - Fork 92
Missing Grafana host configuration results in Undefined property: Icinga\Module\Grafana\ProvidedHook\Grapher::$view #26
Comments
Please use the bugfix for bugfix release v1.0.11 :) |
Hm, it still exists unfortunately. I'm on
I'm using the icinga2x Vagrant box which provides me with a running Graphite and Grafana. Cloned and enabled the module. Imported the Grafana dashboards (but this seems unrelated, since I did not configure the global settings yet). Somehow $this->view does not exist in the scope where it is used (ProvidedHook vs Controller). |
Hmm maybe its the Icingaweb2 version. My icingaweb2 version is:
PHP Version is 7.1.4 |
Just downloaded icingaweb2 2.4.0 and it works also. Can you please configure the module and test it again. |
I'm not a web developer and I don't know the consequences, but $this->view->qlink is definitely used in a scope where $this->view is not initialized.
kills the exception, but looks like an ugly workaround with unknown behaviour afterwards. The graphs with Graphite do work then. I've also changed back to v2.4.1 stable, and then I've configured the Grafana data source. Voilá - it is a matter of having that properly configured. If the image fetcher cannot retrieve anything which could be rendered properly, that error is thrown. I've found a way to reproduce it - just comment all the settings in config.ini.
If enabled
Returning HTML in the init() function will do nothing, it won't even stop the caller. You must throw an exception. Then it works. I'll send a PR soon. |
The latest addition of the timerange qlink breaks Icinga Web 2.
The text was updated successfully, but these errors were encountered: