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

refs #6593
This commit is contained in:
Eric Lippmann 2014-09-01 16:21:23 +02:00
parent 8686074fb1
commit d47951f9d6

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\TogglePassiveServiceChecks;
/**
* Form for enabling/disabling passive service checks on an Icinga instance
*/
class TogglePassiveServiceChecksCommandForm extends ToggleFeatureCommandForm
{
/**
* (non-PHPDoc)
* @see \Zend_Form::init() For the method documentation.
*/
public function init()
{
$this->setSubmitLabel(mt('monitoring', 'Toggle Passive Service Checks'));
$this->setFeature('passive_service_checks_enabled', mt('monitoring', 'Passive Service Checks Being Accepted'));
}
/**
* Get the command which is to be sent to an Icinga instance
*
* @return TogglePassiveServiceChecks
*/
public function getCommand()
{
return new TogglePassiveServiceChecks();
}
}