mikaku / Monitorix

Monitorix is a free, open source, lightweight system monitoring tool.
https://www.monitorix.org
GNU General Public License v2.0
1.12k stars 167 forks source link

Feature request: positive and negative values for RX/TX on network interfaces #217

Closed Saentist closed 4 years ago

Saentist commented 5 years ago

Is there a option to be implemented as selectable option currently both values are positive /as "netstats_in_bps y/n"/

Saentist commented 4 years ago

Any chance?

mikaku commented 4 years ago

Yes, sorry. I think I could introduce a new global option called netstats_mode with two possible values:

The overlapped option, being the default one, would refer to the current representation and separated would be with the way as you suggest.

Yet, I'd need to know which values should go in the bottom or in the top side.

I mean, incoming traffic in the bottom or in the top?

Saentist commented 4 years ago

Incoming = Positive = On Top Outgoing = Negative = In Bottom

mikaku commented 4 years ago

Please, test this new feature and let me know if it works as expected.

Don't forget to include the new global option in your monitorix.conf, (e.g.: just below the option netstats_in_bps):

netstats_mode = separated

This is how appears the network graph after applying this new option:

net

Saentist commented 4 years ago

OK it work as expected

need to be added and enabled enable_hourly_view to see faster results

enable_back_button = y
enable_hourly_view = y

if now

ifconfig -a | sed 's/[ \t].*//;/^\(lo\|\)$/d'

result is enabled in interface automatic add graphs will be super

mikaku commented 4 years ago

Automatic addition of graphs is something not supported, and it's a very dangerous feature in some environments.

Instead, you might want to focus on the creation of an external (Perl-based, Shell-based, or whatever) tool that automatically configures your monitorix.conf according the devices found in your system.

mikaku commented 4 years ago

OK it work as expected

In the next days I'll include support of that new option netstats_mode in other modules that include network graphs. The changes will be referenced here.