1. Linux

1.1. Installation

  • Install PostgreSQL.

  • Enter the following commands at a Command Line.

    # Install Zabbix repository.
    wget https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.4+debian12_all.deb    # Debian 12.
    wget https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.4+debian13_all.deb    # Debian 13.
    sudo dpkg -i zabbix-release_latest_7.4+debian12_all.deb         # Debian 12.
    sudo dpkg -i zabbix-release_latest_7.4+debian13_all.deb         # Debian 13.
    ls -al /etc/apt/sources.list.d
    
    # Install Zabbix server, frontend, agent.
    sudo apt-get update
    sudo apt-get install zabbix-server-pgsql zabbix-frontend-php php8.4-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent
    
    # Create initial database.
    sudo -u postgres createuser --pwprompt zabbix
    # Type the Zabbix user password.
    # Type the Zabbix user password.
    sudo -u postgres createdb -O zabbix zabbix
    
    # Import initial schema and data.
    zcat /usr/share/zabbix/sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix
    
    #  Configure the database for Zabbix server.
    sudo cp -a /etc/zabbix/zabbix_server.conf /etc/zabbix/zabbix_server.conf.org
    sudo sed -i "/# DBPassword=/a DBPassword=<password>" /etc/zabbix/zabbix_server.conf
    sudo sed -i "/# DBPassword=/a \ " /etc/zabbix/zabbix_server.conf
    sudo diff /etc/zabbix/zabbix_server.conf.org /etc/zabbix/zabbix_server.conf
    
    # Start Zabbix server and agent processes.
    sudo systemctl enable  zabbix-server zabbix-agent apache2
    sudo systemctl status  zabbix-server zabbix-agent apache2
    sudo systemctl restart zabbix-server zabbix-agent apache2
    sudo systemctl status  zabbix-server zabbix-agent apache2

1.2. Configuration

  • Browse to the Zabbix UI web page.

  • Select English (en_US).

  • Click Next step.

  • Click Next step.

  • Select PostgreSQL for the Database type.

  • Type the zabbix PostgreSQL user’s password in the Password field.

  • Check Database TLS encryption.

  • Uncheck Verify database certificate.

  • Click Next step.

  • Type DELTA-ZBX-WSL for the Zabbix server name.

  • Select (UTC+01:00) Europe/Amsterdam for the Default time zone.

  • Uncheck Encrypt connections from Web interface.

  • Click Next step.

  • Click Next step.

  • Note: The /etc/zabbix/web/zabbix.conf.php configuration file is created.

  • Click Finish.

  • Browse to the Zabbix UI web page.

  • Uncheck Remember me for 30 days.

  • Sign in as a Zabbix superuser with the Admin username and the zabbix password.

  • Change the default password for the Admin account immediately after the first login.

    • Select User settings > Profile.

    • Click Change password.

    • Type the current zabbix password.

    • Type the new Zabbix Administrator password in the Password field.

    • Type the new Zabbix Administrator password in the Password (once again) field.

    • Click Update.

    • Click OK.

1.2.1. Fix Unknown Host Availability

  • Select Data collection > Templates.

  • Select ICMP Ping > Items on the 3rd page.

  • Select ICMP loss, append [{HOST.HOST}] to the Key value and click Update.

  • Select ICMP ping, append [{HOST.HOST}] to the Key value and click Update.

  • Select ICMP response time, append [{HOST.HOST}] to the Key value and click Update.

1.3. Zabbix Agents

1.3.1. Linux Installation

  • See https://tecadmin.net/install-zabbix-agent-on-debian.

  • Enter the following commands at a Command Line.

    # Install Zabbix repository.
    wget https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.4+debian12_all.deb    # Debian 12.
    wget https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.4+debian13_all.deb    # Debian 13.
    sudo dpkg -i zabbix-release_latest_7.4+debian12_all.deb         # Debian 12.
    sudo dpkg -i zabbix-release_latest_7.4+debian13_all.deb         # Debian 13.
    ls -al /etc/apt/sources.list.d
    
    # Install Zabbix agent.
    sudo apt-get update
    sudo apt-get install zabbix-agent
    
    sudo cp -a /etc/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf.org
    sudo sed -i "s/Server=127.0.0.1/Server=172.27.159.163/" /etc/zabbix/zabbix_agentd.conf
    sudo sed -i "s/ServerActive=127.0.0.1/#Server=127.0.0.1/" /etc/zabbix/zabbix_agentd.conf        # Needed ???
    sudo diff /etc/zabbix/zabbix_agentd.conf.org /etc/zabbix/zabbix_agentd.conf
    
    sudo systemctl enable zabbix-agent
    sudo systemctl restart zabbix-agent
    sudo systemctl status zabbix-agent

1.3.2. Windows Installation

  • Run the zabbix_agent-7.4.6-windows-amd64-openssl.msi file with administrative privileges.

  • Select Next.

  • Select Next.

  • ???

  • Copy the zabbix_agentd.conf file to zabbix_agentd.conf.org.

    Server=192.168.2.4              # Wi-Fi Berno.
    Server=###.###.#.#              # Wi-Fi Japke.
    # ServerActive=
  • Restart the Zabbix Agent in Services (services.msc) with administrative privileges.

1.4. Usage

  • Browse to the Zabbix UI web page.

  • Uncheck Remember me for 30 days.

  • Sign in as Zabbix Administrator with the Admin username.