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

refs 
This commit is contained in:
Eric Lippmann 2014-09-01 16:16:47 +02:00
parent 920c0b9c6d
commit e2cdff67b2

@ -0,0 +1,33 @@
<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Icinga\Module\Monitoring\Form\Command\Instance;
use Icinga\Module\Monitoring\Command\Instance\ToggleActiveHostChecks;
/**
* Form for enabling/disabling active host checks on an Icinga instance
*/
class ToggleActiveHostChecksCommandForm extends ToggleFeatureCommandForm
{
/**
* (non-PHPDoc)
* @see \Zend_Form::init() For the method documentation.
*/
public function init()
{
$this->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();
}
}