Thursday, July 7, 2011

Setup Zabbix with mysql support with in 5 minutes

Step 1
Install Apache and MSSQL server 

#yum install mysql-server httpd
#service mysqld start
#service httpd start

Set Mysql root password
Default root password is null

Step 2


Install Zabbix server , web, agent packages through yum repository.  


#yum install zabbix-server-mysql  zabbix-web-mysql.noarch zabbix-agent


#cd /usr/share/doc/zabbix-server-mysql-x.x.x/


#mysql -uroot -psqlpassword
mysql > create database zabbix character set utf8;
mysql > quit;
#cd create/schema
#cat mysql.sql | mysql -uroot -psqlpassword  zabbix
#cd ../data
#cat data.sql | mysql -uroot -psqlpassword  zabbix
#cat images_mysql.sql | mysql -uroot -psqlpassword  zabbix

Edit the below mentioned files 
Configure /etc/zabbix/zabbix_agent.conf
Configure /etc/zabbix/zabbix_agentd.conf
Configure /etc/zabbix/zabbix_server.conf


#service zabbix-server start
#service zabbix-agent start

Step 3

Go to web interface and  http://localhost/zabbix
And follow the instructions mentioned there
Zabbix front end is ready! Default user name is Admin, password zabbix.