From d2d69b9bcd3d12ce5d69783c8361a3273faf4937 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 1 Sep 2014 15:03:33 +0200 Subject: [PATCH] monitoring/commands: Add (START|STOP)_EXECUTING_HOST_CHECKS commands `ToggleActiveHostChecks' is the command object for enableing/disabling active host checks on an Icinga instance. refs #6593 --- .../Instance/ToggleActiveHostChecks.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/monitoring/library/Monitoring/Command/Instance/ToggleActiveHostChecks.php diff --git a/modules/monitoring/library/Monitoring/Command/Instance/ToggleActiveHostChecks.php b/modules/monitoring/library/Monitoring/Command/Instance/ToggleActiveHostChecks.php new file mode 100644 index 000000000..99ea2992f --- /dev/null +++ b/modules/monitoring/library/Monitoring/Command/Instance/ToggleActiveHostChecks.php @@ -0,0 +1,22 @@ +enable === true ? 'START_EXECUTING_HOST_CHECKS' : 'STOP_EXECUTING_HOST_CHECKS'; + } +}