web UI: Add graph for connection tracking

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Michael Tremer
2020-08-21 17:33:56 +01:00
committed by Arne Fitzenreiter
parent a232fe32bc
commit 8ffdc78c49
14 changed files with 73 additions and 2 deletions

View File

@@ -41,7 +41,11 @@ my @querry = split(/\?/,$ENV{'QUERY_STRING'});
$querry[0] = '' unless defined $querry[0];
$querry[1] = 'hour' unless defined $querry[1];
if ( $querry[0] =~ "fwhits"){
if ( $querry[0] eq "conntrack") {
print "Content-Type: image/png\n\n";
binmode(STDOUT);
&Graphs::updateconntrackgraph($querry[1]);
} elsif ( $querry[0] =~ "fwhits"){
print "Content-type: image/png\n\n";
binmode(STDOUT);
&Graphs::updatefwhitsgraph($querry[1]);
@@ -67,6 +71,10 @@ if ( $querry[0] =~ "fwhits"){
&Header::closebox();
}
&Header::openbox('100%', 'center', $Lang::tr{'connnection tracking'});
&Graphs::makegraphbox("netother.cgi", "conntrack", "day");
&Header::closebox();
&Header::openbox('100%', 'center', "$Lang::tr{'firewallhits'} $Lang::tr{'graph'}");
&Graphs::makegraphbox("netother.cgi","fwhits","day");
&Header::closebox();