Application Monitor
The Application monitor script can be used to automatically restart applications if they go offline unexpectedly. The activity can be logged to a log file or be sent to Discord. The script will monitor all official applications that have been installed via the UCP.
Installation
Before you can proceed with installing the Application monitor script, Python needs to be version 3.6 or above.
Upgrade Python
- Upgrade Python to 3.6 or higher, see guide here.
- With Python updated to version 3.6 or above, you can proceed the installation.
Install Application Monitor
- Execute the following command:
bash <(wget -qO- https://scripts.ultra.cc/util-v2/Ultra-App-Monitor/main.sh)- Type
confirmto proceed with the installation. - Next, you will be presented with four options:
1) Install - Log to local file
2) Install - Send alerts to Discord
3) Uninstall
4) Update Discord WebhookOPTION 1:
- Press
1to store application status in a log file on your service. PressENTERto confirm. - Press
ENTERto confirm.
OPTION 2:
- Press
2to push application status notifications to Discord via webhook. PressENTERto confirm. - Paste your Discord webhook URL.
- Press
ENTERto confirm.
Uninstallation
- Execute the following command:
bash <(wget -qO- https://scripts.ultra.cc/util-v2/Ultra-App-Monitor/main.sh)- Type
confirmto proceed with the installation. - Next, you will be presented with three options:
- Press
3to uninstall script. PressENTERto confirm. - The script will ask you to confirm the uninstallation with YES or NO.
- Press
1for uninstall. PressENTERto confirm.
Log Location
- For users who are storing logs, they can be found at these locations:
- Torrent Client Logs:
~/scripts/Ultra-App-Monitor/torrent_clients.log - Docker Application Logs:
~/scripts/Ultra-App-Monitor/docker_apps.log
Caveats
- An issue that may occur with manual upgrades of containerized applications.
The script checks all applications periodically and either restarts or repair them. If you upgrade an application manually, it will be down for a certain amount of time. If the script happens to run when the application is down due to your manual upgrade action, the script will queue another attempt to repair.
If you require further assistance, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome on our Discord server
- Application Monitor
- Installation
- Upgrade Python
- Install Application Monitor
- Uninstallation
- Log Location
- Caveats