Icons added

This commit is contained in:
Jose Gonzalez 2023-02-23 16:47:51 +01:00
parent fbca56500a
commit 65c2d09194
2 changed files with 87 additions and 78 deletions

View File

@ -11965,7 +11965,7 @@ function reporting_get_stats_alerts($data, $links=false)
$table_al = html_get_predefined_table(); $table_al = html_get_predefined_table();
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/bell.png', true, ['title' => __('Defined alerts'), 'class' => 'invert_filter'], false, false, false, true); $tdata[0] = html_print_image('images/alert@svg.svg', true, ['title' => __('Defined alerts'), 'class' => 'main_menu_icon invert_filter'], false, false, false, true);
$tdata[1] = $data['monitor_alerts'] <= 0 ? '-' : $data['monitor_alerts']; $tdata[1] = $data['monitor_alerts'] <= 0 ? '-' : $data['monitor_alerts'];
$tdata[1] = '<a class="big_data" href="'.$urls['monitor_alerts'].'">'.$tdata[1].'</a>'; $tdata[1] = '<a class="big_data" href="'.$urls['monitor_alerts'].'">'.$tdata[1].'</a>';
@ -11976,10 +11976,19 @@ function reporting_get_stats_alerts($data, $links=false)
*/ */
if ($data['monitor_alerts'] > $data['total_agents'] && !enterprise_installed()) { if ($data['monitor_alerts'] > $data['total_agents'] && !enterprise_installed()) {
$tdata[2] = "<div id='alertagentmodal' class='publienterprise' title='Community version' ><img data-title='".__('Enterprise version not installed')."' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div>"; $tdata[2] = "<div id='alertagentmodal' class='publienterprise' title='Community version' ><img data-title='".__('Enterprise version not installed')."' class='img_help forced_title main_menu_icon' data-use_title_for_force_title='1' src='images/alert-yellow@svg.svg'></div>";
} }
$tdata[3] = html_print_image( $tdata[3] = html_print_div(
[
'title' => __('Fired alerts'),
'style' => 'background-color: '.COL_CRITICAL,
'class' => 'alert_background_state main_menu_icon invert_filter',
],
true
);
/*
html_print_image(
'images/bell_error.png', 'images/bell_error.png',
true, true,
[ [
@ -11990,7 +11999,7 @@ function reporting_get_stats_alerts($data, $links=false)
false, false,
false, false,
true true
); );*/
$tdata[4] = $data['monitor_alerts_fired'] <= 0 ? '-' : $data['monitor_alerts_fired']; $tdata[4] = $data['monitor_alerts_fired'] <= 0 ? '-' : $data['monitor_alerts_fired'];
$tdata[4] = '<a style="color: '.COL_ALERTFIRED.';" class="big_data" href="'.$urls['monitor_alerts_fired'].'">'.$tdata[4].'</a>'; $tdata[4] = '<a style="color: '.COL_ALERTFIRED.';" class="big_data" href="'.$urls['monitor_alerts_fired'].'">'.$tdata[4].'</a>';
$table_al->rowclass[] = ''; $table_al->rowclass[] = '';
@ -12041,29 +12050,29 @@ function reporting_get_stats_modules_status($data, $graph_width=250, $graph_heig
$table_mbs = html_get_predefined_table(); $table_mbs = html_get_predefined_table();
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/module_critical.png', true, ['title' => __('Monitor critical')], false, false, false, true); $tdata[0] = html_print_div(['class' => 'main_menu_icon module_background_state', 'style' => 'background-color: '.COL_CRITICAL, 'title' => __('Monitor critical')], true);
$tdata[1] = $data['monitor_critical'] <= 0 ? '-' : $data['monitor_critical']; $tdata[1] = $data['monitor_critical'] <= 0 ? '-' : $data['monitor_critical'];
$tdata[1] = '<a style="color: '.COL_CRITICAL.';" class="big_data line_heigth_initial" href="'.$urls['monitor_critical'].'">'.$tdata[1].'</a>'; $tdata[1] = '<a style="color: '.COL_CRITICAL.';" class="big_data line_heigth_initial" href="'.$urls['monitor_critical'].'">'.$tdata[1].'</a>';
$tdata[2] = html_print_image('images/module_warning.png', true, ['title' => __('Monitor warning')], false, false, false, true); $tdata[2] = html_print_div(['class' => 'main_menu_icon module_background_state', 'style' => 'background-color: '.COL_WARNING_DARK, 'title' => __('Monitor warning')], true);
$tdata[3] = $data['monitor_warning'] <= 0 ? '-' : $data['monitor_warning']; $tdata[3] = $data['monitor_warning'] <= 0 ? '-' : $data['monitor_warning'];
$tdata[3] = '<a style="color: '.COL_WARNING_DARK.';" class="big_data line_heigth_initial" href="'.$urls['monitor_warning'].'">'.$tdata[3].'</a>'; $tdata[3] = '<a style="color: '.COL_WARNING_DARK.';" class="big_data line_heigth_initial" href="'.$urls['monitor_warning'].'">'.$tdata[3].'</a>';
$table_mbs->rowclass[] = ''; $table_mbs->rowclass[] = '';
$table_mbs->data[] = $tdata; $table_mbs->data[] = $tdata;
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/module_ok.png', true, ['title' => __('Monitor normal')], false, false, false, true); $tdata[0] = html_print_div(['class' => 'main_menu_icon module_background_state', 'style' => 'background-color: '.COL_NORMAL, 'title' => __('Monitor normal')], true);
$tdata[1] = $data['monitor_ok'] <= 0 ? '-' : $data['monitor_ok']; $tdata[1] = $data['monitor_ok'] <= 0 ? '-' : $data['monitor_ok'];
$tdata[1] = '<a style="color: '.COL_NORMAL.';" class="big_data" href="'.$urls['monitor_ok'].'">'.$tdata[1].'</a>'; $tdata[1] = '<a style="color: '.COL_NORMAL.';" class="big_data" href="'.$urls['monitor_ok'].'">'.$tdata[1].'</a>';
$tdata[2] = html_print_image('images/module_unknown.png', true, ['title' => __('Monitor unknown')], false, false, false, true); $tdata[2] = html_print_div(['class' => 'main_menu_icon module_background_state', 'style' => 'background-color: '.COL_UNKNOWN, 'title' => __('Monitor unknown')], true);
$tdata[3] = $data['monitor_unknown'] <= 0 ? '-' : $data['monitor_unknown']; $tdata[3] = $data['monitor_unknown'] <= 0 ? '-' : $data['monitor_unknown'];
$tdata[3] = '<a style="color: '.COL_UNKNOWN.';" class="big_data line_heigth_initial" href="'.$urls['monitor_unknown'].'">'.$tdata[3].'</a>'; $tdata[3] = '<a style="color: '.COL_UNKNOWN.';" class="big_data line_heigth_initial" href="'.$urls['monitor_unknown'].'">'.$tdata[3].'</a>';
$table_mbs->rowclass[] = ''; $table_mbs->rowclass[] = '';
$table_mbs->data[] = $tdata; $table_mbs->data[] = $tdata;
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/module_notinit.png', true, ['title' => __('Monitor not init')], false, false, false, true); $tdata[0] = html_print_div(['class' => 'main_menu_icon module_background_state', 'style' => 'background-color: '.COL_NOTINIT, 'title' => __('Monitor not init')], true);
$tdata[1] = $data['monitor_not_init'] <= 0 ? '-' : $data['monitor_not_init']; $tdata[1] = $data['monitor_not_init'] <= 0 ? '-' : $data['monitor_not_init'];
$tdata[1] = '<a style="color: '.COL_NOTINIT.';" class="big_data line_heigth_initial" href="'.$urls['monitor_not_init'].'">'.$tdata[1].'</a>'; $tdata[1] = '<a style="color: '.COL_NOTINIT.';" class="big_data line_heigth_initial" href="'.$urls['monitor_not_init'].'">'.$tdata[1].'</a>';
@ -12122,7 +12131,7 @@ function reporting_get_stats_agents_monitors($data)
$table_am = html_get_predefined_table(); $table_am = html_get_predefined_table();
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/agent.png', true, ['title' => __('Total agents'), 'class' => 'invert_filter'], false, false, false, true); $tdata[0] = html_print_image('images/agents@svg.svg', true, ['title' => __('Total agents'), 'class' => 'invert_filter main_menu_icon'], false, false, false, true);
$tdata[1] = $data['total_agents'] <= 0 ? '-' : $data['total_agents']; $tdata[1] = $data['total_agents'] <= 0 ? '-' : $data['total_agents'];
$tdata[1] = '<a class="big_data" href="'.$urls['total_agents'].'">'.$tdata[1].'</a>'; $tdata[1] = '<a class="big_data" href="'.$urls['total_agents'].'">'.$tdata[1].'</a>';
@ -12133,10 +12142,10 @@ function reporting_get_stats_agents_monitors($data)
*/ */
if ($data['total_agents'] > 500 && !enterprise_installed()) { if ($data['total_agents'] > 500 && !enterprise_installed()) {
$tdata[2] = "<div id='agentsmodal' class='publienterprise' title='".__('Enterprise version not installed')."'><img data-title='Enterprise version' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div>"; $tdata[2] = "<div id='agentsmodal' class='publienterprise' title='".__('Enterprise version not installed')."'><img data-title='Enterprise version' class='img_help forced_title main_menu_icon' data-use_title_for_force_title='1' src='images/alert-yellow@svg.svg'></div>";
} }
$tdata[3] = html_print_image('images/module.png', true, ['title' => __('Monitor checks'), 'class' => 'invert_filter'], false, false, false, true); $tdata[3] = html_print_image('images/modules@svg.svg', true, ['title' => __('Monitor checks'), 'class' => 'main_menu_icon invert_filter'], false, false, false, true);
$tdata[4] = $data['monitor_total'] <= 0 ? '-' : $data['monitor_total']; $tdata[4] = $data['monitor_total'] <= 0 ? '-' : $data['monitor_total'];
$tdata[4] = '<a class="big_data" href="'.$urls['monitor_total'].'">'.$tdata[4].'</a>'; $tdata[4] = '<a class="big_data" href="'.$urls['monitor_total'].'">'.$tdata[4].'</a>';
@ -12147,7 +12156,7 @@ function reporting_get_stats_agents_monitors($data)
*/ */
if ($data['total_agents']) { if ($data['total_agents']) {
if (($data['monitor_total'] / $data['total_agents'] > 100) && !enterprise_installed()) { if (($data['monitor_total'] / $data['total_agents'] > 100) && !enterprise_installed()) {
$tdata[5] = "<div id='monitorcheckmodal' class='publienterprise' title='Community version' ><img data-title='".__('Enterprise version not installed')."' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div>"; $tdata[5] = "<div id='monitorcheckmodal' class='publienterprise' title='Community version' ><img data-title='".__('Enterprise version not installed')."' class='img_help forced_title main_menu_icon' data-use_title_for_force_title='1' src='images/alert-yellow@svg.svg'></div>";
} }
} }
@ -12177,7 +12186,7 @@ function reporting_get_stats_users($data)
$table_us = html_get_predefined_table(); $table_us = html_get_predefined_table();
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/user.png', true, ['title' => __('Defined users'), 'class' => 'invert_filter']); $tdata[0] = html_print_image('images/user.svg', true, ['title' => __('Defined users'), 'class' => 'main_menu_icon invert_filter']);
$user_is_admin = users_is_admin(); $user_is_admin = users_is_admin();
$users = []; $users = [];
@ -14453,10 +14462,10 @@ function reporting_get_stats_servers()
$table_srv->style[1] = $table_srv->style[3] = 'text-align: left; padding: 5px;'; $table_srv->style[1] = $table_srv->style[3] = 'text-align: left; padding: 5px;';
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/module.png', true, ['title' => __('Total running modules'), 'class' => 'invert_filter']); $tdata[0] = html_print_image('images/modules@svg.svg', true, ['title' => __('Total running modules'), 'class' => 'main_menu_icon invert_filter']);
$tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_modules']).'</span>'; $tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_modules']).'</span>';
$tdata[2] = '<span class="med_data">'.format_numeric($server_performance['total_modules_rate'], 2).'</span>'; $tdata[2] = '<span class="med_data">'.format_numeric($server_performance['total_modules_rate'], 2).'</span>';
$tdata[3] = html_print_image('images/module.png', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'invert_filter']).'/sec </span>'; $tdata[3] = html_print_image('images/modules@svg.svg', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'main_menu_icon invert_filter']).'/sec </span>';
$table_srv->rowclass[] = ''; $table_srv->rowclass[] = '';
$table_srv->data[] = $tdata; $table_srv->data[] = $tdata;
@ -14468,25 +14477,25 @@ function reporting_get_stats_servers()
$table_srv->data[] = $tdata; $table_srv->data[] = $tdata;
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/database.png', true, ['title' => __('Local modules'), 'class' => 'invert_filter']); $tdata[0] = html_print_image('images/data-server@svg.svg', true, ['title' => __('Local modules'), 'class' => 'main_menu_icon invert_filter']);
$tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_local_modules']).'</span>'; $tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_local_modules']).'</span>';
$tdata[2] = '<span class="med_data">'.format_numeric($server_performance['local_modules_rate'], 2).'</span>'; $tdata[2] = '<span class="med_data">'.format_numeric($server_performance['local_modules_rate'], 2).'</span>';
$tdata[3] = html_print_image('images/module.png', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'invert_filter']).'/sec </span>'; $tdata[3] = html_print_image('images/modules@svg.svg', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'main_menu_icon invert_filter']).'/sec </span>';
$table_srv->rowclass[] = ''; $table_srv->rowclass[] = '';
$table_srv->data[] = $tdata; $table_srv->data[] = $tdata;
if (isset($server_performance['total_network_modules'])) { if (isset($server_performance['total_network_modules'])) {
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/network.png', true, ['title' => __('Network modules'), 'class' => 'invert_filter']); $tdata[0] = html_print_image('images/network@svg.svg', true, ['title' => __('Network modules'), 'class' => 'main_menu_icon invert_filter']);
$tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_network_modules']).'</span>'; $tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_network_modules']).'</span>';
$tdata[2] = '<span class="med_data">'.format_numeric($server_performance['network_modules_rate'], 2).'</span>'; $tdata[2] = '<span class="med_data">'.format_numeric($server_performance['network_modules_rate'], 2).'</span>';
$tdata[3] = html_print_image('images/module.png', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'invert_filter']).'/sec </span>'; $tdata[3] = html_print_image('images/modules@svg.svg', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'main_menu_icon invert_filter']).'/sec </span>';
if ($server_performance['total_remote_modules'] > 10000 && !enterprise_installed()) { if ($server_performance['total_remote_modules'] > 10000 && !enterprise_installed()) {
$tdata[4] = "<div id='remotemodulesmodal' class='publienterprise left' title='Community version'><img data-title='".__('Enterprise version not installed')."' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div>"; $tdata[4] = "<div id='remotemodulesmodal' class='publienterprise left' title='Community version'><img data-title='".__('Enterprise version not installed')."' class='img_help forced_title main_menu_icon' data-use_title_for_force_title='1' src='images/alert-yellow@svg.svg'></div>";
} else { } else {
$tdata[4] = '&nbsp;'; $tdata[4] = '&nbsp;';
} }
@ -14497,11 +14506,11 @@ function reporting_get_stats_servers()
if (isset($server_performance['total_plugin_modules'])) { if (isset($server_performance['total_plugin_modules'])) {
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/plugin.png', true, ['title' => __('Plugin modules'), 'class' => 'invert_filter']); $tdata[0] = html_print_image('images/plugins@svg.svg', true, ['title' => __('Plugin modules'), 'class' => 'main_menu_icon invert_filter']);
$tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_plugin_modules']).'</span>'; $tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_plugin_modules']).'</span>';
$tdata[2] = '<span class="med_data">'.format_numeric($server_performance['plugin_modules_rate'], 2).'</span>'; $tdata[2] = '<span class="med_data">'.format_numeric($server_performance['plugin_modules_rate'], 2).'</span>';
$tdata[3] = html_print_image('images/module.png', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'invert_filter']).'/sec </span>'; $tdata[3] = html_print_image('images/modules@svg.svg', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'main_menu_icon invert_filter']).'/sec </span>';
$table_srv->rowclass[] = ''; $table_srv->rowclass[] = '';
$table_srv->data[] = $tdata; $table_srv->data[] = $tdata;
@ -14509,11 +14518,11 @@ function reporting_get_stats_servers()
if (isset($server_performance['total_prediction_modules'])) { if (isset($server_performance['total_prediction_modules'])) {
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/chart_bar.png', true, ['title' => __('Prediction modules'), 'class' => 'invert_filter']); $tdata[0] = html_print_image('images/prediction@svg.svg', true, ['title' => __('Prediction modules'), 'class' => 'main_menu_icon invert_filter']);
$tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_prediction_modules']).'</span>'; $tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_prediction_modules']).'</span>';
$tdata[2] = '<span class="med_data">'.format_numeric($server_performance['prediction_modules_rate'], 2).'</span>'; $tdata[2] = '<span class="med_data">'.format_numeric($server_performance['prediction_modules_rate'], 2).'</span>';
$tdata[3] = html_print_image('images/module.png', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'invert_filter']).'/sec </span>'; $tdata[3] = html_print_image('images/modules@svg.svg', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'main_menu_icon invert_filter']).'/sec </span>';
$table_srv->rowclass[] = ''; $table_srv->rowclass[] = '';
$table_srv->data[] = $tdata; $table_srv->data[] = $tdata;
@ -14521,11 +14530,11 @@ function reporting_get_stats_servers()
if (isset($server_performance['total_wmi_modules'])) { if (isset($server_performance['total_wmi_modules'])) {
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/wmi.png', true, ['title' => __('WMI modules'), 'class' => 'invert_filter']); $tdata[0] = html_print_image('images/WMI@svg.svg', true, ['title' => __('WMI modules'), 'class' => 'main_menu_icon invert_filter']);
$tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_wmi_modules']).'</span>'; $tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_wmi_modules']).'</span>';
$tdata[2] = '<span class="med_data">'.format_numeric($server_performance['wmi_modules_rate'], 2).'</span>'; $tdata[2] = '<span class="med_data">'.format_numeric($server_performance['wmi_modules_rate'], 2).'</span>';
$tdata[3] = html_print_image('images/module.png', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'invert_filter']).'/sec </span>'; $tdata[3] = html_print_image('images/modules@svg.svg', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'main_menu_icon invert_filter']).'/sec </span>';
$table_srv->rowclass[] = ''; $table_srv->rowclass[] = '';
$table_srv->data[] = $tdata; $table_srv->data[] = $tdata;
@ -14533,11 +14542,11 @@ function reporting_get_stats_servers()
if (isset($server_performance['total_web_modules'])) { if (isset($server_performance['total_web_modules'])) {
$tdata = []; $tdata = [];
$tdata[0] = html_print_image('images/world.png', true, ['title' => __('Web modules'), 'class' => 'invert_filter']); $tdata[0] = html_print_image('images/web-analisys-data@svg.svg', true, ['title' => __('Web modules'), 'class' => 'main_menu_icon invert_filter']);
$tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_web_modules']).'</span>'; $tdata[1] = '<span class="big_data">'.format_numeric($server_performance['total_web_modules']).'</span>';
$tdata[2] = '<span class="med_data">'.format_numeric($server_performance['web_modules_rate'], 2).'</span>'; $tdata[2] = '<span class="med_data">'.format_numeric($server_performance['web_modules_rate'], 2).'</span>';
$tdata[3] = html_print_image('images/module.png', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'invert_filter']).'/sec </span>'; $tdata[3] = html_print_image('images/modules@svg.svg', true, ['title' => __('Ratio').': '.__('Modules by second'), 'class' => 'main_menu_icon invert_filter']).'/sec </span>';
$table_srv->rowclass[] = ''; $table_srv->rowclass[] = '';
$table_srv->data[] = $tdata; $table_srv->data[] = $tdata;
@ -14551,17 +14560,17 @@ function reporting_get_stats_servers()
$tdata = []; $tdata = [];
$tdata[0] = html_print_image( $tdata[0] = html_print_image(
'images/lightning_go.png', 'images/event.svg',
true, true,
[ [
'title' => __('Total events'), 'title' => __('Total events'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$tdata[1] = '<span class="big_data" id="total_events">'.html_print_image('images/spinner.gif', true).'</span>'; $tdata[1] = '<span class="big_data" id="total_events">'.html_print_image('images/spinner.gif', true).'</span>';
if (isset($system_events) && $system_events > 50000 && !enterprise_installed()) { if (isset($system_events) && $system_events > 50000 && !enterprise_installed()) {
$tdata[2] = "<div id='monitoreventsmodal' class='publienterprise left' title='Community version'><img data-title='".__('Enterprise version not installed')."' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div>"; $tdata[2] = "<div id='monitoreventsmodal' class='publienterprise left' title='Community version'><img data-title='".__('Enterprise version not installed')."' class='img_help forced_title main_menu_icon' data-use_title_for_force_title='1' src='images/alert-yellow@svg.svg'></div>";
} else { } else {
$tdata[3] = '&nbsp;'; $tdata[3] = '&nbsp;';
} }

View File

@ -550,11 +550,11 @@ function servers_get_info($id_server=-1)
switch ($server['server_type']) { switch ($server['server_type']) {
case SERVER_TYPE_DATA: case SERVER_TYPE_DATA:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/database.png', 'images/data-server@svg.svg',
true, true,
[ [
'title' => __('Data server'), 'title' => __('Data server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'data'; $server['type'] = 'data';
@ -563,11 +563,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_NETWORK: case SERVER_TYPE_NETWORK:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/network.png', 'images/network-server@os.svg',
true, true,
[ [
'title' => __('Network server'), 'title' => __('Network server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'network'; $server['type'] = 'network';
@ -576,11 +576,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_SNMP: case SERVER_TYPE_SNMP:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/snmp.png', 'images/snmp-trap@svg.svg',
true, true,
[ [
'title' => __('SNMP Trap server'), 'title' => __('SNMP Trap server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'snmp'; $server['type'] = 'snmp';
@ -589,11 +589,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_DISCOVERY: case SERVER_TYPE_DISCOVERY:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/recon.png', 'images/rrs@svg.svg',
true, true,
[ [
'title' => __('Discovery server'), 'title' => __('Discovery server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'recon'; $server['type'] = 'recon';
@ -602,11 +602,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_PLUGIN: case SERVER_TYPE_PLUGIN:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/plugin.png', 'images/plugins@svg.svg',
true, true,
[ [
'title' => __('Plugin server'), 'title' => __('Plugin server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'plugin'; $server['type'] = 'plugin';
@ -615,11 +615,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_PREDICTION: case SERVER_TYPE_PREDICTION:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/chart_bar.png', 'images/prediction@svg.svg',
true, true,
[ [
'title' => __('Prediction server'), 'title' => __('Prediction server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'prediction'; $server['type'] = 'prediction';
@ -628,11 +628,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_WMI: case SERVER_TYPE_WMI:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/wmi.png', 'images/WMI@svg.svg',
true, true,
[ [
'title' => __('WMI server'), 'title' => __('WMI server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'wmi'; $server['type'] = 'wmi';
@ -641,11 +641,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_EXPORT: case SERVER_TYPE_EXPORT:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/server_export.png', 'images/server-export@svg.svg',
true, true,
[ [
'title' => __('Export server'), 'title' => __('Export server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'export'; $server['type'] = 'export';
@ -654,11 +654,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_INVENTORY: case SERVER_TYPE_INVENTORY:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/page_white_text.png', 'images/hardware-software-component@svg.svg',
true, true,
[ [
'title' => __('Inventory server'), 'title' => __('Inventory server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'inventory'; $server['type'] = 'inventory';
@ -667,11 +667,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_WEB: case SERVER_TYPE_WEB:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/world.png', 'images/server-web@svg.svg',
true, true,
[ [
'title' => __('Web server'), 'title' => __('Web server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'web'; $server['type'] = 'web';
@ -680,11 +680,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_EVENT: case SERVER_TYPE_EVENT:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/lightning_go.png', 'images/server-events@svg.svg',
true, true,
[ [
'title' => __('Event server'), 'title' => __('Event server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'event'; $server['type'] = 'event';
@ -693,11 +693,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_CORRELATION: case SERVER_TYPE_CORRELATION:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/lightning_go.png', 'images/server-events@svg.svg',
true, true,
[ [
'title' => __('Correlation server'), 'title' => __('Correlation server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'correlation'; $server['type'] = 'correlation';
@ -706,11 +706,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_ENTERPRISE_ICMP: case SERVER_TYPE_ENTERPRISE_ICMP:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/network.png', 'images/network@svg.svg',
true, true,
[ [
'title' => __('Enterprise ICMP server'), 'title' => __('Enterprise ICMP server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'enterprise icmp'; $server['type'] = 'enterprise icmp';
@ -719,11 +719,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_ENTERPRISE_SNMP: case SERVER_TYPE_ENTERPRISE_SNMP:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/network.png', 'images/network@svg.svg',
true, true,
[ [
'title' => __('Enterprise SNMP server'), 'title' => __('Enterprise SNMP server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'enterprise snmp'; $server['type'] = 'enterprise snmp';
@ -732,11 +732,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_ENTERPRISE_SATELLITE: case SERVER_TYPE_ENTERPRISE_SATELLITE:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/satellite.png', 'images/satellite@os.svg',
true, true,
[ [
'title' => __('Enterprise Satellite server'), 'title' => __('Enterprise Satellite server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'enterprise satellite'; $server['type'] = 'enterprise satellite';
@ -745,11 +745,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_ENTERPRISE_TRANSACTIONAL: case SERVER_TYPE_ENTERPRISE_TRANSACTIONAL:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/transactional_map.png', 'images/server-transactions@svg.svg',
true, true,
[ [
'title' => __('Enterprise Transactional server'), 'title' => __('Enterprise Transactional server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'enterprise transactional'; $server['type'] = 'enterprise transactional';
@ -758,11 +758,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_MAINFRAME: case SERVER_TYPE_MAINFRAME:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/mainframe.png', 'images/mainframe@os.svg',
true, true,
[ [
'title' => __('Mainframe server'), 'title' => __('Mainframe server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'mainframe'; $server['type'] = 'mainframe';
@ -775,7 +775,7 @@ function servers_get_info($id_server=-1)
true, true,
[ [
'title' => __('Sync server'), 'title' => __('Sync server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'sync'; $server['type'] = 'sync';
@ -784,11 +784,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_WUX: case SERVER_TYPE_WUX:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/icono-wux.png', 'images/wux@svg.svg',
true, true,
[ [
'title' => __('Wux server'), 'title' => __('Wux server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'wux'; $server['type'] = 'wux';
@ -797,11 +797,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_SYSLOG: case SERVER_TYPE_SYSLOG:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/syslog.png', 'images/logs@svg.svg',
true, true,
[ [
'title' => __('Log server'), 'title' => __('Log server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'syslog'; $server['type'] = 'syslog';
@ -810,11 +810,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_NCM: case SERVER_TYPE_NCM:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/book_edit.png', 'images/custom-input@svg.svg',
true, true,
[ [
'title' => __('NCM server'), 'title' => __('NCM server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'ncm'; $server['type'] = 'ncm';
@ -827,7 +827,7 @@ function servers_get_info($id_server=-1)
true, true,
[ [
'title' => __('Autoprovision server'), 'title' => __('Autoprovision server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'autoprovision'; $server['type'] = 'autoprovision';
@ -836,11 +836,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_MIGRATION: case SERVER_TYPE_MIGRATION:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/migration.png', 'images/server-export@svg.svg',
true, true,
[ [
'title' => __('Migration server'), 'title' => __('Migration server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'migration'; $server['type'] = 'migration';
@ -849,11 +849,11 @@ function servers_get_info($id_server=-1)
case SERVER_TYPE_ALERT: case SERVER_TYPE_ALERT:
$server['img'] = html_print_image( $server['img'] = html_print_image(
'images/alerts_extern.png', 'images/alert@svg.svg',
true, true,
[ [
'title' => __('Alert server'), 'title' => __('Alert server'),
'class' => 'invert_filter', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$server['type'] = 'alert'; $server['type'] = 'alert';