Ad Widget

Collapse

zabbix2.0 deploy failed with offical documents

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • complexray
    Junior Member
    • Jun 2012
    • 3

    #1

    zabbix2.0 deploy failed with offical documents

    Hi, All

    I encountered some problem when I deploy zabbix 2.0 with offical documents.
    Please help to check and analysis.

    #cd /usr/local/src
    #wget http://downloads.sourceforge.net/pro...dnetworks-kr-2
    #tar -zxvf zabbix-2.0.0.tar.gz
    #groupadd zabbix
    #useradd -g zabbix zabbix

    #mysql -uroot -p123456
    mysql>create database zabbixdb;
    mysql>insert into mysql.user(Host,User,Password) values('localhost','zabbixuser',password('123456') );
    mysql>grant all on zabbixdb.* to 'zabbixuser'@'%' identified by '123456' with grant option;
    mysql>flush privileges;
    mysql>source /usr/local/src/zabbix-2.0.0/database/mysql/schema.sql
    mysql>source /usr/local/src/zabbix-2.0.0/database/mysql/data.sql
    mysql>source /usr/local/src/zabbix-2.0.0/database/mysql/images.sql
    mysql>flush privileges;
    mysql>exit;

    #mkdir /usr/local/nginx/html/zabbix
    #cp -R /usr/local/src/zabbix-2.0.0/frontends/php/* /usr/local/nginx/html/zabbix/
    #chown www. -R /usr/local/nginx/html/zabbix
    #chmod 700 -R /usr/local/nginx/html/zabbix

    #vi /etc/php.ini
    memory_limit = 256M
    post_max_size = 32M
    max_execution_time = 600

    #cd /usr/local/src/zabbix-2.0.0
    #./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl
    #make install
    #vi /usr/local/etc/zabbix_server.conf
    DBName=zabbixdb
    DBUser=zabbixuser
    DBPassword=123456

    #cp /usr/local/src/zabbix-2.0.0/misc/init.d/red hat/zabbix_agentd_ctl /etc/init.d/
    #cp /usr/local/src/zabbix-2.0.0/misc/init.d/red hat/zabbix_server_ctl /etc/init.d/

    #cd /usr/local/sbin/
    #zabbix_server -c /usr/local/etc/zabbix_server.conf
    #cd /etc/init.d/
    #./zabbix_server_ctl start

    END

    when I open the http://132.160.160.31/zabbix/ (this's my local machine), I found the zabbix server no running.

    I can use the commond "mysql -uzabbixuser -p123456" login the mysql successfully.
    The iptables has permit 10050/10051 tcp/udp ports.
    By the way, the server is running cacti normal.

    What should I check when I do these operations.
    Last edited by complexray; 12-06-2012, 13:56.
  • Jason
    Senior Member
    • Nov 2007
    • 430

    #2
    First thing I'd do is to check the server log and see what it stopped... look in /tmp

    Comment

    • aharvey
      Junior Member
      • Oct 2011
      • 4

      #3
      Are you trying to use nginx instead of the required/recommended apache/httpd?

      Comment

      • osits
        Junior Member
        • Jul 2012
        • 6

        #4
        Zabbix 2.0.1 installation help

        Hi Jason, can you please advise me how to install ZAbbix 2.0.1 on ubuntu 12.04 server. MySQL, Apache and PHP is already installed on the server.
        Thanks
        Suren
        Originally posted by Jason
        First thing I'd do is to check the server log and see what it stopped... look in /tmp

        Comment

        Working...