Skip to main content

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.

This is an unofficial script that is provided for your convenience. The script is provided as-is and may not be 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.

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.usbx.me/util/All_app_monitor/app_monitor_installer.sh)
  • Type confirm to proceed with the installation.
  • Next, you will be presented with three options:
Please choose option from below if you want notification on discord or info as a log file on your service
1. Store Applications status on your service at {~/script/app_monitor}
2. To get application status on your Discord(You need Discord Webhook for it)
3. To uninstall the script.
Please select option 1 or 2: 

OPTION 1:

  • Press 1 to store application status in a log file on your service. Press ENTER to confirm.
  • Press ENTER to confirm.

OPTION 2:

  • Press 2 to push application status notifications to Discord via webhook. Press ENTER to confirm.
  • Paste your Discord webhook URL.
  • Press ENTER to confirm.

Uninstallation

  • Execute the following command:
bash <(wget -qO-  https://scripts.usbx.me/util/All_app_monitor/app_monitor_installer.sh)
  • Type confirm to proceed with the installation.
  • Next, you will be presented with three options:
  • Press 3 to uninstall script. Press ENTER to confirm.

The script will ask you to confirm the uninstallation with YES or NO.

  • Press 1 for uninstall. Press ENTER to confirm.

Log Location

  • For users who are storing logs, they can be found at these locations:
  1. Torrent Client Logs: ~/scripts/app_monitor/torrent_clients.log

  2. Docker Application Logs: ~/scripts/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.