Ad Widget

Collapse

Error installing zabbix-web-mysql to AWS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • njader
    Junior Member
    • Mar 2018
    • 5

    #1

    Error installing zabbix-web-mysql to AWS

    Hi, I am trying to install Zabbix on Amazon Linux Instance. Sorry, but I am totally newbie. Can someone help me on this?

    yum install zabbix-web-mysql
    Error: Package: php-mysql-5.4.16-43.amzn2.x86_64 (@amzn2-core)
    Requires: php-pdo(x86-64) = 5.4.16-43.amzn2
    Removing: php-pdo-5.4.16-43.amzn2.x86_64 (@amzn2-core)
    php-pdo(x86-64) = 5.4.16-43.amzn2
    Updated By: php-pdo-7.2.0-3.amzn2.0.1.x86_64 (amzn2extra-lamp-mariadb10.2-php7.2)
    php-pdo(x86-64) = 7.2.0-3.amzn2.0.1
    Available: php-pdo-5.4.16-43.amzn2.0.1.x86_64 (amzn2-core)
    php-pdo(x86-64) = 5.4.16-43.amzn2.0.1
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    How did you try to install Zabbix on Amazon Linux 2?
    The yum repository for Amazon Linux 2 is not officially released.

    For PHP, do not mix PHP 5.4 and PHP 7.2 environment, try only to 5.4.

    Comment

    • njader
      Junior Member
      • Mar 2018
      • 5

      #3
      Originally posted by Atsushi
      How did you try to install Zabbix on Amazon Linux 2?
      The yum repository for Amazon Linux 2 is not officially released.

      For PHP, do not mix PHP 5.4 and PHP 7.2 environment, try only to 5.4.
      Hi Atsushi. I am using Amazon Linux AMI 2017.09.1. I Zabbix is now installed. I followed your guide on another post. I can now access Zabbix server with Elastic IP. How can I add on-premise hosts to enable monitoring? Do I need to setup VPC/VPN?

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        It is necessary to have an environment where on-premises host and Zabbix server can connect via TCP/IP.
        Please consider it according to the operation standards and security policy of the network you are using.

        Editor’s note: This is the first of a popular two-part series by Nick Matthews. Read Part 2 >> By Nick Matthews, Partner Solutions Architect, CCIE #23560 I relate better to networking when people use words and phrases I know, such as “router on a stick,” “MPLS WAN,” and “VRF,” and then show me a packet […]

        Editor’s note: This is the second of a popular two-part series by Nick Matthews. Read Part 1 >> By Nick Matthews, Partner Solutions Architect, CCIE #23560 In the previous post on Amazon Virtual Private Cloud (Amazon VPC), we covered the basic anatomy of a VPC and the different ways to connect a VPC to the outside world. […]

        Comment

        • njader
          Junior Member
          • Mar 2018
          • 5

          #5
          I am now trying to add hosts but form is not visible.
          BTW, I installed zabbix using these command. Did I miss something?

          sudo yum install http://repo.zabbix.com/zabbix/3.4/rh...el6.noarch.rpm
          sudo yum install zabbix-agent
          sudo yum install httpd24 php56 php56-gd php56-bcmath php56-mbstring php56-xml php56-ldap php56-mysqlnd
          sudo chown -R apache:apache /usr/share/zabbix/
          sudo chown -R apache:apache /etc/zabbix/web/
          sudo cp /usr/share/doc/zabbix-web-3.4.7/httpd24-example.conf /etc/httpd/conf.d/zabbix.conf
          sudo yum --enablerepo=zabbix-deprecated install zabbix-server-mysql
          sudo yum --enablerepo=zabbix-deprecated install zabbix-web-mysql
          sudo yum install mysql56-server
          sudo service httpd start
          sudo chkconfig httpd on
          sudo service mysqld start
          sudo mysql_secure_installation
          mysql -uroot -p
          mysql> create database zabbix character set utf8 collate utf8_bin;
          mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
          mysql> quit;
          zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

          vi /etc/zabbix/zabbix_server.conf
          DBPassword=password

          vi /etc/httpd/conf.d/zabbix.conf
          php_value max_execution_time 300
          php_value memory_limit 128M
          php_value post_max_size 16M
          php_value upload_max_filesize 2M
          php_value max_input_time 300
          php_value always_populate_raw_post_data -1
          php_value date.timezone Asia/Singapore

          sudo service zabbix-server start
          sudo service zabbix-agent start
          sudo chkconfig mysqld on
          sudo chkconfig zabbix-server on
          sudo chkconfig zabbix-agent on
          sudo service httpd stop
          sudo service httpd start

          Thank you very much for your help.
          Attached Files
          Last edited by njader; 07-03-2018, 12:56.

          Comment

          Working...