Upgrade Lubuntu after install Lubuntu on MK802
#apt-get updatetimezone and time from ntp.
#apt-get upgrade
#su -Install text editor(s), mailer, openssh server and wget
#cd /etc
#cp /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
#ntpdate clock.nectec.or.th
#apt-get install openssh-server openssh-client wget
#apt-get install gcc build-essential gcc-multilib php5 php5-gd php5-mysql php-apcOn install set password mysql to "mysql"
#apt-get install mysql-server libmysqlclient-dev libcurl4-openssl-dev libsnmp-dev
password: mysql
MySQL drop table test and user by cli (password mysql)
# mysql -u root -p
drop database test;
use mysql;
delete from db;
delete from user where user='';
flush privileges;
create database zabbix;
grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by '2zabbix';
quit;
add user account for zabbix server
#groupadd zabbixDownload Compiling and installing Zabbix
#useradd zabbix -g zabbix
#cd DownloadsStart zabbix server and agentd:
#wget -O zabbix.tgz http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.0.4/zabbix-2.0.4.tar.gz/download
#tar xzf zabbix.tgz
#cd zabbix-2.0.4
#./configure --enable-server --enable-agent --with-mysql --with-libcurl --with-net-snmp
#make install
#cd database/mysql
#mysql -u zabbix -p zabbix < schema.sql 2zabbix
#mysql -u zabbix -p zabbix < images.sql
#mysql -u zabbix -p zabbix < data.sql
#cd ../../frontends/php/
#rm /var/www/index.html
#cp -R * /var/www/
#chown -R www-data:www-data /var/www
/usr/local/sbin/zabbix_server
/usr/local/sbin/zabbix_agentd start
Starting services automatically on (re)boot
add "/usr/local/sbin/zabbix_server" before "exit 0" on /etc/rc.local
add "/usr/local/sbin/zabbix_server" before "exit 0" on /etc/rc.local
# vi /etc/rc.localPHP configuration
/usr/local/sbin/zabbix_server
/usr/local/sbin/zabbix_agentd
exit 0
# cd /etc/php5/apache2/restart apache2:
# cp php.ini php.ini.org
# vi /etc/php5/apache2/php.ini and change ..
post_max_size [ Old value: 8M ; New value: 16M ]
max_execution_time [ Old value: 30 ; New value: 300 ]
max_input_time [ Old value: 60 ; New value: 300 ]
date.timezone [ Value not set, set this to your timezone (Asia/Bangkok)]
/etc/init.d/apache2 restartWeb Install and Config
open url: http://192.168.200.9/ (you zabbiz ipaddress)
Next>>
All OK . click Next>>
Set Config
Test Connect
>> OK << Next>>
Host localhost
Port: 10051
PortName Zabbix on MK802
Next>>
Next>>
All OK . click Next>>
Set Config
Database type
|
MySQL
|
Database host
|
localhost
|
Database port
|
0 - use default port
|
Database name
|
zabbix
|
User
|
zabbix
|
Password
|
zabbix
|
Test Connect
>> OK << Next>>
Host localhost
Port: 10051
PortName Zabbix on MK802
Next>>
Finish button to install
Try Login Zabbix Admin / zabbix
Verify Zabbiz Config parameters:
# vi /usr/local/etc/zabbix_server.confMonitor Error from log
DBUser [ Old value: root ; New value: zabbix ]
DBPassword [ Old value not set ; New value: 2zabbix ]
DBSocket [ Old value: /tmp/mysql.sock ; New value: /var/run/mysqld/mysqld.sock ]
root@linaro-alip:~# tail /tmp/zabbix_server.log
root@linaro-alip:~# tail /tmp/zabbix_agentd.log
0 comments:
Post a Comment