#12376 fixed color group and fixed status color in heatmap

This commit is contained in:
Daniel Cebrian 2023-11-08 13:15:05 +01:00
parent cacb524ece
commit 7223423dc7
2 changed files with 8 additions and 3 deletions

View File

@ -148,11 +148,16 @@ class Groups extends Element
$cont = 1;
foreach ($modules as $key => $value) {
$module_id = $value['id_agente_modulo'];
$db_status = modules_get_agentmodule_status($module_id);
$module_status = db_get_row(
'tagente_estado',
'id_agente_modulo',
$module_id,
);
$module_value = modules_get_last_value($module_id);
$status = '';
$title = '';
modules_get_status($module_id, $db_status, $module_value, $status, $title);
modules_get_status($module_id, $module_status['estado'], $module_value, $status, $title);
switch ($status) {
case STATUS_MODULE_NO_DATA:
// Not init status.

View File

@ -246,7 +246,7 @@
<div class="subtitle">
<?php echo __('Active alerts'); ?>
</div>
<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_list"><?php echo $Alerts->getActiveAlerts(); ?></a>
<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_list&status_alert=all_enabled"><?php echo $Alerts->getActiveAlerts(); ?></a>
</div>
</div>
<?php if ($Alerts->checkAclUserList() === true) : ?>