PrintLogo

Monitoring Systems With Zabbix - Initial Configuration - Part 1




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

Zabbix is an open source (GPL) monitoring system with a database back end. The system can be configured via a web browser. We used CentOS 4 for this install. Do set this up in a lab, first. Read NetAdminTools.com's terms of use. Let's jump in, shall we?

Grab the source from here, extract it, and enter the root of the source tree:

[root@srv-1 src]# ls -l zab*
-rw-r--r--  1 root root 1080323 Mar 28 06:32 zabbix-1.1beta8.tar.gz
[root@srv-1 src]# tar -xzf zab*.gz
[root@srv-1 src]# cd zab*
[root@srv-1 zabbix-1.1beta8]#

Set up a zabbix group and user with a useless shell. We used /sbin/login, but /usr/bin/false would probably work fine as well:

[zabbix-1.1beta8]# /usr/sbin/groupadd zabbix
[zabbix-1.1beta8]# /usr/sbin/useradd -g zabbix -s /sbin/nologin zabbix
[root@srv-1 zabbix-1.1beta8]# 

Create a blank zabbix database:

[root@srv-1 zabbix-1.1beta8]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.12
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database zabbix;
Query OK, 1 row affected (0.04 sec)
mysql> quit
Bye
[root@srv-1 zabbix-1.1beta8]#

Populate the database:

[root@srv-1 zabbix-1.1beta8]# cd create/mysql
[root@srv-1 mysql]# cat schema.sql | mysql -u root -p zabbix
Enter password: 
[root@srv-1 mysql]# cd ../data
[root@srv-1 data]# cat data.sql | mysql -u root -p zabbix
Enter password: 
[root@srv-1 data]# 

Verify the database:

[root@srv-1 data]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5 to server version: 4.1.12
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> connect zabbix
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Connection id:    7
Current database: zabbix
mysql> show tables
-> ;
+------------------+
| Tables_in_zabbix |
+------------------+
| acknowledges     |
| actions          |
| alarms           |
| alerts           |
| audit            |
| autoreg          |
| conditions       |
| config           |
| escalation_log   |
| escalation_rules |
| escalations      |
| functions        |
| graphs           |
| graphs_items     |
| groups           |
| history          |
| history_log      |
| history_str      |
| history_uint     |
| hosts            |
| hosts_groups     |
| hosts_profiles   |
| hosts_templates  |
| housekeeper      |
| images           |
| items            |
| mappings         |
| media            |
| media_type       |
| profiles         |
| rights           |
| screens          |
| screens_items    |
| service_alarms   |
| services         |
| services_links   |
| sessions         |
| stats            |
| sysmaps          |
| sysmaps_elements |
| sysmaps_links    |
| trends           |
| trigger_depends  |
| triggers         |
| users            |
| users_groups     |
| usrgrp           |
| valuemaps        |
+------------------+
48 rows in set (0.00 sec)
mysql> quit
Bye
[root@srv-1 data]# 



Next



This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art526.html

Copyright 1997-2007 NetAdminTools.com. Read our Terms of Use.