From 5e01c8892ab74d8fe849a244028a40c24e20e7a5 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Fri, 15 Jan 2016 13:20:55 +0100 Subject: [PATCH] Added visual data to not init monitors in group view. --- pandora_console/operation/agentes/group_view.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandora_console/operation/agentes/group_view.php b/pandora_console/operation/agentes/group_view.php index 5ee106cae5..a4756339bb 100644 --- a/pandora_console/operation/agentes/group_view.php +++ b/pandora_console/operation/agentes/group_view.php @@ -75,19 +75,20 @@ foreach ($all_data as $group_all_data) { $monitor_warning += $group_all_data["_monitors_warning_"]; $monitor_critical += $group_all_data["_monitors_critical_"]; $monitor_unknown += $group_all_data["_monitors_unknown_"]; + $monitor_not_init += $group_all_data["_monitors_not_init_"]; $agents_unknown += $group_all_data["_agents_unknown_"]; $agents_notinit += $group_all_data["_agents_not_init_"]; } -$total = $monitor_ok + $monitor_warning + $monitor_critical + $monitor_unknown; +$total = $monitor_ok + $monitor_warning + $monitor_critical + $monitor_unknown + $monitor_not_init; //Monitors $total_ok = format_numeric (($monitor_ok*100)/$total,2); $total_warning = format_numeric (($monitor_warning*100)/$total,2); $total_critical = format_numeric (($monitor_critical*100)/$total,2); $total_unknown = format_numeric (($monitor_unknown*100)/$total,2); - +$total_monitor_not_init = format_numeric (($monitor_not_init*100)/$total,2); //Agents $total_agent_unknown = format_numeric (($agents_unknown*100)/$total_agentes,2); $total_not_init = format_numeric (($agents_notinit*100)/$total_agentes,2); @@ -105,6 +106,7 @@ echo '". $total_warning ."%"; echo "". $total_ok ."%"; echo "". $total_unknown ."%"; + echo "". $total_monitor_not_init ."%"; echo ""; echo ""; echo "
";