Sie sind auf Seite 1von 9

login as: root

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

#uNTUK ENABLE WEB SERVER

EDIT FAIL HTTPD.CONF

root@zabbixserver18:~# pico /etc/httpd/httpd.conf

fAIL HTTPD.CONF AKAN DIPAPARKAN

UW PICO 5.04 File: /etc/httpd/httpd.conf


Modified

# Distributed authoring and versioning (WebDAV)


#Include /etc/httpd/extra/httpd-dav.conf

# Various default settings


#Include /etc/httpd/extra/httpd-default.conf

# Secure (SSL/TLS) connections


#Include /etc/httpd/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

# Uncomment the following line to enable PHP:


#
Include /etc/httpd/mod_php.conf
# Uncomment the following lines to enable svn support:
#
#LoadModule dav_svn_module lib/httpd/modules/mod_dav_svn.so
#LoadModule authz_svn_module lib/httpd/modules/mod_authz_svn.so

3. KEMUDIA EDIT FAIL .....MYSQLD

root@zabbixserver18:~# pico /etc/rc.d/rc.mysqld

Cari perkataan skip='--

#SKIP="--skip-networking"

Save

root@zabbixserver18:~# mysql_install_db --user=mysql

5. start httpd services

root@zabbixserver18:~# /etc/rc.d/rc.httpd start

start mysql services

root@zabbixserver18:~# /etc/rc.d/rc.mysqld start


root@zabbixserver18:~# nohup: redirecting stderr to stdout
Starting mysqld daemon with databases from /var/lib/mysql

THEN ….CREATE DATABASE “ZABBIX”

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> create database zabbix;


Query OK, 1 row affected (0.00 sec)

mysql> \q
Bye
root@zabbixserver18:~#

UNZIP FAIL ZABBIX YANG TERDAPAT DALAM SERVER FOLDER

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

………………………………………….

selepas unzip fail tersebut

INSTALL ZABBIX

root@zabbixserver18:/lost+found/SERVER# /lost+found/SERVER# cd zabbix-1.8.1

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

selepas selesai ..type make install

AMBIL 4 FAIL DARI ZABBIX FOLDER


root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1# ls
AUTHORS INSTALL NEWS build/ config.status* create/ include/
misc/
COPYING Makefile README compile* config.sub* depcomp* install-
sh* missing*
ChangeLog Makefile.am aclocal.m4 config.guess* configure* docs/ m4/
src/
FAQ Makefile.in bin/ config.log configure.in frontends/ man/
upgrades/
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1# cd create
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create# cd schema
root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/schema# ls
mysql.sql oracle.sql postgresql.sql sqlite.sql

Then load fail mysql ke zabbix database


root@zabbixserver18:/lost+found/SERVER/zabbix-1.8.1/create/schema#mysql

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.

mysql> use zabbix;


Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

Masukkan fail kedalam zabbix


Guna command …..

# source data.sql (cth )

Untuk keluar dari editing mode mysql

Taip \q
Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.03 sec)


Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

mysql> source images_mysql.sql


Query OK, 1 row affected (0.02 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.02 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.02 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)


Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.02 sec)

Query OK, 1 row affected (0.01 sec)

Query OK, 1 row affected (0.01 sec)

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

ARAHAN UNTUK CHECK ZABBIX SERVER UP OR NOT


root@zabbixserver18:/etc/zabbix# ps ax | grep zabbix_server
12690 ? SN 0:00 /usr/local/sbin/zabbix_server
12692 ? SN 0:00 /usr/local/sbin/zabbix_server
12694 ? SN 0:00 /usr/local/sbin/zabbix_server
12695 ? SN 0:00 /usr/local/sbin/zabbix_server
12696 ? SN 0:00 /usr/local/sbin/zabbix_server
12697 ? SN 0:00 /usr/local/sbin/zabbix_server
12698 ? SN 0:00 /usr/local/sbin/zabbix_server
12699 ? SN 0:00 /usr/local/sbin/zabbix_server
12700 ? SN 0:00 /usr/local/sbin/zabbix_server
12702 ? SN 0:00 /usr/local/sbin/zabbix_server
12704 ? SN 0:00 /usr/local/sbin/zabbix_server
12705 ? SN 0:00 /usr/local/sbin/zabbix_server
12708 ? SN 0:00 /usr/local/sbin/zabbix_server
12709 ? SN 0:00 /usr/local/sbin/zabbix_server
12711 ? SN 0:11 /usr/local/sbin/zabbix_server
12713 ? SN 0:00 /usr/local/sbin/zabbix_server
12715 ? SN 0:00 /usr/local/sbin/zabbix_server
12717 ? SN 0:00 /usr/local/sbin/zabbix_server
12719 ? SN 0:00 /usr/local/sbin/zabbix_server
12721 ? SN 0:00 /usr/local/sbin/zabbix_server
12722 ? SN 0:00 /usr/local/sbin/zabbix_server
12724 ? SN 0:00 /usr/local/sbin/zabbix_server
12739 pts/0 S+ 0:00 grep zabbix_server
root@zabbixserver18:/etc/zabbix#

SETELAH ZABBIX SERVER UP …

pergi kepada windows xp dan install xampp-webserver kedalam c

Das könnte Ihnen auch gefallen