monitoring your applications,network and servers
What is Zabbix ?
ZABBIX is a 24×7 monitoring solution without high cost.
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 excellent reporting
and data visualisation features based on the stored data. This
makes ZABBIX ideal for capacity planning.
ZABBIX supports both polling and trapping. All ZABBIX reports
and statistics, as well as configuration parameters are accessed
through a web-based front end. A web-based front end ensures
that the status of your network and the health of your servers
can be assessed from any location. Properly configured, ZABBIX
can play an important role in monitoring IT infrastructure. This
is equally true for small organisations with a few servers and
for large companies with a multitude of servers.
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
ttf2pt1 zabbix-doc gnokii
The following NEW packages will be installed:
php-fpdf zabbix-agent zabbix-frontend-php zabbix-server
0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded.
Need to get 844kB of archives.
After unpacking 4407kB of additional disk space will be used.
Do you want to continue? [Y/n]y
This will start the installation and you need to answer the
questions asked for you can see these questions in the following
First it will ask you to enter your server ipaddress .
Configuring Zabbix Agent
Zabbix sucker server port
Leave the default value and press ok
Configuring Zabbix-Frontend PHP
Select the sql server type as mysql and press ok
Enter the mysql server ipaddress and press ok
Enter the mysql User as root and press ok
Enter the mysql root password and press ok
You need to read the below message very carefully to create
zabbix database at the end of installation and press ok
Now itwill give First Login to your zabbix frontend is not_ok
this you can leave as it is because we need to create databse
which we will do after end of this installation.
Enter Listening port for sender requests to server 10051 and
Enter Email of zabbix admin this is your choice i am sending to
Select Watch zabbix server processess or not as yes and press ok
select check all zabbix tables before starting zabbix server
process as yes and press ok
Now you should see the following error message
You must create database zabbix, user zabbix and give correct
rights.You can see error connecting to db ahead. Please correct
db rights.After you will be ready, please use dpkg-reconfigure
Please see /usr/share/doc/zabbix-server/README.Debian
Starting Zabbix server checktables ERROR 1049 (42000): Unknown
zabbix_server ERROR 1049 (42000): Unknown database 'zabbix' Err:
You did not setup your mysql server correctly!
Please run zabbix_installdb manualy!
- This packages tries to do all of work but you must do little
of work by your hands. Especially, database config, rights,
users and creating database zabbix is ON YOU! But if you will
read install instructions you
can setup it without big problems.
- Use zabbix_installdb script to fill your database with
required data to run zabbix-server. Second way is to manualy
create database zabbix, give rights to user zabbix and fill with
sql statements found in
- If there is some error, feel free to use dpkg-reconfigure
For creating database you need to run the following command
Zabbix db installation script. You will need some basic
knowledge to pass. Please note that better way is probably to
install zabbix-doc package and read manual. This is very LIGHT
version of script and tries to be
simple, but it is not always what you want.
In other words, if you did not read manual yet, you will never
login to your zabbix server to administer it
If you have default debian mysql-server installation, no further
information's is needed.
Else we will need:
- mysql server host
- mysql server admin user
- mysql server admin pass
We will do:
- create zabbix db
- fill db with right schema and basic data
!! DO NOT RUN THIS SCRIPT IF YOU ALREADY HAVE DATA IN YOUR
ZABBIX DB !!
If you want to end now, press ctrl+c
Your DB was created successfully. Please note that it is not good
idea to use mysql admin user as zabbix user
even if it is working. You should read mysql documentation,
create user zabbix, give him rights for database zabbix and run
dpkg-reconfigure zabbix-server to make it working... In other
words, you have been warned.
Installing Zabbix Agent in Debian
Zabbix Agent need to be installed in all the systems you want to
Add the source below to your /etc/apt/sources.list.
deb http://mirror.opf.slu.cz/zabbix unstable contrib
Next, update and install the packages
#apt-get install zabbix-agent
This will install the zabbix agent now you need to configure
your agent to communicate with server for this you need to edit
the file located at /etc/zabbix/zabbix_agentd.conf
Make sure that the Server parameter points to your zabbix server