]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/network.cgi
fixed collection deamon integration
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / network.cgi
index 53e2cfc9a3e0cdf7d16388cd2e5e2c40451e5c66..17febf73278dafa3d2d8cb3cc197608a2fd3dfc7 100644 (file)
@@ -51,7 +51,7 @@ $cgiparams[1] = '' unless defined $cgiparams[1];
 if ($cgiparams[1] =~ /red/) {
        &Header::openpage($Lang::tr{'network traffic graphs external'}, 1, '');
        push (@graphs, ($netsettings{'RED_DEV'}));
-       push (@graphs, ("ipsec0"));
+       if (-e "/var/log/rrd/collectd/localhost/interface/if_octets-ipsec0.rrd") {push (@graphs, ("ipsec0"));
 }elsif ($cgiparams[1] =~ /other/) {
        &Header::openpage($Lang::tr{'network traffic graphs others'}, 1, '');
        push (@graphs, ("lq"));