From: Michael Tremer Date: Sat, 21 Sep 2024 10:37:09 +0000 (+0200) Subject: ids.cgi: Don't show the graph if there is no RRD data X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4efa4c4b714f117cb561201f7f6c122cb7da624a;p=people%2Fms%2Fipfire-2.x.git ids.cgi: Don't show the graph if there is no RRD data Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index a264457f7..34ac83f52 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1101,7 +1101,9 @@ END &Header::closesection(); # Throughput Graph - &Header::graph("$Lang::tr{'ips throughput'}", "ids.cgi", "ips-throughput", "day"); + if (-e "/var/log/rrd/collectd/localhost/iptables-mangle-IPS/ipt_bytes-BYPASSED.rrd") { + &Header::graph("$Lang::tr{'ips throughput'}", "ids.cgi", "ips-throughput", "day"); + } # # Used Ruleset Providers section.