From c005ef434efcb302cfe0840ef58621a3eacee926 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 1 Sep 2014 16:21:49 +0200 Subject: [PATCH] monitoring/commands: Add form for enabling/disabling the processing of host and service performance data on an Icinga instance refs #6593 --- .../TogglePerformanceDataCommandForm.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 modules/monitoring/application/forms/Command/Instance/TogglePerformanceDataCommandForm.php diff --git a/modules/monitoring/application/forms/Command/Instance/TogglePerformanceDataCommandForm.php b/modules/monitoring/application/forms/Command/Instance/TogglePerformanceDataCommandForm.php new file mode 100644 index 000000000..b151cbb1b --- /dev/null +++ b/modules/monitoring/application/forms/Command/Instance/TogglePerformanceDataCommandForm.php @@ -0,0 +1,33 @@ +setSubmitLabel(mt('monitoring', 'Toggle Performance Data')); + $this->setFeature('process_performance_data', mt('monitoring', 'Performance Data Being Processed')); + } + + /** + * Get the command which is to be sent to an Icinga instance + * + * @return TogglePerformanceData + */ + public function getCommand() + { + return new TogglePerformanceData(); + } +}