mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
BackgroundDaemonDetails: support RPC info
This commit is contained in:
parent
b6284e7898
commit
63e3a69611
@ -97,7 +97,13 @@ class BackgroundDaemonDetails extends BaseHtmlElement
|
||||
)));
|
||||
|
||||
$this->add(Html::tag('h2', $this->translate('Process List')));
|
||||
$processes = \json_decode($this->daemon->process_info);
|
||||
if (\is_string($this->daemon->process_info)) {
|
||||
// from DB:
|
||||
$processes = \json_decode($this->daemon->process_info);
|
||||
} else {
|
||||
// via RPC:
|
||||
$processes = $this->daemon->process_info;
|
||||
}
|
||||
$table = new Table();
|
||||
$table->add(Html::tag('thead', Html::tag('tr', Html::wrapEach([
|
||||
'PID',
|
||||
|
Loading…
x
Reference in New Issue
Block a user