Beruflich Dokumente
Kultur Dokumente
root@192.168.100.18's password:
Last login: Thu Mar 11 19:25:56 2010
Linux 2.6.29.6-smp.
root@zabbixserver18:~# group zabbix
-bash: group: command not found
root@zabbixserver18:~# groupadd zabbix
root@zabbixserver18:~#
root@zabbixserver18:~# useradd -g zabbix -s /bin/bash -d /home/zabbix -c 'zabbix'
zabbix
#SKIP="--skip-networking"
Save
root@zabbixserver18:~# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.84 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> \q
Bye
root@zabbixserver18:~#
root@zabbixserver18:~# cd /lost+found/
root@zabbixserver18:/lost+found# ls
AGENT/ MANUAL/ SERVER/
root@zabbixserver18:/lost+found# cd SERVER/
root@zabbixserver18:/lost+found/SERVER# ls
zabbix-1.8.1.tar.gz
root@zabbixserver18:/lost+found/SERVER# tar zxvf zabbix-1.8.1.tar.gz
………………………………………….
INSTALL ZABBIX
root@zabbixserver18:/lost+found/SERVER# /lost+found/SERVER/zabbix-1.8.1#
./configure --prefix=/usr/local --with-mysql --with-net-snmp --enable-server --enable-
agent
Bye
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/schema# cd ..
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create# cd data
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data# ls
data.sql images/ images_mysql.sql images_oracle.sql images_pgsql.sql
images_sqlite3.sql
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data# myql
-bash: myql: command not found
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.84 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Database changed
Taip \q
Query OK, 1 row affected (0.01 sec)
mysql> \q
Bye
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data#
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data#
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data#
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data#
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data#
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data# cd root
-bash: cd: root: No such file or directory
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data#
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data# cd ..
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create# cd ..
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1# cd ..
root@zabbixserver18:/lost+found/SERVER# cd ..
root@zabbixserver18:/lost+found# cd /
root@zabbixserver18:/# mkdir /etc/zabbix
root@zabbixserver18:/# chown -R zabbix.zabbix /etc/zabbix/
root@zabbixserver18:/# Bye
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/schema# cd ..
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create# cd data
-bash: Bye: command not found
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data# ls
data.sql images/ images_mysql.sql images_oracle.sql images_pgsql.sql
images_sqlite3.sql
root@zabbixserver18:/# root@zabbixserver18:/lost+found/SERVER/zabbix-
1.8.1/create/schema# cd ..
-bash: root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/schema#: No such
file or directory
root@zabbixserver18:/# root@zabbixserver18:/lost+found/SERVER/zabbix-
1.8.1/create# cd data
-bash: root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create#: No such file or
directory
root@zabbixserver18:/# root@zabbixserver18:/lost+found/SERVER/zabbix-
1.8.1/create/data# ls
-bash: root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data#: No such
file or directory
root@zabbixserver18:/# data.sql images/ images_mysql.sql images_oracle.sql
images_pgsql.sql images_sqlite3.sql
-bash: data.sql: command not found
root@zabbixserver18:/# root@zabbixserver18:/lost+found/SERVER/zabbix-
1.8.1/create/data# myql
-bash: root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data#: No such
file or directory
root@zabbixserver18:/# -bash: myql: command not found
-bash: -bash:: command not found
root@zabbixserver18:/# root@zabbixserver18:/lost+found/SERVER/zabbix-
1.8.1/create/data# mysql
-bash: root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/data#: No such
file or directory
root@zabbixserver18:/# Welcome to the MySQL monitor. Commands end with ; or \g.
-bash: Welcome: command not found
-bash: or: command not found
root@zabbixserver18:/# Your MySQL connection id is 3
-bash: Your: command not found
root@zabbixserver18:/# Server version: 5.0.84 Source distribution
-bash: Server: command not found
root@zabbixserver18:/#
root@zabbixserver18:/# Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.
-bash: Type: command not found
root@zabbixserver18:/#
root@zabbixserver18:/# mysql> use zabbix;
^Z
[1]+ Stopped mysql zabbix >use
root@zabbixserver18:/# mkdir /etc/zabbix
mkdir: cannot create directory `/etc/zabbix': File exists
root@zabbixserver18:/# chown -R zabbix.zabbix /etc/zabbix/
root@zabbixserver18:/# cp /lost+found/SERVER/zabbix-1.8.1/misc/conf/* /etc/zabbix
root@zabbixserver18:/# cd /etc/zabbix
root@zabbixserver18:/etc/zabbix# ls
zabbix_agent.conf zabbix_agentd.conf zabbix_agentd.win.conf zabbix_proxy.conf
zabbix_server.conf
root@zabbixserver18:/etc/zabbix# pico zabbix_server.conf
root@zabbixserver18:/etc/zabbix# pico zabbix_agentd.conf
root@zabbixserver18:/etc/zabbix# /usr/local/sbin/zabbix_server