Install Zabbix Agent on Ubuntu

    • Offizieller Beitrag

    source: https://computingforgeeks.com/install-and-co…gent-on-ubuntu/

    Code
    wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+focal_all.deb
    sudo apt install ./zabbix-release_5.0-1+focal_all.deb

    Ubuntu 18.04:

    Code
    wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+bionic_all.deb
    sudo apt install ./zabbix-release_5.0-1+bionic_all.deb

    Step 2: Install and Configure Zabbix Agent

    Once repository is added install the packages:

    Code
    sudo apt update
    sudo apt install zabbix-agent

    Zabbix agent configuration is /etc/zabbix/zabbix_agentd.conf. Edit

    Code
    $ sudo vim /etc/zabbix/zabbix_agentd.conf
    #Specify Zabbix server IP Address
    Server=<yourserver>
    
    #Specify Zabbix server ( For active checks)
    ServerActive=<yourserver>
    
    # Set this server hostname reported by Zabbix agent
    Hostname=<yourhostname>

    Restart zabbix-agent after making the change:

    Code
    sudo systemctl restart zabbix-agent
    sudo systemctl status zabbix-agent

    If you have ufw enabled, allow port 10050 on the firewall. This is used by Zabbix agent daemon.

    Code
    sudo ufw allow 10050/tcp

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!