Install the agent

  1. Add repository

    Execute the following command to add the redhat repository.

    copy
    icon/buttons/copy
    sudo curl -o /etc/yum.repos.d/atatus-infra-agent.repo https://s3.amazonaws.com/atatus-artifacts/atatus-infra/rpm/x86_64/atatus-infra-agent.repo
    
    copy
    icon/buttons/copy
    sudo yum -q makecache -y --disablerepo='*' --enablerepo='atatus-infra-agent'
    
  2. Install infra agent

    copy
    icon/buttons/copy
    sudo ATATUS_LICENSE_KEY="INFRA_LIC_KEY" yum 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)

To upgrade to the latest version, execute the following command.

copy
icon/buttons/copy
sudo yum -q makecache -y --disablerepo='*' --enablerepo='atatus-infra-agent'
yum --showduplicates list atatus-infra-agent
copy
icon/buttons/copy
sudo yum update atatus-infra-agent -y

Uninstall the agent

To uninstall the infra agent, execute the following command.

copy
icon/buttons/copy
sudo yum remove atatus-infra-agent -y