Open ggzengel opened 1 year ago
Name grafana
State enabled
Version 2.0.3
Git commit b9d2b6a13b0b6b06f267bf0b2750fd51d9cb60ce
Icingaweb 2.11 is not fully PHP 8.2 compatible. i will only test with php 8.2 and icingaweb 2.12 when i have my developer machines delivered
@ggzengel you can fix it temporary in the same way it is done in application/controllers/IcingadbimgController.php
with
diff --git a/library/Grafana/ProvidedHook/Icingadb/HostDetailExtension.php b/library/Grafana/ProvidedHook/Icingadb/HostDetailExtension.php
index 85a0126..dc0ec75 100644
--- a/library/Grafana/ProvidedHook/Icingadb/HostDetailExtension.php
+++ b/library/Grafana/ProvidedHook/Icingadb/HostDetailExtension.php
@@ -8,6 +8,7 @@ use ipl\Html\Html;
use ipl\Html\HtmlString;
use ipl\Html\ValidHtml;
+#[\AllowDynamicProperties]
class HostDetailExtension extends HostDetailExtensionHook
{
use IcingaDbGrapher;
diff --git a/library/Grafana/ProvidedHook/Icingadb/ServiceDetailExtension.php b/library/Grafana/ProvidedHook/Icingadb/ServiceDetailExtension.php
index 00fa6ed..0d4fa9c 100644
--- a/library/Grafana/ProvidedHook/Icingadb/ServiceDetailExtension.php
+++ b/library/Grafana/ProvidedHook/Icingadb/ServiceDetailExtension.php
@@ -8,6 +8,7 @@ use ipl\Html\Html;
use ipl\Html\HtmlString;
use ipl\Html\ValidHtml;
+#[\AllowDynamicProperties]
class ServiceDetailExtension extends ServiceDetailExtensionHook
{
use IcingaDbGrapher;
@ggzengel you can fix it temporary in the same way it is done in
application/controllers/IcingadbimgController.php
...
Thanks it works
Hello.
It looks like there is a similar problem in the IcingadbshowController:
Deprecated
: Creation of dynamic property Icinga\Module\Grafana\Controllers\IcingadbshowController::$object is deprecated in
/usr/share/icingaweb2/modules/grafana/application/controllers/IcingadbshowController.php
on line
86
If I access
/icingaweb2/icingadb/host?name=hosti
I get: