Page 1 of 1

Hide inactive networks

Posted: Sun Apr 24, 2016 5:20 pm
by leisegang
Is there a way to easily hide the empty network interfaces (gretap0 and gre0) and only display the venet0?

Image

Re: Hide inactive networks

Posted: Sun Apr 24, 2016 6:00 pm
by Falzo
the answer to your initial question probably is: no.

the lowest risk you are taking by editing /usr/local/vesta/web/list/rrd/index.php to your needs. an array named $data is generated there which will contain the data of each block of the displayed graphics. and its only needed for exactly that listing, so nothing else may be harmed. you might filter that array to get rid of those unwanted keys with some small php around it.

second way could be adapting /usr/local/vesta/bin/v-list-sys-rrd where the list to fill that array is drawn together beforehand, but you would need to have some shell scripting skills to achieve your goal ;-)

please note that any further update of vesta may overwrite those files and therefore your changes are lost. (which at least wouldn't destroy anything only bring back those displays ;-))

at last you could do some more research where those rrds actually are generated and filled, but thats already far away from 'easily hide'.