You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Grapher.php, line 259, it looks like the variable in question is not defined when iFrame mode is used. May have missed a call to getGraphConf or some other means to initialize it.
Steps to Reproduce (for bugs)
Select iFrame for "Grafana Access" in module configuration, then view details on any host or service.
Context
Your Environment
Icinga Web 2 Grafana version (System - About): 1.4.0
Icinga Web 2 version and modules (System - About): 2.8.2
Version used (icinga2 --version):
Operating System and version:
Enabled features (icinga2 feature list):
Config validation (icinga2 daemon -C):
The text was updated successfully, but these errors were encountered:
When using the iFrame mode to view graphs from Grafana, opening any host or service produces error:
Undefined property: Icinga\Module\Grafana\ProvidedHook\Grapher::$dashboarduid
Expected Behavior
Should show the grafana frame.
Current Behavior
Shows:
#0 /usr/share/icingaweb2/modules/grafana/library/Grafana/ProvidedHook/Grapher.php(259): Icinga\Application\ApplicationBootstrap->Icinga\Application{closure}(Integer, String, String, Integer, Array)
#1 /usr/share/icingaweb2/modules/grafana/library/Grafana/ProvidedHook/Grapher.php(379): Icinga\Module\Grafana\ProvidedHook\Grapher->getMyPreviewHtml(String, String, String)
#2 /usr/share/icingaweb2/modules/monitoring/application/views/scripts/show/components/grapher.phtml(3): Icinga\Module\Grafana\ProvidedHook\Grapher->getPreviewHtml(Object(Icinga\Module\Monitoring\Object\Host))...
Possible Solution
In Grapher.php, line 259, it looks like the variable in question is not defined when iFrame mode is used. May have missed a call to getGraphConf or some other means to initialize it.
Steps to Reproduce (for bugs)
Select iFrame for "Grafana Access" in module configuration, then view details on any host or service.
Context
Your Environment
icinga2 --version
):icinga2 feature list
):icinga2 daemon -C
):The text was updated successfully, but these errors were encountered: