mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
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:
@@ -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") {
|
||||
|
||||
@@ -1100,6 +1100,9 @@ END
|
||||
|
||||
&Header::closesection();
|
||||
|
||||
# Throughput Graph
|
||||
&Header::graph("$Lang::tr{'ips throughput'}", "ids.cgi", "ips-throughput", "day");
|
||||
|
||||
#
|
||||
# Used Ruleset Providers section.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user