summaryrefslogtreecommitdiffstats
path: root/library/Businessprocess/ProvidedHook/Monitoring/HostActions.php
blob: 57ce8f5eed5df50d45e73332dfe84ee743064666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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')
        );
    }
}