Andrei-Marius Radu
2014-11-11 15:36:36 UTC
Hello Monitorix, Hello Jordi,
First of all a big thank you for Monitorix, it's really great :)
And second, I recently came across a limitation in net.pm of only 10
network interfaces. I took a quick look in net.pm and I see that when
the RRD is created the data sources are net0 ... net9 irrespective of
how many interfaces are in the config.
Also in some places in net.pm I see:
< .............. >
for($n = 0; $n < 10; $n++)
< .............. >
while in some other places I see:
< .............. >
for($n = 0; $n < scalar(my @nl = split(',', $net->{list})); $n++)
< .............. >
Anyway, for my specific use case (which I understand might be a bit
unusual) I can bend net.pm to work with more than 10.
Would it be desirable to add support in a general way ? Perl is not my
daily programming language but I can try and contribute a patch for
net.pm.
Cheers,
Andrei.
First of all a big thank you for Monitorix, it's really great :)
And second, I recently came across a limitation in net.pm of only 10
network interfaces. I took a quick look in net.pm and I see that when
the RRD is created the data sources are net0 ... net9 irrespective of
how many interfaces are in the config.
Also in some places in net.pm I see:
< .............. >
for($n = 0; $n < 10; $n++)
< .............. >
while in some other places I see:
< .............. >
for($n = 0; $n < scalar(my @nl = split(',', $net->{list})); $n++)
< .............. >
Anyway, for my specific use case (which I understand might be a bit
unusual) I can bend net.pm to work with more than 10.
Would it be desirable to add support in a general way ? Perl is not my
daily programming language but I can try and contribute a patch for
net.pm.
Cheers,
Andrei.