Install the agent

  1. Add repository and gpg key

    Execute the following command to add the gpg key.

    copy
    icon/buttons/copy
    curl https://s3.amazonaws.com/atatus-artifacts/gpg/atatus.gpg | sudo apt-key add -
    

    Execute the following command to add the debian repository.

    copy
    icon/buttons/copy
    echo "deb https://s3.amazonaws.com/atatus-artifacts/atatus-infra/debian stable main" | sudo tee -a /etc/apt/sources.list.d/atatus-infra-agent.list
    
  2. Install infra agent

    copy
    icon/buttons/copy
    sudo apt-get update
    
    copy
    icon/buttons/copy
    sudo ATATUS_LICENSE_KEY="INFRA_LIC_KEY" apt-get install atatus-infra-agent -y
    

    INFRA_LIC_KEY - add the Atatus Infra License key in this line of code.

You can set advanced configurations in the file /etc/atatus-infra-agent/atatus.yml.

Command Description
Start Agent as a service sudo service atatus-infra-agent start
Stop Agent running as a service sudo service atatus-infra-agent stop
Restart Agent running as a service sudo service atatus-infra-agent restart
Status of Agent service sudo service atatus-infra-agent status
Note:

If the service wrapper is not available on your system, use: On systemd based systems: sudo systemctl start/stop/restart/status atatus-infra-agent

Upgrade the agent (to the next version)

Execute the following command to upgrade to the latest version.

copy
icon/buttons/copy
sudo apt-get update
sudo apt policy atatus-infra-agent
sudo apt-get install --only-upgrade atatus-infra-agent

For Ubuntu 22.04 and above

With Ubuntu 22.04 and higher, the apt-key has been deprecated because it allows the system to accept signatures from third-party keyholders that don't have a signed-by option. So please use the below steps instead of apt-key add in Ubuntu 22.04+

copy
icon/buttons/copy
curl https://s3.amazonaws.com/atatus-artifacts/gpg/atatus.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/atatus.gpg