icingaweb2-module-businessp.../library/Businessprocess/ProvidedHook/Monitoring/HostActions.php
Thomas Gelf b3df39d1b0 NodeController: add business impact action
Show all paths to a specific node to visualize it's business impact

fixes #8573
2017-01-10 16:49:53 +01:00

18 lines
490 B
PHP

<?php
namespace Icinga\Module\Businessprocess\ProvidedHook\Monitoring;
use Icinga\Module\Monitoring\Hook\HostActionsHook;
use Icinga\Module\Monitoring\Object\Host;
class HostActions extends HostActionsHook
{
public function getActionsForHost(Host $host)
{
$label = mt('businessprocess', 'Business Impact');
return array(
$label => 'businessprocess/node/impact?name='
. rawurlencode($host->getName() . ';Hoststatus')
);
}
}