mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
monitoring/commands: Add form for enabling/disabling active service checks on an Icinga instance
refs #6593
This commit is contained in:
parent
e2cdff67b2
commit
e8b70ffccd
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
|
||||
namespace Icinga\Module\Monitoring\Form\Command\Instance;
|
||||
|
||||
use Icinga\Module\Monitoring\Command\Instance\ToggleActiveServiceChecks;
|
||||
|
||||
/**
|
||||
* Form for enabling/disabling active service checks on an Icinga instance
|
||||
*/
|
||||
class ToggleActiveServiceChecksCommandForm extends ToggleFeatureCommandForm
|
||||
{
|
||||
/**
|
||||
* (non-PHPDoc)
|
||||
* @see \Zend_Form::init() For the method documentation.
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
$this->setSubmitLabel(mt('monitoring', 'Toggle Active Service Checks'));
|
||||
$this->setFeature('active_service_checks_enabled', mt('monitoring', 'Active Service Checks Being Executed'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the command which is to be sent to an Icinga instance
|
||||
*
|
||||
* @return ToggleActiveServiceChecks
|
||||
*/
|
||||
public function getCommand()
|
||||
{
|
||||
return new ToggleActiveServiceChecks();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user