From 389c6aeada36d0b49a27116099c7f0bcb6211066 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Thu, 1 Feb 2018 10:54:17 +0100 Subject: [PATCH] Change last update text when not init - #1748 --- pandora_console/godmode/reporting/cluster_view.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/reporting/cluster_view.php b/pandora_console/godmode/reporting/cluster_view.php index 3bfa7881ee..d76e1a241e 100644 --- a/pandora_console/godmode/reporting/cluster_view.php +++ b/pandora_console/godmode/reporting/cluster_view.php @@ -67,9 +67,9 @@ echo ""; $cluster_module_central = db_process_sql('select id_agente_modulo from tagente_modulo where id_agente = (select id_agent from tcluster where id = '.$id_cluster.') and nombre = "Cluster status"'); - $cluster_module_status = modules_get_agentmodule_last_status($cluster_module_central[0]['id_agente_modulo']); + $cluster_module_central_status = modules_get_agentmodule_last_status($cluster_module_central[0]['id_agente_modulo']); - switch ($cluster_module_status) { + switch ($cluster_module_central_status) { case 1: echo "
@@ -241,7 +241,14 @@ echo "
"; $last_run_difference .= $last_run_difference_seconds.' second/s ago'; echo "
".__('LAST UPDATE')."
"; - echo "
".$last_run_difference."
"; + + if($cluster_module_central_status == 4){ + echo "
".__('Not init')."
"; + }else{ + echo "
".$last_run_difference."
"; + } + + echo "
";