From 4143019412a07acb1a9035677f3aa181981fed32 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 6 Jun 2023 15:07:04 +0200 Subject: [PATCH 1/2] IcingaDbState: `last_state_change` is now a DateTime Obj ref https://github.com/Icinga/icingadb-web/pull/753 --- library/Businessprocess/State/IcingaDbState.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Businessprocess/State/IcingaDbState.php b/library/Businessprocess/State/IcingaDbState.php index 68ac45d..0eb0927 100644 --- a/library/Businessprocess/State/IcingaDbState.php +++ b/library/Businessprocess/State/IcingaDbState.php @@ -122,7 +122,7 @@ class IcingaDbState } if ($row->state->last_state_change !== null) { - $node->setLastStateChange($row->state->last_state_change/1000); + $node->setLastStateChange($row->state->last_state_change->getTimestamp()); } if ($row->state->in_downtime) { $node->setDowntime(true); From 8449d56c075c0f397f696bd7a7b683f2f355eb15 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 6 Jun 2023 16:01:09 +0200 Subject: [PATCH 2/2] module.info: Require icingadb module version `>=1.1.0` --- module.info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.info b/module.info index 81092a0..2e988fa 100644 --- a/module.info +++ b/module.info @@ -2,7 +2,7 @@ Name: Businessprocess Version: 2.4.0 Requires: Libraries: icinga-php-library (>=0.8.0), icinga-php-thirdparty (>=0.11.0) - Modules: monitoring (>=2.9.0), icingadb (>=1.0.0) + Modules: monitoring (>=2.9.0), icingadb (>=1.1.0) Description: A Business Process viewer and modeler Provides a web-based process modeler for Icinga. It integrates as a module into Icinga Web 2 and provides a plugin check command for Icinga. Tile and tree