parent
a4e5bb5559
commit
0aff644749
|
@ -70,12 +70,12 @@ class HostController extends ObjectController
|
||||||
{
|
{
|
||||||
return $this->getHostgroupRestriction()->allowsHost($object);
|
return $this->getHostgroupRestriction()->allowsHost($object);
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
public function editAction()
|
public function editAction()
|
||||||
{
|
{
|
||||||
parent::editAction();
|
parent::editAction();
|
||||||
$host = $this->object;
|
$host = $this->object;
|
||||||
|
try {
|
||||||
$mon = $this->monitoring();
|
$mon = $this->monitoring();
|
||||||
if ($host->isObject() && $mon->isAvailable() && $mon->hasHost($host->object_name)) {
|
if ($host->isObject() && $mon->isAvailable() && $mon->hasHost($host->object_name)) {
|
||||||
$this->actions()->add(Link::create(
|
$this->actions()->add(Link::create(
|
||||||
|
@ -88,6 +88,9 @@ class HostController extends ObjectController
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
// Silently ignore errors in the monitoring module
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function servicesAction()
|
public function servicesAction()
|
||||||
|
|
Loading…
Reference in New Issue