ids.cgi: Don't show the graph if there is no RRD data

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-09-21 12:37:09 +02:00
parent 0c5a683b7e
commit 4efa4c4b71

View File

@@ -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.