Traffic Monitor
This is an unofficial script that is provided for your convenience. The script is unofficialprovided as-is and may not supportedbe updated or maintained by Ultra.cc. Customers are welcome to use and customize unofficial scripts for their unique needs and requirements. Unofficial support may be offered via Discord only and at the sole discretion of Ultra.cc staff. Use at your own risk.
PrerequisitePrerequisites
- Command execution via SSH.
- How to connect to your Ultra.cc slot via SSH?
How It Works
- The script uses the
Traffic Available
value returned by the commandapp-traffic info
to calculate traffic usage. - First, you will be asked to choose the interval at which the script will check your traffic usage.
- Then, you will choose between getting notified via Discord and storing the warnings on a file.
- After that, you will get to set the threshold value at which you should get the warning. This is based on the percentage of available traffic.
- Optionally, the script can also stop all installed torrent clients on your service once the set threshold value is reached.
The script is experimental. Please do not rely on it to manage your upload traffic usage.
Feedback is welcome for improvements via Discord or tickets.
Installation
- Execute the following command via SSH:
bash <(wget -qO- https://scripts.usbx.me/main/Utility%20Scripts/traffic-monitor-install.sh)
Warning file Location
- Only applicable to you if you choose to store the warnings to a file instead of Discord notifications during installation
- It will be stored at the following location:
~/scripts/traffic_monitor/warning.txt
Uninstallation
- Execute the following command via SSH:
bash <(wget -qO- https://scripts.usbx.me/main/Utility%20Scripts/traffic-monitor-install.sh)