From: Michael Tremer Date: Wed, 23 Apr 2025 10:45:44 +0000 (+0200) Subject: ids.cgi: Show graph only when all RRDs exist X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e93cd834b2f203d6adafc80a9eac603a116efd7;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Show graph only when all RRDs exist Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 4eaf4911d..960e72ef1 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1102,7 +1102,9 @@ END &Header::closesection(); # Throughput Graph - if (-e "/var/log/rrd/collectd/localhost/iptables-mangle-IPS/ipt_bytes-BYPASSED.rrd") { + if (-e "/var/log/rrd/collectd/localhost/iptables-mangle-IPS/ipt_bytes-BYPASSED.rrd" + && -e "/var/log/rrd/collectd/localhost/iptables-mangle-IPS/ipt_bytes-SCANNED.rrd" + && -e "/var/log/rrd/collectd/localhost/iptables-mangle-IPS/ipt_bytes-WHITELISTED.rrd") { &Header::graph("$Lang::tr{'ips throughput'}", "ids.cgi", "ips-throughput", "day"); }