From e2cdff67b24bab36ff58a2a16460af3db9c404ce Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 1 Sep 2014 16:16:47 +0200 Subject: [PATCH] monitoring/commands: Add form for enabling/disabling active host checks on an Icinga instance refs #6593 --- .../ToggleActiveHostChecksCommandForm.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 modules/monitoring/application/forms/Command/Instance/ToggleActiveHostChecksCommandForm.php diff --git a/modules/monitoring/application/forms/Command/Instance/ToggleActiveHostChecksCommandForm.php b/modules/monitoring/application/forms/Command/Instance/ToggleActiveHostChecksCommandForm.php new file mode 100644 index 000000000..0ee0fe2ee --- /dev/null +++ b/modules/monitoring/application/forms/Command/Instance/ToggleActiveHostChecksCommandForm.php @@ -0,0 +1,33 @@ +setSubmitLabel(mt('monitoring', 'Toggle Active Host Checks')); + $this->setFeature('active_host_checks_enabled', mt('monitoring', 'Active Host Checks Being Executed')); + } + + /** + * Get the command which is to be sent to an Icinga instance + * + * @return ToggleActiveHostChecks + */ + public function getCommand() + { + return new ToggleActiveHostChecks(); + } +}