View Full Version : Centos 4.4 installation help
I typed ./configure --prefix=/usr --with-mysql --with-net-snmp \
--enable-server --enable-agent for compiling, during compiling has
error:
configure: error: Invalid NET-SNMP directory - unable to find net-snmp-includes.h
I have installed net-snmp
rpm -qa | grep snmp
net-snmp-libs-5.1.2-11.EL4.7
net-snmp-5.1.2-11.EL4.7
How can fix this problem ?
Thanks !!
You must install net-snmp-devel package which contains the header files. You could also rebuild a rpm package originaly for Fedora which is already in Fedora Extras repository.
I have another problem:
[root@chris bin]# service zabbix_suckerd start
Starting zabbix_suckerd: -bash: /usr/local/zabbix/bin/zabbix_suckerd: No such file or directory
[FAILED]
[root@chris bin]# service zabbix_trapperd start
Starting zabbix_trapperd: -bash: /usr/local/zabbix/bin/zabbix_trapperd: No such file or directory
[FAILED]
I copies the bin directory in tarball to /usr/local/zabbix, but still have this problem.
Thanks !!
pdwalker
09-12-2006, 20:52
I copies the bin directory in tarball to /usr/local/zabbix, but still have this problem.
Are you installing from sources?
If so, the correct procedure is
1/ run the 'configure' command with the options you want
2/ run 'make' to compile the program
3/ run 'make install' to install the program into the correct directories.
Yes, installing from sources.
But I don't know what is zabbix_agent ?
I also following URLs for installation,
http://www.zabbix.com/manual/v1.1/install_source_server.php
http://knowledge.twocell.com/index.php?title=Installing_Zabbix_on_CentOS/RHEL_w/MYSQL
so I don't which one is correctly, I just type
./configure --enable-server --with-mysql --with-net-snmp --prefix=/usr/local/zabbix
and then I don't know how to configure on next step :(
pdwalker
10-12-2006, 09:46
Yes, installing from sources.
But I don't know what is zabbix_agent ?
I also following URLs for installation,
http://www.zabbix.com/manual/v1.1/install_source_server.php
http://knowledge.twocell.com/index.php?title=Installing_Zabbix_on_CentOS/RHEL_w/MYSQL
so I don't which one is correctly, I just type
./configure --enable-server --with-mysql --with-net-snmp --prefix=/usr/local/zabbix
and then I don't know how to configure on next step :(
1/ run the 'configure' command with the options you want
2/ run 'make' to compile the program
3/ run 'make install' to install the program into the correct directories.
So, you've done step 1, now do step 2 and step 3.
That'd be
% make
% make install
- Paul
To pdwalker,
First, Thanks for your help,
The step 2 and 3 already done, so I installed the zabbix to
/usr/local/zabbix, I saw the /usr/local/zabbix/bin/zabbix_server, so can
I start zabbix from this one ?
I cannot see the zabbix_agent, I need start the zabbix_agent too?
how can show the web-interface ?
Thanks !!!
pdwalker
11-12-2006, 02:21
Sorry, I just checked to see how I did configure
./configure --prefix=/usr/local/site/zabbix --enable-server --enable-agent --with-mysql=/usr/local/site/mysql
So, you need to add the --enable-agent parameter to step 1 and redoing the steps 2 and 3.
You should find the agent then.
- Paul
Sorry, can you teach me what is the agent for ? and now I installed
the agent again with ./configure, what should I do on next step ?
Thanks !!!
pdwalker
11-12-2006, 06:44
It really sounds like you need to read the documentation.
The agent is the program that you run on remote machines in order to monitor them.
Depending on what you want to monitor, you may not even need it. If you want to monitor your own custom parameters, you will definitely need it.
- Paul
It there can use web-interface to monitor server ? becuase my server
in datacentre and just want only to monitor my server.
If yes, where is the web file and how to setup on apache ?
Thanks
pdwalker
11-12-2006, 20:52
To setup apache, please read the apache documentation and follow the instructions. You can get the software and documentation from http://httpd.apache.org/
You will need to install php to work with apache. You can get the software and installation instructions from http://www.php.net/
Once you have that installed and working, you will need to install the zabbix web interface. See the zabbix documentation for details: http://www.zabbix.com/manual/v1.1/install_source_web.php
Once you have this installed and working, you can enable some of the simple checks to monitor your server in the data center, or more complex checks if you use the zabbix agent on your server in the data center. See the zabbix documentation for details: http://www.zabbix.com/manual/v1.1/
- Paul
I have some questions during installing, sorry that have many questions :(
1. The following is include/db.inc.php but I don't know the syntax is wong or not :
<?php
function DBconnect(&$error)
{
$result = true;
global $DB, $DB_TYPE="MYSQL", $DB_SERVER="localhost", $DB_DATABASE="zabbix", $DB_USER="root", $DB_PASSWORD=1234";
2. When I installing web-interface its said PHP max execution time: 30 sec Fail so I cannaot goto next step.
3. When I start the ./zabbix_server have following error:
[root@chris bin]# ./zabbix_server
./zabbix_server [24812]: Wrong value of [StartPollers] in line 20.
./zabbix_server [24812]: ERROR: DBName not in config file
jeff.showers
12-12-2006, 16:09
Zabbix_server is complaining about your configuration options in the zabbix_server.conf file. Can you copy and paste that up for us to help you with?
Hi jeff.showers, thank for your reply,
I didn't edit the zabbix_server.conf, can you tell me which one required to
edit in zabbix_server ?
# 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
# This defines unique NodeID in distributed setup,
# Default value 0 (standalone server)
# This parameter must be between 0 and 999
#NodeID=0
# Number of pre-forked instances of pollers
# Default value is 6
# This parameter must be between 5 and 255
StartPollers=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, alert, 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 unreachability treat a host as unavailable
#UnreachablePeriod=45
# How ofter check host for availability during the unreachability period
#UnavailableDelay=15
# How ofter check host for availability during the unavailability period
#UnavailableDelay=60
# 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
Perhaps you have DOS-style end of lines in the file?
This is default setting .
pdwalker
18-12-2006, 07:51
Did you set up the zabbix database under mysql? If so, can you log into it using the username and password you have in the zabbix_server.conf file?
Hi,
I've edited zabbix_server.conf for mysql config, the website is blank when
I open it:
# 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
# This defines unique NodeID in distributed setup,
# Default value 0 (standalone server)
# This parameter must be between 0 and 999
#NodeID=0
# Number of pre-forked instances of pollers
# Default value is 6
# This parameter must be between 5 and 255
StartPollers=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, alert, 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
pdwalker
20-12-2006, 03:30
Can you log in to mysql using the mysql client using the zabbix username and password to connect to the zabbix database you should have created?
If, then put that information into
1/ the zabbix_server.conf
2/ the include/db.inc.php
- Paul
I don't use mysql client to connect database, the following infomation hope
can help me.
Thanks
###the include/db.inc.php###
?>
<?php
function DBconnect(&$error)
{
$result = true;
global $DB, $DB_TYPE="MYSQL", $DB_SERVER="localhost", $DB_DATABASE="zabbix", $DB_USER="root", $DB_PASSWORD=1234";
###the zabbix_server.conf###
mysql> show tables;
+--------------------+
| Tables_in_zabbix |
+--------------------+
| acknowledges |
| actions |
| alerts |
| applications |
| auditlog |
| autoreg |
| conditions |
| config |
| events |
| functions |
| graphs |
| graphs_items |
| groups |
| help_items |
| history |
| history_log |
| history_str |
| history_str_sync |
| history_sync |
| history_text |
| history_uint |
| history_uint_sync |
| hosts |
| hosts_groups |
| hosts_profiles |
| hosts_templates |
| housekeeper |
| images |
| items |
| items_applications |
| mappings |
| media |
| media_type |
| node_cksum |
| node_configlog |
| nodes |
| profiles |
| rights |
| screens |
| screens_items |
| service_alarms |
| services |
| services_links |
| services_times |
| sessions |
| sysmaps |
| sysmaps_elements |
| sysmaps_links |
| trends |
| trigger_depends |
| triggers |
| users |
| users_groups |
| usrgrp |
| valuemaps |
+--------------------+
55 rows in set (0.00 sec)
mysql>
pdwalker
20-12-2006, 08:27
If you can connect to the mysql zabbix database with the username, password and hostname, then make sure that both your zabbix_server.conf and your db.inc.php have those details properly entered in. Once you have done so, it should work assuming everything else is set up properly.
- Paul
I should edit which line in db.inc.php ? there have many line so I very perplex.
Thanks
pdwalker
22-12-2006, 07:45
Look for the line:
// DATABASE CONFIGURATION
Do not modify anything after this line:
// END OF DATABASE CONFIGURATION
- Paul
Do not have those two line in db.inc.php ... my zabbix is 1.3 version
pdwalker
22-12-2006, 18:44
Given your current state of knowledge, I'd strongly recommend you switch to 1.1.4 instead.
1.3 is a beta, or testing version. It'd be wiser to stick with a more stable and well known version unless you are doing it to learn something.
- Paul
Ok, I using 1.1.4 instead and now can goto login screen, I just want monitor
one server network traffic that is installed zabbix, what step I need to do ?
please give me some simply example.
Thanks
pdwalker
29-12-2006, 07:36
you need to read the zabbix documentation and follow the instructions from there.
http://www.zabbix.com/manual/v1.1/