";
// Force
echo "";
if (!isset($data['_is_tag_']) && check_acl($config['id_user'], $data['_id_'], 'AW')) {
echo ''.html_print_image(
'images/target.png',
true,
[
'border' => '0',
'title' => __('Force'),
'class' => 'invert_filter',
]
).'';
}
echo ' | ';
$prefix = '';
if (!isset($data['_is_tag_'])) {
if ($data['_id_'] != 0) {
$prefix = ' ';
}
}
// Groupname and Tags
echo '';
if (isset($data['_is_tag_'])) {
$deep = '';
$link = "";
} else {
$deep = groups_get_group_deep($data['_id_']);
$link = "";
}
$group_name = ''.ui_print_truncate_text($data['_name_'], 50).'';
$item_icon = '';
if (isset($data['_iconImg_']) && !empty($data['_iconImg_'])) {
$item_icon = $data['_iconImg_'];
}
if ($data['_name_'] != 'All') {
echo $deep.$link.$group_name.'';
} else {
$hint = '';
if (enterprise_hook('agents_is_using_secondary_groups')) {
$hint = ui_print_help_tip(__('This %s installation are using the secondary groups feature. For this reason, an agent can be counted several times.', get_product_name()));
}
echo $link.$group_name.''.$hint;
}
if (isset($data['_is_tag_'])) {
echo ''.html_print_image('images/tag.png', true, ['border' => '0', 'style' => 'width:18px;margin-left:5px', 'title' => __('Tag')]).'';
}
echo ' | ';
// Total agents
echo "";
if (isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if ($data['_id_'] == 0) {
echo $link.$total_agentes.'';
}
if ($data['_total_agents_'] > 0 && $data['_id_'] != 0) {
echo $link.$data['_total_agents_'].'';
}
echo ' | ';
// Agents unknown
echo "";
if (isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($agents_unknown != 0)) {
echo $link.$agents_unknown.'';
}
if ($data['_agents_unknown_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_agents_unknown_'].'';
}
echo ' | ';
// Agents not init
echo "";
if (isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($agents_notinit != 0)) {
echo $link.$agents_notinit.'';
}
if ($data['_agents_not_init_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_agents_not_init_'].'';
}
echo ' | ';
// Agents Normal
echo "";
if (isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($agents_ok != 0)) {
echo $link.$agents_ok.'';
}
if ($data['_agents_ok_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_agents_ok_'].'';
}
echo ' | ';
// Agents warning
echo "";
if (isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($agents_warning != 0)) {
echo $link.$agents_warning.'';
}
if ($data['_agents_warning_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_agents_warning_'].'';
}
echo ' | ';
// Agents critical
echo "";
if (isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($agents_critical != 0)) {
echo $link.$agents_critical.'';
}
if ($data['_agents_critical_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_agents_critical_'].'';
}
echo ' | ';
// Monitors unknown
echo "";
if (!isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($monitor_unknown != 0)) {
echo $link.$monitor_unknown.'';
}
if ($data['_monitors_unknown_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_monitors_unknown_'].'';
}
echo ' | ';
// Monitors not init
echo "";
if (!isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($monitor_not_init != 0)) {
echo $link.$monitor_not_init.'';
}
if ($data['_monitors_not_init_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_monitors_not_init_'].'';
}
echo ' | ';
// Monitors OK
echo "";
if (!isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($monitor_ok != 0)) {
echo $link.$monitor_ok.'';
}
if ($data['_monitors_ok_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_monitors_ok_'].'';
}
echo ' | ';
// Monitors Warning
echo "";
if (!isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($monitor_warning != 0)) {
echo $link.$monitor_warning.'';
}
if ($data['_monitors_warning_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_monitors_warning_'].'';
}
echo ' | ';
// Monitors Critical
echo "";
if (!isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($monitor_critical != 0)) {
echo $link.$monitor_critical.'';
}
if ($data['_monitors_critical_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_monitors_critical_'].'';
}
echo ' | ';
// Alerts fired
echo "";
if (!isset($data['_is_tag_'])) {
$link = "";
} else {
$link = "";
}
if (($data['_id_'] == 0) && ($all_alerts_fired != 0)) {
echo $link.$all_alerts_fired.'';
}
if ($data['_monitors_alerts_fired_'] > 0 && ($data['_id_'] != 0)) {
echo $link.$data['_monitors_alerts_fired_'].'';
}
echo ' | ';
echo '
';
}
echo '