diff options
Diffstat (limited to 'library/Businessprocess/ProvidedHook/Monitoring/HostActions.php')
-rw-r--r-- | library/Businessprocess/ProvidedHook/Monitoring/HostActions.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/library/Businessprocess/ProvidedHook/Monitoring/HostActions.php b/library/Businessprocess/ProvidedHook/Monitoring/HostActions.php new file mode 100644 index 0000000..e2b9c59 --- /dev/null +++ b/library/Businessprocess/ProvidedHook/Monitoring/HostActions.php @@ -0,0 +1,19 @@ +<?php + +namespace Icinga\Module\Businessprocess\ProvidedHook\Monitoring; + +use Icinga\Module\Businessprocess\BpConfig; +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(BpConfig::joinNodeName($host->getName(), 'Hoststatus')) + ); + } +} |