Add Netflow Server information (needs a new icon).

This commit is contained in:
Ramon Novoa 2023-03-31 10:54:48 +02:00
parent c4ef22164b
commit 112de35eeb
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
<title>Dark / 20 / network@svg</title>
<desc>Created with Sketch.</desc>
<g id="Dark-/-20-/-network" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M5,0 C5.55228475,-1.01453063e-16 6,0.44771525 6,1 L6,3.02 L10,3.02024364 C10.5128358,3.02024364 10.9355072,3.40628383 10.9932723,3.90362252 L11,4.02024364 L11,9.02 L14,9.02 L14,7 C14,6.44771525 14.4477153,6 15,6 L19,6 C19.5522847,6 20,6.44771525 20,7 L20,13 C20,13.5522847 19.5522847,14 19,14 L15,14 C14.4477153,14 14,13.5522847 14,13 L14,11.02 L11,11.02 L11,16.0202436 C11,16.5330795 10.6139598,16.9557508 10.1166211,17.0135159 L10,17.0202436 L6,17.02 L6,19 C6,19.5522847 5.55228475,20 5,20 L1,20 C0.44771525,20 6.76353751e-17,19.5522847 0,19 L0,13 C-6.76353751e-17,12.4477153 0.44771525,12 1,12 L5,12 C5.55228475,12 6,12.4477153 6,13 L6,15.02 L9,15.02 L9,5.02 L6,5.02 L6,7 C6,7.55228475 5.55228475,8 5,8 L1,8 C0.44771525,8 6.76353751e-17,7.55228475 0,7 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L5,0 Z" id="Rectangle-2" fill="#3F3F3F"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -440,6 +440,7 @@ define('SERVER_TYPE_MIGRATION', 20);
define('SERVER_TYPE_ALERT', 21);
define('SERVER_TYPE_CORRELATION', 22);
define('SERVER_TYPE_NCM', 23);
define('SERVER_TYPE_NETFLOW', 24);
// REPORTS.
define('REPORT_TOP_N_MAX', 1);

View File

@ -860,6 +860,19 @@ function servers_get_info($id_server=-1)
$id_modulo = 0;
break;
case SERVER_TYPE_NETFLOW:
$server['img'] = html_print_image(
'images/netflow@svg.svg',
true,
[
'title' => __('Netflow server'),
'class' => 'main_menu_icon invert_filter',
]
);
$server['type'] = 'netflow';
$id_modulo = 0;
break;
default:
$server['img'] = '';
$server['type'] = 'unknown';