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