Install the agent
Add repository and gpg key
Execute the following command to add the gpg key.
copycurl https://s3.amazonaws.com/atatus-artifacts/gpg/atatus.gpg | sudo apt-key add -
copycurl https://s3.amazonaws.com/atatus-artifacts/gpg/atatus-sha512.gpg | sudo apt-key add -
Execute the following command to add the debian repository.
copyecho "deb https://s3.amazonaws.com/atatus-artifacts/atatus-infra/debian stable main" | sudo tee -a /etc/apt/sources.list.d/atatus-infra-agent.list
Install infra agent
copysudo apt-get update
copysudo 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 |
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.
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+
curl https://s3.amazonaws.com/atatus-artifacts/gpg/atatus.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/atatus.gpg
curl https://s3.amazonaws.com/atatus-artifacts/gpg/atatus-sha512.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/atatus-sha512.gpg