Fix external network graphs if traffic not goes over red0

This commit is contained in:
Arne Fitzenreiter
2008-05-22 22:13:36 +02:00
parent e39b0cbfd6
commit f5d339c8f8
3 changed files with 11 additions and 6 deletions

View File

@@ -51,7 +51,13 @@ $cgiparams[1] = '' unless defined $cgiparams[1];
if ($cgiparams[1] =~ /red/) {
&Header::openpage($Lang::tr{'network traffic graphs external'}, 1, '');
push (@graphs, ($netsettings{'RED_DEV'}));
if ($netsettings{'RED_TYPE'} ne 'PPPOE') {
if ($netsettings{'RED_DEV'} ne $netsettings{'GREEN_DEV'}) {
push (@graphs, ($netsettings{'RED_DEV'}));
}
} else {
push (@graphs, "ppp0");
}
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, '');