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, '');