Ad Widget

Collapse

zabbix install problem opensuse 10.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jeffj
    Junior Member
    • Apr 2007
    • 21

    #1

    zabbix install problem opensuse 10.2

    HI, I am new to Linux and trying to test the Zabbix.

    I am useing opsensuse 10.2 and belive I have all the pre-req software installed. Everything up to this point int he instructions is working.

    shell> mysql -u<username> -p<password>
    mysql> create database zabbix;
    mysql> quit;
    shell> cd create/mysql
    shell> cat schema.sql |mysql -u<username> -p<password> zabbix

    When i get to the last line I am getting

    "bash:mysql command not found"

    I can see the schema.sql file so I think i am running it from the correct location. Any help would be apprciated.
  • glut0r
    Member
    • Mar 2007
    • 38

    #2
    Originally posted by Jeffj
    HI, I am new to Linux and trying to test the Zabbix.

    I am useing opsensuse 10.2 and belive I have all the pre-req software installed. Everything up to this point int he instructions is working.

    shell> mysql -u<username> -p<password>
    mysql> create database zabbix;
    mysql> quit;
    shell> cd create/mysql
    shell> cat schema.sql |mysql -u<username> -p<password> zabbix

    When i get to the last line I am getting

    "bash:mysql command not found"

    I can see the schema.sql file so I think i am running it from the correct location. Any help would be apprciated.
    I'd check if there is mysql util in your path, like this:

    Code:
    $ which mysql
    I guess you miss mysql-client or whatever package that contains mysql utility.

    Comment

    • Jeffj
      Junior Member
      • Apr 2007
      • 21

      #3
      Thanks glut0r it was the Mysql_client. The mysql Database and tables are built.

      I am still haveing some issues getting Zabbix installed. I am useing http://www.zabbix.com/manual/v1.1/in...rce_server.php as my guide.

      ./configure --enable-server --with-mysql --with-net-snmp # for MySQL seems to run ok don't see any errors.

      make install seems to run ok no errors that I can see.

      At this point I cannot find /etc/zabbix so i am not sure what happened. When i go to http:\\localhost\~zabbix I just get a parent directory.
      I also don't see Zabbix running as a service but if I try zabbix_server -v it responds with the version.

      So I am kinda confused at to what I should be doing at this point. Any help would be apprciated.

      Jeff

      Comment

      • glut0r
        Member
        • Mar 2007
        • 38

        #4
        First of all, try finding zabbix.conf which is supposed to be somewhere after successfull make install
        I bet you will find it under /usr/local/etc/zabbix , as if you did not use --prefix parameter to configure script, defaults point to /usr/local (I may be wrong, please correct me if so) and sysconfdir uses $prefix/etc/zabbix.
        If you want zabbix conf dir to be somewhere else, try recompiling server with --sysconfdir=/etc/zabbix parameter.

        Second question http://localhost/~zabbix will not work, you'd rather use Alias directive (I assume your're running apache) and point /zabbix to /usr/local/share/zabbix (I think so, locate the right dir by finding graphs.php)
        Code:
        Alias /zabbix /usr/local/share/zabbix
        Then point your browser to http://localhost/zabbix and feel the power of logging as Admin
        If your life depends on having zabbix under user dir, perform the folowing trick:

        Setup UserDir in apache to its defaults, like public_html or so. You had to create zabbix user, otherwise zabbix-server refused to start at all. This user has to have $homedir. Mkdir it. Make symlink from inside user dir to /usr/local/share/zabbix, like this:

        Code:
        $ pwd
        /home/zabbix
        $ ln -s /usr/local/share/zabbix public_html
        make sure all rights are fine, and if you did all things right, you may point your browser to http://localhost/~zabbix

        I find it a bit useless, so use Alias, Luke


        Third question, did you start zabbix_server? running zabbix-server -v only proves that zabbix binary is there. Do you have it running ? Check output of
        Code:
         $ ps -ef | grep -i zabbix_server

        Comment

        Working...