mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-06-26 08:40:11 +02:00
`ToggleActiveServiceChecks' is the command object for enabling/disabling active service checks on an Icinga instance. refs #6593
23 lines
608 B
PHP
23 lines
608 B
PHP
<?php
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
namespace Icinga\Module\Monitoring\Command\Instance;
|
|
|
|
use Icinga\Module\Monitoring\Command\Common\ToggleFeature;
|
|
|
|
/**
|
|
* Enable/disable active service checks on an Icinga instance
|
|
*/
|
|
class ToggleActiveServiceChecks extends ToggleFeature
|
|
{
|
|
/**
|
|
* (non-PHPDoc)
|
|
* @see \Icinga\Module\Monitoring\Command\IcingaCommand::getCommandString() For the method documentation.
|
|
*/
|
|
public function getCommandString()
|
|
{
|
|
return $this->enable === true ? 'START_EXECUTING_SVC_CHECKS' : 'STOP_EXECUTING_SVC_CHECKS';
|
|
}
|
|
}
|