From 6c5c38d42594ab45d6635935d2ee410115d3da6b Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Tue, 15 Feb 2022 10:29:19 +0100 Subject: [PATCH] Provide native implementations for the hooks: icingadb/HostActions and icingadb/ServiceActions --- .../ProvidedHook/Icingadb/HostActions.php | 22 ++++++++++++++++ .../ProvidedHook/Icingadb/ServiceActions.php | 26 +++++++++++++++++++ run.php | 2 ++ 3 files changed, 50 insertions(+) create mode 100644 library/Businessprocess/ProvidedHook/Icingadb/HostActions.php create mode 100644 library/Businessprocess/ProvidedHook/Icingadb/ServiceActions.php diff --git a/library/Businessprocess/ProvidedHook/Icingadb/HostActions.php b/library/Businessprocess/ProvidedHook/Icingadb/HostActions.php new file mode 100644 index 0000000..27f4551 --- /dev/null +++ b/library/Businessprocess/ProvidedHook/Icingadb/HostActions.php @@ -0,0 +1,22 @@ +name . ';Hoststatus') + ) + ); + } +} diff --git a/library/Businessprocess/ProvidedHook/Icingadb/ServiceActions.php b/library/Businessprocess/ProvidedHook/Icingadb/ServiceActions.php new file mode 100644 index 0000000..24e6829 --- /dev/null +++ b/library/Businessprocess/ProvidedHook/Icingadb/ServiceActions.php @@ -0,0 +1,26 @@ +host->name, $service->name) + ) + ) + ) + ); + } +} diff --git a/run.php b/run.php index 3ca9f7e..3f05d06 100644 --- a/run.php +++ b/run.php @@ -2,5 +2,7 @@ $this->provideHook('monitoring/HostActions'); $this->provideHook('monitoring/ServiceActions'); +$this->provideHook('icingadb/HostActions'); +$this->provideHook('icingadb/ServiceActions'); $this->provideHook('icingadb/icingadbSupport'); //$this->provideHook('director/shipConfigFiles');