Simple bash script, with optional PHP frontend, for monitoring speed and traffic on linux.
numfmt awk
Optional: exec
enabled in php.ini
in order to use the php frontend
up
= current upload speed
down
= current download speed
total-up
= upload traffic since the latest reboot
total-down
= download traffic since the latest reboot
GB
= Show values in GigaBytes
MB
= Show values in MegaBytes
KB
= Show values in KiloBytes
B
= Show values in Bytes
HUMAN
= Show values in Human readable format
- Install the dependencies (see Requirements)
- Clone the repo where you want
- Run
./status.sh ACTION INTERFACE FORMAT
(see Available Actions & Available Formats) - END
- Install the dependencies and enable exec inside the php.ini (See Requirements)
- Clone the repo inside the webserver
- Open status.php
- Edit
$interface="eth0";
with the interface you want to monitor - Open the url
http://XXXXXXXXX/status.php?t=ACTION&f=FORMAT
(see Available Actions & Available Formats) - END
See conkyrc-snippet for the code