mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
monitoring/commands: Add form for enabling/disabling processing of host checks via the OCHP command on an Icinga instance
refs #6593
This commit is contained in:
parent
5a100ea99f
commit
ff10cdaf03
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
|
namespace Icinga\Module\Monitoring\Form\Command\Instance;
|
||||||
|
|
||||||
|
use Icinga\Module\Monitoring\Command\Instance\ToggleObsessingOverHostChecks;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form for enabling/disabling processing of host checks via the OCHP command on an Icinga instance
|
||||||
|
*/
|
||||||
|
class ToggleObsessingOverHostChecksCommandForm extends ToggleFeatureCommandForm
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* (non-PHPDoc)
|
||||||
|
* @see \Zend_Form::init() For the method documentation.
|
||||||
|
*/
|
||||||
|
public function init()
|
||||||
|
{
|
||||||
|
$this->setSubmitLabel(mt('monitoring', 'Toggle Obsessing Over Host Checks'));
|
||||||
|
$this->setFeature('obsess_over_hosts', mt('monitoring', 'Obsessing Over Hosts'));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the command which is to be sent to an Icinga instance
|
||||||
|
*
|
||||||
|
* @return ToggleObsessingOverHostChecks
|
||||||
|
*/
|
||||||
|
public function getCommand()
|
||||||
|
{
|
||||||
|
return new ToggleObsessingOverHostChecks();
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user