monitoring/commands: Add (START|STOP)_EXECUTING_HOST_CHECKS commands
`ToggleActiveHostChecks' is the command object for enableing/disabling active host checks on an Icinga instance. refs #6593
This commit is contained in:
parent
dae29678dd
commit
d2d69b9bcd
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
|
||||
namespace Icinga\Module\Monitoring\Command\Instance;
|
||||
|
||||
use Icinga\Module\Monitoring\Command\Common\ToggleFeature;
|
||||
|
||||
/**
|
||||
* Enable/disable active host checks on an Icinga instance
|
||||
*/
|
||||
class ToggleActiveHostChecks extends ToggleFeature
|
||||
{
|
||||
/**
|
||||
* (non-PHPDoc)
|
||||
* @see \Icinga\Module\Monitoring\Command\IcingaCommand::getCommandString() For the method documentation.
|
||||
*/
|
||||
public function getCommandString()
|
||||
{
|
||||
return $this->enable === true ? 'START_EXECUTING_HOST_CHECKS' : 'STOP_EXECUTING_HOST_CHECKS';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue