GoAdmio Command Line: heal with /go/heal

/go/heal is GoAdmio's Auto-Heal system. Each run checks the services and resources a hosting server depends on. When it finds a problem, it tries to fix it and sends you an email and a WhatsApp message. It checks: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Run all checks now
/go/heal

# Turn Auto-Heal off or on
/go/heal --disable
/go/heal --enable

Options

Option Required Default Notes
--enable No — Turns Auto-Heal on and exits.
--disable No — Turns Auto-Heal off and exits. Later runs do nothing until you enable it again.

The setting is stored in config.db. With no options, the command runs every check, unless Auto-Heal is disabled.

The disk check uses a threshold of 90% by default. To change it, put a number in /etc/disk:

echo 80 | sudo tee /etc/disk

If the file doesn’t hold a plain number, 90 is used.

Examples

# Run all checks now
/go/heal

# Pause Auto-Heal while you do maintenance
/go/heal --disable

# ...and turn it back on afterwards
/go/heal --enable

# Alert and clean up when the disk is 80% full instead of 90%
echo 80 | sudo tee /etc/disk

Output

The command prints one line for each check as it runs.

Checking MySQL Status...
Checking Nginx Status...
Checking FPM Status...
Checking SSHD Status...
Checking DROPBEAR Status...
Checking POSTFIX Status...
Checking DOVECOT Status...
Checking Memory Status...
Checking Disk Usage Status...
Checking GoAdmio Usernames...
Checking GoAdmio Databases Ownership...

When it takes action, it also prints a line such as Restarting MariaDB..., Restarting php83-fpm..., Installing SSH..., or Rebooting server....

Outcome What you get
--enable Auto-Heal has been enabled. Exit status 1.
--disable Auto-Heal has been disabled. Exit status 1.
Auto-Heal is off Auto-Heal is disabled. Exit status 1.
MinIO is configured on port 443 No output, no checks. Exit status 1.
Full run The check lines above, then the result of /go/welcome.

Every run is logged to /var/log/go/heal.log with a timestamp and the arguments used.

See the full reference at /go/heal and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *