Zabbix configuration issue

cidds Posted messages 14 Status Member -  
cidds Posted messages 14 Status Member -
Hello,
I'm trying my best to install and configure Zabbix 1.4.2. My platform is Ubuntu 8.04 LTS Hardy Heron on a virtual machine.

I've been helped by several tutorials online but have not succeeded so far, and I'm having a lot of trouble with the official documentation in English, which is why I'm turning to you for help. I've made documentation on all the steps I take during the installation. I've already managed to complete the installation once, but I'm unable to do it again. I think it's a permissions issue since Ubuntu uses the sudo command. Here is my step-by-step approach:

Zabbix Server Installation

- Prerequisites: Updated OS, Internet connection, administrative rights

I- Install a LAMP server:

#sudo apt-get install apache2 apache2-doc mysql-server php5 libapache2-mod-php5 php5-mysql phpmyadmin

The installation starts, the configuration tool opens, and you need to enter the password for the MySQL superuser, which is 'root'. Set the password to: admin; then choose the web server

apache2

(Since Phpmyadmin relies on MySQL, it is advisable to install it last after choosing a password for the MySQL root account to ensure the LAMP server works properly.)

Problems encountered at this level and resolution:

- When the Apache2 server restarts, if the error: "apache2:

Could not reliably determine the server's fully qualified

domain name, using 127.0.0.1 for ServerName" appears, then edit the file:
#sudo nano /etc/apache2/apache2.conf
and add ServerName 127.0.0.1

- In the HARDY version used of Ubuntu, the page

http://localhost/phpmyadmin does not work; to resolve this issue, type the command:
#sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin

- Some PHP options are not suited to our needs; we modify them:
#sudo nano /etc/php5/apache2/php.ini
Modify the lines and remember to remove the semicolon in front to make them effective:
max_execution_time=300
date.timezone= Europe/Paris

Restart Apache:
#sudo /etc/init.d/apache2 restart

- II Configuration

- Create the group and user zabbix and validate permissions on the /etc/zabbix hierarchy:

#sudo groupadd zabbix
#sudo useradd zabbix -g zabbix

- Configure MySQL

#sudo mysql -u root -p
create database zabbix;
quit;

- Install Zabbix packages

#sudo apt-get install zabbix-server-mysql

The package configuration tool opens for the configuration of the package; confirm the database configuration with dbconfig-common, then enter the password of the owner account that will serve to create the MySQL database

and the users, password: admin, then choose the connection password for zabbix-server-mysql on the database server, password: admin

#sudo apt-get install zabbix-frontend-php

choose MySQL as the type of database used for PHP, then password: admin

#sudo apt-get install zabbix-agent

This command serves to make the zabbix user the owner

and thus have rights on zabbix:

#sudo chown -R zabbix.zabbix /etc/zabbix

This creates the SQL schemas for Zabbix

#sudo cat /usr/share/zabbix/create/mysql.sql | mysql zabbix -u root -p
(An error appears: Error 1050 (42S01) at line 1: Table ‘nodes’ already exists)
#sudo cat /usr/share/zabbix/create/data.sql | mysql zabbix -u root -p
(Another error: Error 1136 (21S01) at line 24: Column doesn’t match value count at row 1)

- Add Zabbix services

#sudo nano /etc/services

add at the end of the pages:
zabbix_agent 10050 /tcp # Zabbix ports
zabbix_trap 10051 /tcp

- Configure Zabbix

verify certain config files:

#sudo nano /etc/zabbix/zabbix_agentd.conf

(Remove the # in front of the lines #ServerPort=10051; #ListenPort=10050; #ListenIp:127.0.0.1)

check if the Server is correctly set to 127.0.0.1

#sudo nano /etc/zabbix/zabbix_server.conf

(Remove the # in front of the lines #ListenPort=10051; (not done = #ListenIp:127.0.0.1)

choose DBPassword=password (already entered, so nothing touched here)

permissions need to be modified on a PHP file for the database so that there are no issues
#sudo chmod -r /etc/zabbix/dbconfig.php

Then start the server and the agent:

#sudo zabbix_server
#sudo zabbix_agentd

Open the page http://localhost/zabbix to access the Zabbix 1.4.2 interface, a 7-step procedure summarizes the configuration

before accessing the interface itself; at step 6 an error is indicated in the config file /usr/share/zabbix/conf/zabbix.conf.php, the file is proposed to be well configured, just replace the existing one with it using the following command:
#sudo cp /home/ina/Bureau/zabbix.conf.php /usr/share/zabbix/conf/zabbix.conf.php .

Then do retry, the

file is OK we can proceed to the next step
(here errors appear; here is the screen)

https://imageshack.com/

If you have already worked with Zabbix, I am interested in any advice or anything else, here is my email: warrax19 at msn dot com

Thank you in advance for your help.

Cidds.
Configuration: Windows XP Safari 525.19

2 answers

cidds Posted messages 14 Status Member
 
up! Please, a little help! : /
0
cidds Posted messages 14 Status Member
 
Installation issue resolved

grants read access to the file /etc/zabbix/dbconfig.php for the web server:
#sudo chmod +r /etc/zabbix/dbconfig.php
this eliminated the nasty red lines on the last page of the configuration screen, now I'm looking for how to make the communication work between the Windows client and server, it has entered but is not recognized as unknown and I don't quite understand how to send the data to the server.

Cidds
0