Ad Widget

Collapse

ununtu 6.06 lts zabbix mysql --> installation solution

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krischeu
    Junior Member
    • Jan 2007
    • 5

    #1

    ununtu 6.06 lts zabbix mysql --> installation solution

    No thanks to anyone. But if anyone has the same problem, hope this will help

    Zabbix auf VM-Ware

    == Installation ==

    VM-Ware Einstellungen:
    1 CPU
    256 MB RAM
    8 GB HDD (split to 2 GB Files, not allocate now)

    Ubuntu-Server 6.06 LTS


    Installaton:
    Installation LAMP
    Servername: zabbix.carhs.de
    deutsch, Tastatur deutsch
    User anlegen: admin, admin, admin

    Konfiguration:

    anmelden als admin
    sudo bash
    vi /etc/apt/sources.list
    Das CD-ROM rausnehmen und die anderen deb-sourcen aktivieren durch löschen der Raute #
    speichern -> wq!

    apt-get update&& apt-get upgrade
    apt-get install linux-image-server openssh-server mysql-client gcc make openssl libssl-dev libmysql++-dev xosview
    reboot

    anmelden als admin
    sudo bash
    vi .bashrc
    export EDITOR=vi
    wq!

    ntpdate ptbtime1.ptb.de
    hwclock --systohc
    eintragen in crontab -e

    runterladen von sourceforge.org --> net-snmp (5.4)
    /usr/local/share/net-snmp
    ./configure
    default version 3
    system contact information: h.krischeu at gmx.de
    system location: Alzenau
    location to write log file: /var/log/snmpd.log
    location for write-persistent information: var/net-snmp
    ./make
    ./make install

    Benutzer zabbix anlegen, Datenbank anlegen
    groupadd zabbix
    useradd -c 'Zabbix' -d /home/zabbix -g zabbix -s /bin/bash zabbix
    mkdir /home/zabbix
    chown -R zabbix.zabbix /home/zabbix
    root@zabbix:/home/zabbix/zabbix# passwd zabbix
    reboot


    mySQL
    mysql -u root mysql
    You will then be asked for a password. the default password is blank so hit enter or if you have changed the root mysql password enter it. You will then see:
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 13 to server version: 5.0.15-Debian_0.dotdeb.1-log
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    mysql>
    now to change the root password:
    UPDATE user SET Password=PASSWORD('<password>') WHERE user='root';
    FLUSH PRIVILEGES;
    then do <ctrl> + 'd' to quite or type quit. You have now 'fixed' the password.

    su - zabbix
    mysql -u root -p
    create database zabbix;
    quit;

    In das ausgepackte zabbix1.1.4.tgz-wechseln
    cd create
    cd mysql
    mysql -u root -p zabbix < schema.sql
    cd ../data
    mysql -u root -p zabbix < data.sql
    cd ../../
    ./configure --prefix=/usr --with-mysql --with-net-snmp --enable-server --enable-agent
    make
    make install
    exit
    '''sudo bash'''
    cd /home/zabbix/zabbix
    make install
    Last edited by krischeu; 24-01-2007, 14:55.
Working...