Linux Troubleshooting Make Easy.

Linux Learning & Troubleshooting Make Easy.

Installing Zabbix on Linux

ZABBIX is an all-in-one 24x7 free monitoring solution. ZABBIX is software that monitors numerous parameters of a network and the health and integrity of servers. ZABBIX uses a flexible notification mechanism that allows users to configure e-mail based alerts for virtually any event. This allows a fast reaction to server problems. ZABBIX offers reporting and data visualisation features based on the stored data.




Installation Procedure of Zabbix:

Setting up the user accounts:
#  groupadd -g 130 zabbix
#  useradd -u 130 -g zabbix -c 'Zabbix monitoring' zabbix

First install all the dependencies with yum using the command :
#  yum install zlib-devel mysql-devel glibc-devel curl-devel gcc automake mysql libidn-devel openssl-devel net-snmp-devel rpm-devel OpenIPMI-devel

Configure the EPEL repository:
#  rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Install the following packages with yum :
#  yum --enablerepo=epel install iksemel iksemel-devel

Compile and Install Source:
#  wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/1.8.1/zabbix-1.8.1.tar.gz?use_mirror=freefr
#  gunzip zabbix-1.8.1.tar.gz && tar -xvf zabbix-1.8.1.tar

#  cd zabbix-1.8.1
#  ./configure --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl --with-openipmi --enable-agent
#  make
#  make install

Creating the MySQL DB:

#  service mysqld start
#  chkconfig mysqld on
#  mysqladmin -u root password 'new-password-here'

script to secure your MySQL installation :
#  mysql_secure_installation

Login to MySql DB and create database:
#  mysql -u root -p
mysql>   create database zabbix character set utf8;

Zabbix user hast he rights to mess with the db so lets give him all rights :
mysql>   grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'set-password-here';
mysql>   quit;

Import the sql scripts into the db so we have tables and data :
#  cd create/schema
#  cat mysql.sql | mysql -u zabbix -p zabbix
#  cd ../data
#  cat data.sql | mysql -u zabbix -p zabbix
#  cat images_mysql.sql | mysql -u zabbix -p zabbix

Configuring Zabbix:

Create a folder for Zabbix where the config files are stored and then copy the appropriate files:
#  mkdir /etc/zabbix
#  cd ../..
#  cp misc/conf/{zabbix_server.conf,zabbix_agentd.conf} /etc/zabbix/

Edit /etc/zabbix/zabbix_server.conf :
#  vi /etc/zabbix/zabbix_server.conf

Set the Following parameters:
   DBName=zabbix
   DBUser=zabbix
   DBPassword=your-zabbix-mysql-password

Permissions and Running Zabbix Server:
#  chmod 400 /etc/zabbix/zabbix_server.conf
#  chown zabbix /etc/zabbix/zabbix_server.conf

Execute the script zabbix_agentd and zabbix_server which are found in /usr/local/sbin/:
#  /usr/local/sbin/zabbix_agentd
#  /usr/local/sbin/zabbix_server

Grep the output of all running processes :
#  ps -e | grep zabbix

Creating startup scripts:

#  cd zabbix-1.8.1
#  cp misc/init.d/redhat/8.0/zabbix_* /etc/init.d/
#  vi /etc/init.d/zabbix_server

change the progdir to:
    progdir=”/usr/local/sbin/”     

#  vi /etc/init.d/zabbix_agentd

change the progdir to:
    progdir=”/usr/local/sbin/”       

#  chkconfig --add zabbix_server
#  chkconfig --add zabbix_agentd
#  chkconfig --level 35 zabbix_server on
#  chkconfig --level 35 zabbix_agentd on
#  chmod 755 /etc/init.d/zabbix_server
#  chmod 755 /etc/init.d/zabbix_agentd
#  service zabbix_server {start|stop|restart|condrestart}

Installing the Web frontend:

#   yum install php-mysql php-gd php-bcmath php-mbstring php-xml
#  cp -r frontends/php/ /var/www/html/
#  mv /var/www/html/php/ /var/www/html/zabbix

Now you should now be able to access the Web frontend trough:   http://localhost/zabbix
Now If it worked you should see the Welcome screen from Zabbix.

Follow the installation wizard and change as per requirement. Most Likely Zabbix won't agree with all of your settings and will tell you to change them to the requiered settings.

#  vi /etc/php.ini

and change following: 

   max_execution_time = 600
   memory_limit = 256M
   post_max_size = 32M
   date.timezone = Europe/Zurich
   mbstring.func_overload = 2

#  service httpd restart

And Finish the installation wizard.

That's it, we're finished .


10 comments:

Avery James said...

This is my first time go to see at here and i am genuinely pleasant to read everything at one place.

historical options prices

Unknown said...

ugg uk
oakley sunglasses canada
juicy couture outlet
air jordan 13
evening dresses
indianapolis colts jerseys
ugg boots
new orleans saints jerseys
nike running shoes
chicago blackhawks jersey
nike air max uk
nike trainers
denver broncos jerseys
true religion jeans
mizuno running
tory burch outlet
ysl outlet
hermes birkin
prada shoes
hermes belt
hermes outlet
michael kors outlet
arizona cardinals jerseys
michael kors uk
oakley sunglasses
moncler coats
los angeles clippers jerseys
mulberry outlet
real madrid jersey
seattle seahawks jerseys
gucci shoes
michael kors uk
bottega veneta outlet
vans shoes
atlanta falcons jersey
zhuweiming0622

Lili Wang said...

20150708wanglili
longchamp handbags
jordan 4
replica watches
abercrombie
abercrombie store
mont blanc
michael kors outlet
juicy couture
christian louboutin
lebron james shoes
timberland boots
celine
jordan 11 low
louis vuitton
toms shoes
sac longchamp
dior handbags
michael kors handbags
abercrombie store
tods shoes
nike air max
oakley sunglasses wholesale
coach factorty outlet
chanel handbags
true religion
jordan concords
football shoes
michael kors outlet
coach factory outlet
ray ban sunglasses
oakley sunglasses outlet
longchamp bags
oakley sunglasses
burberry outlet online
ray ban outlet

ninest123 Ninest said...

ninest123 11.26
michael kors handbags, burberry factory outlet, longchamp bags, replica watches, louboutin uk, michael kors outlet, uggs outlet, prada handbags, louis vuitton outlet online, cheap oakley sunglasses, ralph lauren outlet, louis vuitton outlet, cheap jordans, louboutin shoes, louis vuitton, gucci handbags, ralph lauren polo, oakley sunglasses, oakley sunglasses, oakley sunglasses, longchamp outlet, ray ban sunglasses, longchamp outlet, nike outlet, ray ban sunglasses, christian louboutin, uggs outlet, prada outlet, nike free, michael kors outlet online, nike air max, ray ban sunglasses, uggs on sale, christian louboutin, nike air max, replica watches, michael kors outlet online, burberry outlet, uggs on sale, tiffany jewelry, louis vuitton handbags, oakley sunglasses, tiffany jewelry, uggs on sale, tory burch outlet, michael kors, louis vuitton outlet, michael kors outlet online

ninest123 Ninest said...

longchamp pas cher, timberland pas cher, polo ralph lauren uk, nike trainers uk, true religion outlet, hermes pas cher, nike roshe run pas cher, nike tn pas cher, michael kors, nike air max pas cher, michael kors uk, abercrombie and fitch UK, north face uk, north face pas cher, mulberry uk, vanessa bruno pas cher, michael kors, lunette ray ban pas cher, sac guess pas cher, longchamp soldes, nike air max uk, coach purses, louboutin pas cher, coach outlet store online, abercrombie and fitch, ralph lauren pas cher, true religion outlet, vans pas cher, hollister uk, nike free pas cher, true religion outlet, nike free, nike air max uk, ray ban uk, jordan pas cher, polo lacoste pas cher, nike blazer pas cher, hogan sito ufficiale, true religion jeans, lunette oakley pas cher, lululemon outlet, nike roshe uk, nike air max, new balance, converse, burberry pas cher, coach outlet, michael kors outlet online, nike air force

ninest123 Ninest said...

iphone 6s cases, mac cosmetics, north face outlet, oakley, vans scarpe, nike air max, hermes handbags, softball bats, ipad cases, s6 cases, louboutin, nike roshe run, gucci, vans outlet, abercrombie and fitch, celine handbags, mont blanc, valentino shoes, iphone 5s cases, ray ban, giuseppe zanotti, lululemon outlet, beats by dre, nfl jerseys, mcm handbags, bottega veneta, nike air max, iphone 6 cases, chi flat iron, insanity workout, iphone cases, converse, asics running shoes, instyler ionic styler, reebok outlet, babyliss pro, hollister clothing, north face outlet, polo ralph lauren, soccer shoes, wedding dresses, salvatore ferragamo, iphone 6 plus cases, new balance shoes, herve leger, iphone 6s plus cases, p90x workout, ghd hair, hollister, timberland boots, jimmy choo outlet, soccer jerseys

ninest123 Ninest said...

louis vuitton, pandora jewelry, moncler, pandora uk, canada goose, canada goose pas cher, barbour jackets uk, moncler, canada goose outlet, hollister, louis vuitton, moncler jackets, replica watches, toms shoes, uggs outlet, moncler, canada goose outlet, ugg pas cher, canada goose uk, lancel, ugg uk, juicy couture outlet, bottes ugg pas cher, converse shoes outlet, thomas sabo uk, karen millen uk, wedding dresses uk, sac louis vuitton, pandora charms, supra shoes, pandora jewelry, barbour, moncler pas cher, coach outlet, moncler outlet, marc jacobs, louis vuitton uk, ugg,uggs,uggs canada, swarovski jewelry, canada goose jackets, canada goose, sac louis vuitton, doke & gabbana, moncler, ugg,ugg australia,ugg italia, montre pas cher, canada goose jackets, swarovski uk, juicy couture outlet, links of london uk, moncler uk
ninest123 11.26

chenlina said...

chenlina20151219
louis vuitton outlet
michael kors bag
canada goose outlet
ugg boots
ugg boots outlet
michael kors outlet
ugg boots
canada goose jackets
michaek kors outlet
cheap ugg boots
canada goose outlet
polo ralph lauren
uggs on sale
michael kors outlet online
the north face outlet
louis vuitton outlet
cheap air max
abercrombie and fitch
canada goose outlet
ray ban sunglasses
tory burch outlet
jordan 11
uggs boots for women
oakley sunglasses
coach outlet
louis vuitton handbags
timberland outlet
ray ban sunglasses outlet
ray ban sunglasses outlet
abercrombie kids
canada goose outlet online
coach outlet store online
coach outlet
michael kors outlet
ugg boots
uggs outlet
canada goose jackets
hollister co
abercrombie & fitch
ugg boots
as

艾丰 said...

jianbin0324
nike air max
swarovski outlet
ray-ban sunglasses
michael kors outlet online
jordan shoes
michael kors canada
michael kors handbags
lebron shoes
mbt shoes
air jordan 4
mlb jerseys
links of london
mcm backpack
pandora outlet
louis vuitton handbags
prada handbags
cheap nfl jersey
ralph lauren,polo ralph lauren,ralph lauren outlet,ralph lauren italia,ralph lauren sito ufficiale
abercrombie and fitch
hermes birkin bag
cheap nike shoes
louis vuitton outlet store
michael kors outlet
michael kors handbags
louis vuitton outlet
michael kors factory outlet
hermes belt for sale
true religion jeans
mulberry outlet store
adidas outlet store
michael kors handbags
coach outlet store
air jordan shoes for sale
mac cosmetics
hermes outlet
asics,asics israel,asics shoes,asics running shoes,asics israel,asics gel,asics running,asics gel nimbus,asics gel kayano
nike foamposite
nfl jerseys wholesale
lebron shoes

Xiaozhengm 520 said...

2016-4-7 xiaozhengm
asics shoes
coach outlet
hollister clothing
christian louboutin outlet
true religion jeans
louis vuitton bags
christian louboutin shoes
toms shoes
hollister
ray ban sunglasses
jordan shoes
jordan retro 3
rolex watches
oakley outlet
ralph lauren outlet
gucci bags
celine handbags
michael kors uk
jordan 4 toro
tory burch handbags
louis vuitton handbags
toms shoes
michael kors outlet
nike air max
ray ban
hollister clothing
timberland boots
jordan concords
louis vuitton
cheap oakleys
louis vuitton handbags
coach outlet
true religion
cartier watches
oakley sunglasses
ray ban outlet
coach outlet online
michael kors handbags
ugg boots
coach outlet