#11550 Fix charts pie data

This commit is contained in:
miguel angel rasteu 2023-06-13 16:15:54 +02:00
parent 6a941f6cda
commit 5c1a04dbcd
1 changed files with 9 additions and 2 deletions

View File

@ -474,9 +474,16 @@ class TacticalWidget extends Widget
25
);
$table->data[0][0] .= \reporting_get_stats_alerts($data);
$table->cellstyle[0][0] = 'vertical-align: top;';
$table->cellstyle[0][0] = 'vertical-align: top;';
$table->data[0][1] = \reporting_get_stats_modules_status($data);
$data_agents = [];
$data_agents['Critical'] = $data['monitor_critical'];
$data_agents['Warning'] = $data['monitor_warning'];
$data_agents['Normal'] = $data['monitor_ok'];
$data_agents['Unknown'] = $data['monitor_unknown'];
$data_agents['Not init'] = $data['monitor_not_init'];
$table->data[0][1] = \reporting_get_stats_modules_status($data, 250, 150, false, $data_agents);
$table->data[0][1] .= '<br>';
$table->data[0][1] .= \reporting_get_stats_agents_monitors($data);
$table->data[0][1] .= '<br>';