Ad Widget

Collapse

zabbix 3.4 install from source with customize folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iftitutul
    Member
    • Sep 2017
    • 51

    #1

    zabbix 3.4 install from source with customize folder

    I am configuring zabbix server 3.4 from source in centos 6. I am following these url: http://jensd.be/731/linux/install-th...centos-or-rhel.
    Also I want to change my configuration file into /opt/dev/administration/monitoring/zabbix folder. So zabbix configuration file path: /opt/dev/administration/monitoring/zabbix/etc/zabbix-server.conf and web and log directory as well.

    Already I changed file accordingly. but if I get copy /etc/init.d/zabbix_server file, here it's not mention any customize path. so my zabbix url is not working. Need help pls
    Last edited by iftitutul; 25-09-2017, 16:15.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    For the startup script, please refer to the file in the package.

    Code:
    # wget http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/deprecated/zabbix-server-mysql-3.4.2-1.el6.x86_64.rpm
    # rpm2cpio zabbix-server-mysql-3.4.0-1.el6.x86_64.rpm | cpio -id
    # cat etc/init.d/zabbix-server
    Be sure to set PidFile in zabbix_server.conf.

    ex.
    Code:
    PidFile=/var/run/zabbix/zabbix_server.pid
    If you set the above PidFile setting, it is necessary to create a directory.

    Code:
    # mkdir -p /var/run/zabbix
    # chown -R zabbix:zabbix /var/run/zabbix
    And, For Web frontends for Zabbix 3.0 or later, PHP 5.4 or later is mandatory.
    The CentOS 6 standard PHP package is 5.3.3.
    Are you ready for PHP 5.4 or later?

    Comment

    • iftitutul
      Member
      • Sep 2017
      • 51

      #3
      As per your referred script, we will define the path as I mentioned: /opt/dev/administration/monitoring/zabbix.

      Yes I already installed php-5.6 and going to use it. Could you please share any links or docs So i go forward with it. thanks
      Last edited by iftitutul; 04-10-2017, 11:13.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        If you have a PHP 5.6 environment, you only need to configure the web server.
        If you are using Apache HTTP Server, please refer to the configuration file included in the package.

        Code:
        # wget http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/deprecated/zabbix-web-3.4.2-1.el6.noarch.rpm
        # rpm2cpio zabbix-web-3.4.2-1.el6.noarch.rpm | cpio -id
        # ls usr/share/doc/zabbix-web-3.4.2/
        for Apache HTTP Server 2.2 : httpd22-example.conf
        for Apache HTTP Server 2.4 : httpd24-example.conf

        Alias, Directory and PHP timezone setting should be done.

        Comment

        Working...