CentOS 5
Sponsored Link

ZABBIX - Install2010/05/03

  Install ZABBIX that is Integrated monitoring system. Web Server, MySQL Server are required to installed.

[1] Add a user and Database for ZABBIX first.
[root@dlp2 ~]#
mysql -u root -p

Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
create database zabbix;
# create a DB

Query OK, 1 row affected (0.00 sec)

# add a user 'zabbix'

mysql>
grant all privileges on zabbix.* to zabbix@localhost identified by 'password';

Query OK, 0 rows affected (0.00 sec)

mysql>
flush privileges;
# reload

Query OK, 0 rows affected (0.00 sec)

mysql>
quit

Bye
[2] Install ZABBIX
[root@dlp2 ~]#
rpm -Uvh http://www.zabbix.jp/rpms/rhel5/i386/zabbix-jp-release-5-1.noarch.rpm

Preparing...
################################ [100%]

   1:zabbix-jp-release
################################ [100%]

[root@dlp2 ~]#
vi /etc/yum.repos.d/zabbix-jp.repo


[zabbix-jp]
name=ZABBIX-JP - $basearch
baseurl=http://www.zabbix.jp/rpms/rhel5/$basearch/
enabled=
0
# change

gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-JP

[root@dlp2 ~]#
yum --enablerepo=zabbix-jp -y install zabbix zabbix-web zabbix-agent php-mysql


[root@dlp2 ~]#
cd /usr/share/doc/zabbix-1.4.6/dbinit

[root@dlp2 dbinit]#
cat ./schema/mysql.sql | mysql -u root -p zabbix

Enter password:
[root@dlp2 dbinit]#
cat ./data/data.sql | mysql -u root -p zabbix

Enter password:
[root@dlp2 dbinit]#
cat ./data/images_mysql.sql | mysql -u root -p zabbix

Enter password:
[root@dlp2 dbinit]#
vi /etc/zabbix/zabbix_server.conf


# line 140: uncomment and add DB password

DBPassword=
password


[root@dlp2 dbinit]#
vi /etc/httpd/conf.d/zabbix.conf


#
# Zabbix monitoring system php web frontend
#

Alias /zabbix /usr/share/zabbix

<Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from
192.168.0.0/24
# IP address you allow


    php_value max_execution_time 300
    php_value date.timezone Asia/Tokyo
    php_value memory_limit 64M
    php_value upload_max_filesize 10M
</Directory>

[root@dlp2 dbinit]#
echo "" > /etc/zabbix/zabbix.conf.php

[root@dlp2 dbinit]#
chown apache. /etc/zabbix/zabbix.conf.php

[root@dlp2 dbinit]#
/etc/rc.d/init.d/zabbix start

Starting zabbix server:
[  OK  ]

[root@dlp2 dbinit]#
/etc/rc.d/init.d/zabbix-agent start

Starting zabbix agent:
[  OK  ]

[root@dlp2 dbinit]#
/etc/rc.d/init.d/httpd restart

Stopping httpd:
[  OK  ]

Starting httpd:
[  OK  ]
Matched Content