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