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
    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
apt policy atatus-infra-agent
sudo apt-get install --only-upgrade atatus-infra-agent

Uninstall the agent

copy
icon/buttons/copy
sudo apt-get remove atatus-infra-agent