IPS: Ada a graph that shows the IPS throughput

This graph is split into three parts. One shows bypassed packets, the
next one shows the actually scanned packets and lastly we show the total
throughput.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-09-11 00:43:59 +02:00
parent a85924cc25
commit 4721fac3c8
14 changed files with 152 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ require "${General::swroot}/graphs.pl";
# List of graph origins that getrrdimage.cgi can process directly
# (unknown origins are forwarded to ensure compatibility)
my @supported_origins = ("hardwaregraphs.cgi", "media.cgi",
my @supported_origins = ("ids.cgi", "hardwaregraphs.cgi", "media.cgi",
"memory.cgi", "netexternal.cgi", "netinternal.cgi", "netother.cgi",
"netovpnrw.cgi", "netovpnsrv.cgi", "qos.cgi", "services.cgi", "system.cgi");
@@ -80,7 +80,13 @@ _start_svg_output();
# Graphs are first grouped by their origin.
# This is because some graph categories require special parameter handling.
my $graphstatus = '';
if($origin eq "hardwaregraphs.cgi") { ## hardwaregraphs.cgi
if ($origin eq "ids.cgi") { ## ids.cgi
if ($graph eq "ips-throughput") {
$graphstatus = Graphs::updateipsthroughputgraph($range);
} else {
$graphstatus = "Unknown graph name.";
}
} elsif($origin eq "hardwaregraphs.cgi") { ## hardwaregraphs.cgi
if($graph eq "hwtemp") {
$graphstatus = Graphs::updatehwtempgraph($range);
} elsif($graph eq "hwfan") {

View File

@@ -1100,6 +1100,9 @@ END
&Header::closesection();
# Throughput Graph
&Header::graph("$Lang::tr{'ips throughput'}", "ids.cgi", "ips-throughput", "day");
#
# Used Ruleset Providers section.
#