From ff10cdaf033744ce82e46f2abb61170d948c880f Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 1 Sep 2014 16:20:07 +0200 Subject: [PATCH] monitoring/commands: Add form for enabling/disabling processing of host checks via the OCHP command on an Icinga instance refs #6593 --- ...ggleObsessingOverHostChecksCommandForm.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 modules/monitoring/application/forms/Command/Instance/ToggleObsessingOverHostChecksCommandForm.php diff --git a/modules/monitoring/application/forms/Command/Instance/ToggleObsessingOverHostChecksCommandForm.php b/modules/monitoring/application/forms/Command/Instance/ToggleObsessingOverHostChecksCommandForm.php new file mode 100644 index 000000000..3e230e639 --- /dev/null +++ b/modules/monitoring/application/forms/Command/Instance/ToggleObsessingOverHostChecksCommandForm.php @@ -0,0 +1,33 @@ +setSubmitLabel(mt('monitoring', 'Toggle Obsessing Over Host Checks')); + $this->setFeature('obsess_over_hosts', mt('monitoring', 'Obsessing Over Hosts')); + } + + /** + * Get the command which is to be sent to an Icinga instance + * + * @return ToggleObsessingOverHostChecks + */ + public function getCommand() + { + return new ToggleObsessingOverHostChecks(); + } +}