Академический Документы
Профессиональный Документы
Культура Документы
Navigation
Howtos
Linux
CentOS
Debian
Fedora
Kernel
Mandriva
PCLinuxOS
SuSE
Ubuntu
Web Server
Apache
Cherokee
Lighttpd
nginx
Backup
Control Panels
ISPConfig
DNS
BIND
MyDNS
PowerDNS
djbdns
Desktop
Email
Anti-Spam/Virus
Postfix
Procmail
Sendmail
FTP
High-Availability
Monitoring
MySQL
Programming
C/C++
PHP
Samba
Security
Anti-Spam/Virus
Storage
Virtualization
KVM
OpenVZ
VMware
howtoforge.com/zabbix_network_monit… 1/12
1/25/2011 Network Monitoring with Zabbix | Howt…
VirtualBox
Xen
Other
FreeBSD
Commercial
Mini-Howtos
Forums
Contribute
Subscription
Login
Site Map/RSS Feeds
User login
Username:
Password:
Remember Me?
Log in
Create a new account
Request new password
Who's online
There are currently 15 users and 2928 guests online.
HowtoForge Forums
Problem creating
MySQL dbs in
Multi-Server ...
PureFTP TLS
problem - sucked
for 2 days.
Different
DocumentRoot, need
help to tweak ...
View /Edit a file
on the FTP!
spamassassin
unable to
initialize
database
correct way of
blocking an IP
using Bastille ...
How To Build Red
Hat Enterprise IPA
RPMs For ...
Connection dropped
by IMAP server
mail server change
and emails on
server problem.
apache.conf
missing
howtoforge.com/zabbix_network_monit… 2/12
1/25/2011 Network Monitoring with Zabbix | Howt…
News
Open Source Movie Recommendation API from Filmaster Goes Public
Appropriation – and the kingdom did not fall
Don't Take Digital Innovation for Granted
The Document Foundation launches LibreOffice 3.3
The Document Foundation launches LibreOffice 3.3
VLC 1.1.6 is released! PPA for ubuntu 10.10 Maverick Meerkat and LinuxMint
2011: The Year of the Linux Tablet
2011: The Year of the Linux Tablet
2011: The Year of the Linux Tablet
Debian frees up the kernel again
more
Recent comments
Re: Re: Re: Re: Re:: more details
8 hours 47 min ago
updated myPhpAdmin
10 hours 4 min ago
nice tut!
12 hours 58 min ago
Great article
19 hours 31 min ago
This article is
19 hours 47 min ago
About "sudo cd"
20 hours 52 min ago
Excellent! It's like you
23 hours 19 min ago
Should just configure ld.so to load the libraries
1 day 1 hour ago
Mandriva's NFS
1 day 3 hours ago
Re: Tutorial for Native ZFS with POSIX layer
1 day 4 hours ago
Newsletter
Subscribe to
HowtoForge
Newsletter
and stay informed
about our latest
HOWTOs and
projects.
enter email address
Submit
howtoforge.com/zabbix_network_monit… 3/12
1/25/2011 Network Monitoring with Zabbix | Howt…
Syndicate
You are here: Home » Howtos » Monitoring » Network Monitoring With Zabbix
5
tweets Network Monitoring With Zabbix
retw eet Zabbix has the capability to monitor just a about
any event on your network from network traffic
to how many papers are left in your printer. It produces
really cool grahps.
The Server, here comes all the info together and is processed in a database, note that the server can be
howtoforge.com/zabbix_network_monit… 4/12
1/25/2011 Network Monitoring with Zabbix | Howt…
monitored to so it runs an agent too.
groupadd zabbix
useradd -c 'Zabbix' -d /home/zabbix -g zabbix -s /bin/bash zabbix
mkdir /home/zabbix
chown -R zabbix.zabbix /home/zabbix
cd /home/zabbix
tar zxvpf zabbix-1.1beta8.tar.gz
mv zabbix-1.1beta7 zabbix
cd zabbix
chown -R zabbix.zabbix .
su - zabbix
mysql -p -u root
create database zabbix;
quit;
cd create/mysql
mysql -u root -p zabbix < schema.sql
cd ../data
mysql -u root -p zabbix < data.sql
cd ../../
vi /etc/services
Add:
zabbix_agent 10050/tcp # Zabbix ports
zabbix_trap 10051/tcp
mkdir /etc/zabbix
chown -R zabbix.zabbix /etc/zabbix/
cp misc/conf/zabbix_* /etc/zabbix/
howtoforge.com/zabbix_network_monit… 5/12
1/25/2011 Network Monitoring with Zabbix | Howt…
Edit /etc/zabbix/zabbix_agentd.conf:
vi /etc/zabbix/zabbix_agentd.conf
Make sure that the Server parameter points to the server address, for the agent that runs on the server
it is like this:
Server=127.0.0.1
Edit /etc/zabbix/zabbix_server.conf:
vi /etc/zabbix/zabbix_server.conf
For small sites this default file will do, however if you are into tweaking your config for your 10+ hosts
site, this is the place.
Change this:
# Database password
# Comment this line if no password used
DBPassword=Secret
su - zabbix
zabbix_server
exit
howtoforge.com/zabbix_network_monit… 6/12
1/25/2011 Network Monitoring with Zabbix | Howt…
su - zabbix
zabbix_agentd
exit
Edit frontends/php/include/db.inc.php:
$DB_TYPE ="MYSQL";
$DB_SERVER ="localhost";
$DB_DATABASE ="zabbix";
$DB_USER ="root";
$DB_PWD ="secret";
mkdir /home/zabbix/public_html
cp -R frontends/php/* /home/zabbix/public_html/
cd ../public_html && chown -R zabbix.zabbix .
Edit /etc/apache/httpd.conf:
vi /etc/apache/httpd.conf
howtoforge.com/zabbix_network_monit… 7/12
1/25/2011 Network Monitoring with Zabbix | Howt…
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
/etc/init.d/apache restart
Setup of an Agent
http://prdownloads.sourceforge.net/zabbix/zabbix-1.1beta8.tar.gz?download
groupadd zabbix
useradd -c 'Zabbix' -d /home/zabbix -g zabbix -s /bin/bash zabbix
mkdir /home/zabbix
chown -R zabbix.zabbix /home/zabbix
cd /home/zabbix
tar zxvpf zabbix-1.1beta8.tar.gz
mv zabbix-1.1beta8 zabbix
cd zabbix
chown -R zabbix.zabbix .
su - zabbix
mkdir /etc/zabbix
cp misc/conf/zabbix_agentd.conf /etc/zabbix/
Edit /etc/zabbix/zabbix_agentd.conf:
vi /etc/zabbix/zabbix_agentd.conf
Make sure that the Server parameter points to the server address:
howtoforge.com/zabbix_network_monit… 8/12
1/25/2011 Network Monitoring with Zabbix | Howt…
Server=xxx.xxx.xxx.xxx
Edit /etc/services:
vi /etc/services
Add:
su - zabbix
zabbix_agentd
exit
What's next ?
http://www.example.com/~zabbix
howtoforge.com/zabbix_network_monit… 9/12
1/25/2011 Network Monitoring with Zabbix | Howt…
Now create a host-group, see that you can give it some templates, e.g: Application.MySQL, Host.SNMP,
Host.Standalone, Host.Unix.
Go to the monitoring tab and watch the latest values roll in.
http://www.zabbix.com/documentation.php
http://sourceforge.net/projects/zabbix
http://www.google.com/search?q=zabbix
Changelog
Related Tutorials
Server Monitoring With munin And monit
Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Despite being copied far and wide, this "how to" is not terribly useful. C ompiling and installing Zabbix is easy. You
just have to install some libraries (ikseml, net-snmp), and some PHP modules (php5-bcmath, php5-gd, php5-devel...)
to make the "WEB" interface work.
Almost all the difficulty in Zabbix is configuration. There are tons of permission problems, and a bewildering maze of
"screens" in the "WEB" interface. I guess if you want to use Zabbix, you either have to get really lucky, be a really
good guesser, or wait for someone to write a book that actually describes how to use it.
I wonder whether the folks who say "you just throw it on the server" have actually tried using it? Did they run it as
root or as some unprivileged user?
"If you don't feel like going through this kind of config (and the typical maintenance) that surrounds these kind of
howtoforge.com/zabbix_network_monit… 10/12
1/25/2011 Network Monitoring with Zabbix | Howt…
(great) OpenSource products, try out a service from TruePath Technologies (http://truepathtechnologies.com/)! They
use opensource software like Zabbix. Nice part is that they setup, maintain it and you get to use it (the fun part!)"
What are you talking about? - The fun part IS the configuration!
export LDFLAGS=-L/usr/lib64/mysql
before run configure and make. That will fix the following error during compiling:
/usr/bin/ld: cannot find -lmysqlclient
HS
If you have the SELinux portion of Fedora on your system, you will need to put the PHP frontend somewhere other
than the Zabbix user's home directory. For example, I have it in /usr/share/zabbix. Otherwise Apache will not be
able to access it.
reply | view as pdf
If you don't feel like going through this kind of config (and the typical maintenance) that surrounds these kind of
(great) OpenSource products, try out a service from TruePath Technologies (http://truepathtechnologies.com/)! They
use opensource software like Zabbix. Nice part is that they setup, maintain it and you get to use it (the fun part!)
Big Brother
Submitted by Anonymous (not registered) on Wed, 2006-04-12 17:10.
I have always used big brother. I tried zabbix but ended up going back to big brother. Just my 2 cents.
Steve,
http://tail-f.net/
howtoforge.com/zabbix_network_monit… 11/12
1/25/2011 Network Monitoring with Zabbix | Howt…
If you are running an RPM based system you can also use YUM to get the needed packages:
howtoforge.com/zabbix_network_monit… 12/12