Select Page

ABIOLA RASP – Raspberries for African School Projects

Wie können wir helfen?

< Alle Themen
Print

Producing the graphical images for network traffic

no-273 au-03

vnstati

vnstati is used to produce image output support for statistic collected using vnstat. You can get your network traffics as a png image.

Please see the article “Network Traffic Monitor – vnstat” to get more information about vnstat.

You must install vnstati firstly.

1. Update the package lists

sudo apt-get update

2. Install vnstati

sudo apt-get install vnstati

Basic usage of vnstati

I’ll get my network traffic as a png image and it is easier to understand. Please check below example.

1. Run below command

vnstati -s -i wlan0 -o /home/pi/Desktop/result.png

You can change your directory or png name. It depends on you.

2. Here is the result.png

Please open the result.png and you will see the network traffic as graphical interface.

1. These are the received and transmitted data statistic.
2. You can find here the all time network traffic.

Display hourly network traffic

You can use the -h option to get the output for hourly display. Please check below example.

1. Run below command

vnstati -h -i wlan0 -o /home/pi/Desktop/hourly.png

2. Here is the output

Please open the hourly.png and you will see the output for hourly display.

1. This axes represents the hours.

The display is always for the last 24 hours

2. These green bars represent the received data from network.

Inhaltsverzeichnis