NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Monitoring Systems With Zabbix - Initial Configuration - Part 2
Topic: Monitoring   Posted:2006-04-18
Printer Friendly: Print

spacerspacer
Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6

We are going to configure this as a server, without SNMP support, and with MySQL as a database:

[root@srv-1 data]# cd ..
[root@srv-1 create]# cd ..
[root@srv-1 zabbix-1.1beta8]# ./configure --enable-server --with-mysql
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: Configuring  
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
.
.
.
Configuration:
Detected OS:      linux-gnu
Install path:     /usr/local
Compiler:         gcc
Compiler flags:   -g -O2
Linker flags:     -lresolv -lnsl 
Compilation arch: linux
Enable server:    yes
With database:    MySQL
Enable agent:     no
***********************************************************
*            Now run 'make'                               *
*                                                         *
*            Thank you for using ZABBIX!                  *
*              <http://www.zabbix.com>                    *
***********************************************************
[root@srv-1 zabbix-1.1beta8]#

OK. Let's compile:

[root@srv-1 zabbix-1.1beta8]# make
Making all in src
make[1]: Entering directory `/usr/local/src/zabbix-1.1beta8/src'
Making all in libs
make[2]: Entering directory `/usr/local/src/zabbix-1.1beta8/src/libs'
Making all in zbxcommon
.
.
.
make[2]: Leaving directory `/usr/local/src/zabbix-1.1beta8/src'
make[1]: Leaving directory `/usr/local/src/zabbix-1.1beta8/src'
make[1]: Entering directory `/usr/local/src/zabbix-1.1beta8'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/usr/local/src/zabbix-1.1beta8'
[root@srv-1 zabbix-1.1beta8]#

Good. Let's install into /usr/local/bin:

[root@srv-1 zabbix-1.1beta8]# make install
Making install in src
make[1]: Entering directory `/usr/local/src/zabbix-1.1beta8/src'
Making install in libs
make[2]: Entering directory `/usr/local/src/zabbix-1.1beta8/src/libs'
Making install in zbxcommon
.
.
.
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/src/zabbix-1.1beta8'
make[1]: Leaving directory `/usr/local/src/zabbix-1.1beta8'
[root@srv-1 zabbix-1.1beta8]#

Create /etc/zabbix, and copy the server configuration template:

[root@srv-1 zabbix-1.1beta8]# mkdir /etc/zabbix
[root@srv-1 zabbix-1.1beta8]# cp misc/conf/zabbix_server.conf /etc/zabbix/
[root@srv-1 zabbix-1.1beta8]# cat /etc/zabbix/zabbix_server.conf
# This is config file for ZABBIX server process
# To get more information about ZABBIX, 
# go http://www.zabbix.com
############ GENERAL PARAMETERS #################
# This defines which server this is.
# Default value 1
# This parameter must be between 1 and 255
Server=1
# Number of pre-forked instances of pollers
# Default value is 6
# This parameter must be between 5 and 255
StartSuckers=6
# Number of pre-forked instances of trappers
# Default value is 5
# This parameter must be between 2 and 255
StartTrappers=5
# Listen port for trapping. Default port number is 10051. This parameter 
# must be between 1024 and 32767
ListenPort=10051
# How often ZABBIX will perform housekeeping procedure
# (in hours)
# Default value is 1 hour
# Housekeeping is removing unnecessary information from
# tables history, laert, and alarms
# This parameter must be between 1 and 24
HousekeepingFrequency=1
# How often ZABBIX will try to send unsent alerts
# (in seconds)
# Default value is 30 seconds
SenderFrequency=30
# Uncomment this line to disable housekeeping procedure
#DisableHousekeeping=1
# Specifies debug level
# 0 - debug is not created
# 1 - critical information
# 2 - error information
# 3 - warnings (default)
# 4 - for debugging (produces lots of information)
DebugLevel=3
# Specifies how long we wait for agent (in sec)
# Must be between 1 and 30 
Timeout=5
# After how many seconds of unavailability treat a host as unavailable
UnavailablePeriod=20
# Name of PID file
PidFile=/var/tmp/zabbix_server.pid
# Name of log file
# If not set, syslog is used
LogFile=/tmp/zabbix_server.log
#Location for custom alert scripts
AlertScriptsPath=/home/zabbix/bin/
#Location of 'fping. Default is /usr/sbin/fping
#FpingLocation=/usr/sbin/fping
# Frequency of ICMP pings. Defauls is 30 second.
#PingerFrequency=30
# Database host name
# Default is localhost
#DBHost=localhost
# Database name
DBName=zabbix
# Database user
DBUser=root
# Database password
# Comment this line if no password used
#DBPassword=<password>
# Connect to MySQL using Unix socket?
#DBSocket=/tmp/mysql.sock
# Experimental options. Use with care !
# Get rid of sockets in TIME_WAIT state
# This will set socket option SO_LINGER
# NoTimeWait=1
[root@srv-1 zabbix-1.1beta8]# 

The only thing we changed was DBPassword.

Next




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS