One click installation script of Zabbix Server 5

Zabbix One Click Installation Script

The Zabbix one click installation script is maintained for a long time. It supports highly customized, interactive, and multi version selection of multi technology stacks. Nginx/PHP/MySQL/MariaDB/Zabbix/Administrator/phpMyAdmin/Grafana can be installed as required, which is applicable to CentOS 7~8 systems with x86_64 bit architecture.

Installation mode : Nginx/Zabbix compilation and installation, MySQL/MariaDB binary installation, and Grafana rpm installation All installation packages are from the software official. In addition, since most of the official software is downloaded from foreign sources slowly, please ensure the SSH terminal connection status during the download.

Script Properties

  • Support Nginx-1.21 and Grafana-7.4;
  • Support selective installation of Zabbix Server/Agent;
  • Support multiple database versions (MySQL-8, MariaDB-10.5);
  • Support multiple PHP versions (PHP-7.4, PHP-8.0);
  • Support multiple database management tools (Adminer-4, phpMyAdmin-5);

Latest version (2022-04-18)

After connecting to your Linux server using the SSH connection tool, copy and execute the following command to start the installation:

 curl -O  https://renwole.com/sh/install_zabbix_v0.9.2.sh  && bash install_zabbix_v0.9.2.sh

Installation process description: https://renwole.com/ilnmp/install-zabbix

Information about Zabbix after installation:

  • Zabbix UI entry: http://IP/ui
  • Zabbix management platform account password: Admin/zabbix
  • Zabbix database/account/password: zabbix/zabbix/zabbix

Information about Grafana after installation:

  • Grafana installation using rpm
  • Grafana UI Portal: http://IP:3000
  • Grafana UI login account/password: admin/admin

Script Support Module

Module Name describe
enable-server Enable Zabbix Server
enable-agent Enable Zabbix agent
enable-proxy Enabling the Zabbix proxy can collect data on behalf of a single Zabbix server to share the load
enable-ipv6 Enable support for IPV6 protocol
enable-java Enable Zabbix Java gateway to support monitoring JMX applications
with-mysql Enable MySQL as the back-end storage database
with-iconv Enable transcoding, such as GBK to UTF-8, to prevent garbled codes
with-libcurl Components required to enable Web monitoring, VMware monitoring, and SMTP (mail sending)
with-libxml2 Enabling components required for VMware monitoring
with-ssh2 SSH checks are performed as agentless monitoring. The Zabbix Agent is not required for SSH check
with-openipmi Enable IPMI protocol to monitor server temperature, fan speed, etc
with-net-snmp Enable SNMP protocol to monitor printers, routers, UPS and other devices
The above modules have been automatically added and enabled in the compilation and installation of zabbix.

Application installation directory

Software name route explain
Nginx/PHP/MySQL/Zabbix /apps/server All ILNMP Application installation and data storage directory
Zabbix ConfigFile /apps/server/zabbix/etc Zabbix Server monitoring installation directory
Grafana Rpm installation mode path system default The configuration file is under/etc/

Update logs and historical versions View and download

One click installation script of Zabbix Server 5 》90 ideas

  1. Ink astringency

    Hello, blogger, can the next version be built only in containers? Can you add a one click version installed directly by the system? The container technology is really good, but it is not very useful.

    reply
    1. Node Author

      Basically, the integration is completed. This integration is time-consuming because all of them use container deployment.

      reply
  2. smith

    The nginx component installation failed.
    –2022-07-28 11:04:47– http://mirrors.sohu.com/nginx/nginx-1.21.6.tar.gz
    Resolving mirrors.sohu.com (mirrors.sohu.com)… 123.125.123.141
    Connecting to mirrors.sohu.com (mirrors.sohu.com)|123.125.123.141|:80… connected.
    HTTP request sent, awaiting response… 404 Not Found
    2022-07-28 11:04:48 ERROR 404: Not Found.

    reply
  3. migrant workers

    HTTP request sent, awaiting response… 404 Not Found
    2022-05-15 21:08:54 ERROR 404: Not Found.

    Auto download failed! You can manually download http://mirrors.sohu.com/nginx/nginx-1.21.6.tar.gz into the /opt directory.
    Killed
    [ root@localhost ~]# tar (child): nginx-1.21.6.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    install_zabbix_v0.9.2.sh: line 168: cd: nginx-1.21.6: No such file or directory
    sed: can’t read auto/cc/gcc: No such file or directory
    install_zabbix_v0.9.2.sh: line 171: ./ configure: No such file or directory
    make: *** No targets specified and no makefile found. Stop.
    ERROR: Nginx install failed, Please Contact the author!

    Resource pool 404..

    reply
  4. d

    After the virtual machine is installed, can you package the/apps/directory and unzip it to another server for use? thank you

    reply
  5. Michael

    Brother, there is no 8.0.25 version of the database download station now. When running the script, it will directly report an error and cannot find this. It can run normally if it is changed to 8.0.26 version

    reply
  6. zabbix

    –2022-01-25 11:09:12– http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz
    Resolving mirrors.ustc.edu.cn (mirrors.ustc.edu.cn)… 202.141.176.110
    Connecting to mirrors.ustc.edu.cn (mirrors.ustc.edu.cn)|202.141.176.110|:80… connected.
    HTTP request sent, awaiting response… 404 Not Found
    2022-01-25 11:09:12 ERROR 404: Not Found.

    Auto download failed! You can manually download http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz into the /opt directory

    reply
  7. two hundred and forty-five thousand eight hundred and thirty-seven

    Install_zabbix_v0.9.1. sh: line 126: wget: command not found
    Killed
    Auto download failed! You can manually download http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz into the /opt directory.
    [ root@localhost ~]#Tar (child): mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz: cannot be opened: there is no such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    Mv: Cannot get the file status (stat) of "mysql-8.0.25-linux-glibc2.12-x86_64/*": there is no such file or directory
    ERROR: MySQL install failed, Please contact the author!
    ^C

    reply
    1. two hundred and forty-five thousand eight hundred and thirty-seven

      Make: * * * There are no rules to create the target "build" required by "default". stop it.
      ERROR: Nginx install failed, Please Contact the author!
      –2022-01-04 14:16:16– http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz
      Resolving host mirrors.ustc.edu.cn (mirrors.ustc.edu.cn)... 202.141.160.110
      Connecting to mirrors.ustc.edu.cn (mirrors.ustc.edu.cn) | 202.141.160.110 |: 80... Connected.
      HTTP request has been sent, waiting for response... 404 Not Found
      2022-01-04 14:16:16 Error 404: Not Found.

      Auto download failed! You can manually download http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz into the /opt directory.
      Killed
      [ root@localhost ~]#Tar (child): mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz: cannot be opened: there is no such file or directory
      tar (child): Error is not recoverable: exiting now
      tar: Child returned status 2
      tar: Error is not recoverable: exiting now
      Mv: Cannot get the file status (stat) of "mysql-8.0.25-linux-glibc2.12-x86_64/*": there is no such file or directory
      ERROR: MySQL install failed, Please contact the author!

      reply
  8. moon

    2021-11-15 17:26:38 ERROR 404: Not Found.

    Auto download failed! You can manually download http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz into the /opt directory.
    Killed
    [ root@iZuf65saybbvaw5kjlol48Z admin]# tar (child): mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    mv: cannot stat ‘mysql-8.0.25-linux-glibc2.12-x86_64/*’: No such file or directory
    ERROR: MySQL install failed, Please contact the author!

    reply
  9. cc

    Good webmaster, do you have offline installation package?

    Because the installation environment is on the intranet, there is no way to add yum or other sources online, so you need to copy all the installation files to the server.

    Thank you very much.

    reply
    1. Milk tea

      http://mirrors.ustc.edu.cn/mariadb/mariadb-10.5.10/bintar-linux-systemd-x86_64/mariadb-10.5.10-linux-systemd-x86_64.tar.gz
      Resolving mirrors.ustc.edu.cn (mirrors.ustc.edu.cn)… 202.141.160.110
      Connecting to mirrors.ustc.edu.cn (mirrors.ustc.edu.cn)|202.141.160.110|:80… connected.
      HTTP request sent, awaiting response… 404 Not Found
      2022-01-05 10:40:56 ERROR 404: Not Found.

      Auto download failed! You can manually download http://mirrors.ustc.edu.cn/mariadb/mariadb-10.5.10/bintar-linux-systemd-x86_64/mariadb-10.5.10-linux-systemd-x86_64.tar.gz into the /opt directory.
      Killed
      [ root@localhost ~]# tar (child): mariadb-10.5.10-linux-systemd-x86_64.tar.gz: Cannot open: No such file or directory
      tar (child): Error is not recoverable: exiting now
      tar: Child returned status 2
      tar: Error is not recoverable: exiting now
      mv: cannot stat ‘mariadb-10.5.10-linux-systemd-x86_64/*’: No such file or directory
      ERROR: MariaDB install failed, Please contact the author!
      2022-01-05 10:29:29 ERROR 404: Not Found.

      Auto download failed! You can manually download http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz into the /opt directory.
      Killed
      [ root@localhost ~]# tar (child): mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz: Cannot open: No such file or directory
      tar (child): Error is not recoverable: exiting now
      tar: Child returned status 2
      tar: Error is not recoverable: exiting now
      mv: cannot stat ‘mysql-8.0.25-linux-glibc2.12-x86_64/*’: No such file or directory
      ERROR: MySQL install failed, Please contact the author!

      All database installation paths are invalid

      reply
  10. caibaozi

    The Chinese version shows garbled code. Do you add fonts or display garbled code according to Baidu tutorial. I wonder if the author has a good solution

    reply
  11. Xiaonian Cake

    gzip: stdin: unexpected end of file
    Tar: Abnormal EOF in archive file
    Tar: Abnormal EOF in archive file
    tar: Error is not recoverable: exiting now
    Install_zabbix_v0.9.1. sh: Line 802:/ Configure: No such file or directory
    Make: * * * There are no rules to create the target "install". stop it.
    Zabbix install Failed, Please Contact the author
    Nginx Start [OK]
    MariaDB is not installed
    MySQL Start [OK]
    PHP Start [OK]
    Zabbix Server is not installed
    Zabbix Agent is not installed
    Grafana Start [OK]

    Zabbix installation fails every time

    reply
    1. moon

      Auto download failed! You can manually download http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz into the /opt directory.
      Killed
      [ root@zz ~]#Tar (child): mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz: cannot be opened: there is no such file or directory
      tar (child): Error is not recoverable: exiting now
      tar: Child returned status 2
      tar: Error is not recoverable: exiting now
      Mv: Cannot get the file status (stat) of 'mysql-8.0.25-linux-glibc2.12-x86_64/*': there is no such file or directory
      ERROR: MySQL install failed, Please contact the author!

      There's something wrong, boss. Please look at it

      reply
  12. Is the deployment useless

    Make: * * * There are no rules to create the target "build" required by "default". stop it.
    ERROR: Nginx install failed, Please Contact the author!
    –2021-05-19 16:58:27– http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.22-linux-glibc2.12-x86_64.tar.xz
    Resolving host mirrors.ustc.edu.cn (mirrors.ustc.edu.cn)... 202.141.160.110
    Connecting to mirrors.ustc.edu.cn (mirrors.ustc.edu.cn) | 202.141.160.110 |: 80... Connected.
    HTTP request has been sent, waiting for response... 404 Not Found
    2021-05-19 16:58:27 Error 404: Not Found.

    Auto download failed! You can manually download http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.22-linux-glibc2.12-x86_64.tar.xz into the /opt directory.
    Killed
    Tar (child): mysql-8.0.22-linux-glibc2.12-x86_64.tar.xz: cannot be opened: there is no such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    [ root@localhost ~]#Mv: Cannot get the file status (stat) of "mysql-8.0.22-linux-glibc2.12-x86_64/*": there is no such file or directory
    ERROR: MySQL install failed, Please contact the author!

    reply
  13. two thousand three hundred and thirty-three

    Connecting to mirrors.ustc.edu.cn (mirrors.ustc.edu.cn) | 218.104.71.170 |: 80... Connected.
    HTTP request has been sent, waiting for response... 404 Not Found
    2021-05-17 09:30:24 Error 404: Not Found.

    Auto download failed! You can manually download http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/mysql-8.0.22-linux-glibc2.12-x86_64.tar.xz into the /opt directory.
    Killed

    Mysql-8.0.22-linux-glibc2.12-x86_64.tar.xz

    reply
  14. andy

    The installation of PHP in Centos 8.2 prompts that the oniguruma package is missing
    Zabbix server is missing OpenIPMI devel

    reply
      1. andy

        Install zabbix server 5.2 to create monitoring items and monitoring ports;
        Unable to configure port monitoring. The displayed interface is inconsistent with the official document. I wonder if you have encountered

        reply
  15. dotpy

    Thank you for your good script. I want to ask you two questions
    1. Can I install the zabbix server and the zabbix agent at the same time? I first install the zabbix server, complete the initialization of the zabbix, log in to the interface, and then execute the script to install the zabbix agent. After the installation is complete, an error is always reported:
    ent checks on host “Zabbix server”: host unavailable

    2. The URL of the login page must be http://IP/ui , can I modify it? Do not want the UI behind

    reply
    1. Node Author

      1. The host name does not exist. You can change it to the host name of the current host in the zabbix agent configuration file. After the modification is successful, remember to restart the agent service before it takes effect;
      2. The login URL can be customized. You only need to move all files under the UI directory to the upper directory, and then use IP to access them directly.

      reply
      1. dotpy

        Thanks for your reply, it has been solved! It's not too bad to send such a good script as a red envelope.
        Can I add a WeChat communication? If you have any questions about performance optimization, I'd like to ask you!

        reply
  16. zhangguoqiang

    .
    Nginx Start [OK]
    MariaDB is not installed
    MySQL Start [OK]
    PHP is not installed
    Zabbix Server is not installed
    Zabbix Agent is not installed
    Grafana Start [OK]
    ===========================================
    Thank you for using Renwole.com script
    ===========================================
    RootUser: root
    RootPasswd: I#p1% sX@Renwole
    ===========================================
    PHPInfo: http://IP/php.php
    phpMyAdmin: http://IP/phpmyadmin
    ===========================================
    Grafana WebUI: http://IP:3000
    Grafana User/Passwd: admin/admin

    reply
    1. Node Author

      We will do some research here. If possible, we will support more services in the next version, including the needs of some students in the earlier stage.

      reply
      1. ivan

        Another question is whether the optimized configuration of MySQL is automatically optimized according to the configuration of the allocation machine by default?

        reply
    1. ivan

      1. Zabbix_agentd is not started,
      2. Whether the optimized version can make a version selection corresponding to agent, proxy and server

      reply
    1. Node Author

      At present, the mainstream phpMyAdmin. However, under the research here, we will support both options later. Thank you for your valuable suggestions.

      reply
  17. Jaxson Wang

    CentOs 7 installation failed. Error message:

    install_zabbix.sh: line 94: ulimit: open files: cannot modify limit: Operation not permitted
    sed: can’t read auto/cc/gcc: No such file or directory
    install_zabbix.sh: line 96: ./ configure: No such file or directory
    make: *** No targets specified and no makefile found. Stop.
    ERROR: Nginx install failed, Please Contact the author!

    reply
  18. Eclectic play

    When installing libzip, you need to add the following environment variables
    export PKG_CONFIG_PATH=”/usr/local/lib/pkgconfig/”
    Some computers need

    yum install gd gd-devel

    reply
  19. Zhou Junjun

    It is OK to select mariadb to install the database on your own PC, but ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql. sock' (2), there is an error when opening the zabbixWeb mysqli:: real_connect(): (HY000/2002): No such file or directory [setup. php: 99 → CSetupWizard ->__construct() → CSetupWizard->eventHandler() → CSetupWizard->dbConnect() → DBconnect() → MysqlDbBackend->connect() → mysqli->real_connect() in include/classes/db/MysqlDbBackend.php:169]
    No such file or directory

    reply
    1. Node Author

      Several points need to be confirmed:
      Whether MySQL is successfully installed;
      What version of Linux distribution is it;
      In this case, you can change the "localhost" in the configuration file to "127.0.0.1".

      reply

Post reply

Your email address will not be disclosed. Required items have been used * tagging

 Captcha Code