mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-25 05:22:53 -05:00
BusinessProcess: fallback for missing host
This commit is contained in:
parent
0251bc5edb
commit
924a2fd321
1 changed files with 5 additions and 1 deletions
|
|
@ -482,7 +482,11 @@ class BusinessProcess
|
|||
if ($pos !== false) {
|
||||
$host = substr($name, 0, $pos);
|
||||
$service = substr($name, $pos + 1);
|
||||
return $this->createService($host, $service);
|
||||
if ($service === 'Hoststatus') {
|
||||
return $this->create($host);
|
||||
} else {
|
||||
return $this->createService($host, $service);
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception(
|
||||
|
|
|
|||
Loading…
Reference in a new issue