From cd29adc0bd43ca3219b0feda163c14baae75e38e Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 1 Sep 2014 15:11:51 +0200 Subject: [PATCH] monitoring/commands: Add (START|STOP)_OBSESSING_OVER_HOST_CHECKS commands `ToggleObsessingOverHostChecks' is the command object for enabling/disabling processing of host checks via the OCHP command on an Icinga instance. refs #6593 --- .../ToggleObsessingOverHostChecks.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/monitoring/library/Monitoring/Command/Instance/ToggleObsessingOverHostChecks.php diff --git a/modules/monitoring/library/Monitoring/Command/Instance/ToggleObsessingOverHostChecks.php b/modules/monitoring/library/Monitoring/Command/Instance/ToggleObsessingOverHostChecks.php new file mode 100644 index 000000000..0584c5e9c --- /dev/null +++ b/modules/monitoring/library/Monitoring/Command/Instance/ToggleObsessingOverHostChecks.php @@ -0,0 +1,22 @@ +enable === true ? 'START_OBSESSING_OVER_HOST_CHECKS' : 'STOP_OBSESSING_OVER_HOST_CHECKS'; + } +}