]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ids.cgi: Show graph only when all RRDs exist
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Apr 2025 10:45:44 +0000 (12:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 25 Apr 2025 09:58:06 +0000 (09:58 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ids.cgi

index 4eaf4911ddc6a142a2d3aee95f2a7a5551e37c30..960e72ef1cd44d9e08ef1354d859f191c1a24b46 100644 (file)
@@ -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");
        }