Zabbix

Differences between revisions 6 and 7
Revision 6 as of 2007-06-20 14:46:17
Size: 4691
Editor: adsl-072-151-055-210
Comment:
Revision 7 as of 2007-06-20 14:50:10
Size: 4801
Editor: adsl-072-151-055-210
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
1 - Make the zabbix user and group: '''1 - Make the zabbix user and group:'''
Line 20: Line 20:
2 - Download and Untar the sources: '''2 - Download and Untar the sources:'''
Line 25: Line 25:
3 - Create a zabbix database and populate it: '''3 - Create a zabbix database and populate it:'''
Line 32: Line 32:
4 - Configure, compile and install the server: '''4 - Configure, compile and install the server:'''
Line 37: Line 37:
5 - Prepare the rest of the system: '''5 - Prepare the rest of the system:'''
Line 76: Line 76:
6 - Configure web interface '''6 - Configure web interface'''
Line 104: Line 104:
----
Line 107: Line 108:
http://<servername or ip>/zabbix/  . '''''http://<servername or ip>/zabbix/'''''
Line 109: Line 110:
1. Introduction '''1. Introduction'''
Line 113: Line 114:
2. License Agreement '''2. License Agreement'''
Line 117: Line 118:
3. Check of Pre-Requisites '''3. Check of Pre-Requisites'''
Line 121: Line 122:
4. Configure DB Connection '''4. Configure DB Connection'''
Line 126: Line 127:
5. Pre-Installation Summary '''5. Pre-Installation Summary'''
Line 130: Line 131:
6. Install '''6. Install'''
Line 140: Line 141:
7. Finish '''7. Finish'''
Line 144: Line 145:
----
Line 164: Line 166:
www.zabbix.com http://www.zabbix.com

Intended for Zabbix 1.4 on Ubuntu Feisty Fawn 7.04

Install pre-requisites:BRApacheBRMySQL-ServerBRPHP5BRNet-Snmp libraries

sudo aptitude install build-essentials mysql-server php5 php5-gd snmp libsnmp9-dev snmpd

1 - Make the zabbix user and group:

sudo adduser zabbix

  • enter in new password
  • confirm
  • use the remaining defaults.

Add zabbix to the admin group:

sudo adduser zabbix admin

2 - Download and Untar the sources:

3 - Create a zabbix database and populate it:

mysql -u root -pBRcreate database zabbix;BRquit;

mysql -u root -p zabbix < /home/zabbix/zabbix-1.4/create/schema/mysql.sqlBRmysql -u root -p zabbix < /home/zabbix/zabbix-1.4/create/data/data.sql

4 - Configure, compile and install the server:

cd zabbix-1.4/BR./configure --prefix=/usr --with-mysql --with-net-snmp \BR--enable-server --enable-agent &&BRmakeBRsudo make install

5 - Prepare the rest of the system:

sudo nano /etc/services

Add at the end:

zabbix_agent 10050/tcp # Zabbix portsBRzabbix_trap 10051/tcp

Save and exit.

sudo mkdir /etc/zabbixBRsudo chown -R zabbix.zabbix /etc/zabbix/BRcp misc/conf/zabbix_* /etc/zabbix/

Edit /etc/zabbix/zabbix_agentd.conf:

nano /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:

nano /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 passwordBR# Comment this line if no password usedBRBRDBPassword=Secret

Start the server :

zabbix_server

Start the client:

zabbix_agentd &

6 - Configure web interface

mkdir /home/zabbix/public_htmlBRcp -R frontends/php/* /home/zabbix/public_html/

Edit /etc/apache2/sites-enabled/000-default:

sudo nano /etc/apache2/sites-enabled/000-default

Work into file:

Alias /zabbix/ /home/zabbix/public_html/BR<Directory /home/zabbix/public_html>BR  AllowOverride FileInfo AuthConfig Limit IndexesBR   Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExecBR   <Limit GET POST OPTIONS PROPFIND>BR     Order allow,denyBR     Allow from allBR   </Limit>BR   <LimitExcept GET POST OPTIONS PROPFIND>BR     Order deny,allowBR     Deny from allBR   </LimitExcept>BR</Directory>

Save and exit.

Make php.ini adjustments:

sudo nano /etc/php5/apache2/php.ini

Change the following values:

max_execution_time = 300 ; Maximum execution time of each script, in secondsBRdate.timezone = America/Kentucky/Louisville

(use this url to find your correct timezone format: http://us3.php.net/manual/en/timezones.php )

Restart Apache:

sudo /etc/init.d/apache2 restart


Now point your browser to:

1. Introduction

read and click Next

2. License Agreement

Read, check 'I Agree', click Next

3. Check of Pre-Requisites

Fix any problems, click retry. Click Next when all pre-requisites are OK.

4. Configure DB Connection

Enter appropriate settings and click Test Connection. Click Next when OK.

5. Pre-Installation Summary

Verify installation settings, click Next.

6. Install

Click Save Configuration file and save to machine. Copy zabbix.conf.php to /home/zabbix/public_html/conf/zabbix.conf.php

One way to do this from a desktop machine (requires ssh installed): scp zabbix.conf.php zabbix@<serverip>:/home/zabbix/public_html/conf/

Click Retry and click Next when OK.

7. Finish

Click Finish to complete installation.


Your New Zabbix install will now be shown.

Log in with username: Admin No Password

First go to the tab Configuration and then Hosts.

Now create a host-group, see that you can give it some templates, e.g: Application.MySQL, Host.SNMP, Host.Standalone, Host.Unix.

Then some hosts:

Select your host-group and use Link with Template Host.Unix

Now a lot of triggers are imported and the game begins.

Go to the monitoring tab and watch the latest values roll in.

For specifics on configuration, please refer to the Zabbix user manual.

http://www.zabbix.com

Zabbix (last edited 2012-04-19 11:11:36 by magicfab)