monitoring/commands: Add form for enabling/disabling active service checks on an Icinga instance

refs #6593
This commit is contained in:
Eric Lippmann 2014-09-01 16:17:13 +02:00
parent e2cdff67b2
commit e8b70ffccd

View File

@ -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();
}
}