monitoring/commands: Add (ENABLE|DISABLE)_EVENT_HANDLERS commands
`ToggleEventHandlers' is the command object for enabling/disabling host and service event handlers on an Icinga instance. refs #6593
This commit is contained in:
parent
fda48788ff
commit
010c5b45ba
|
@ -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 host and service event handlers on an Icinga instance
|
||||
*/
|
||||
class ToggleEventHandlers extends ToggleFeature
|
||||
{
|
||||
/**
|
||||
* (non-PHPDoc)
|
||||
* @see \Icinga\Module\Monitoring\Command\IcingaCommand::getCommandString() For the method documentation.
|
||||
*/
|
||||
public function getCommandString()
|
||||
{
|
||||
return $this->enable === true ? 'ENABLE_EVENT_HANDLERS' : 'DISABLE_EVENT_HANDLERS';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue