NetAdminTools.com
 
SignalQ Sites:
L1G3R Information Systems - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
Solar Energy - Energy Efficiency - Solar Panels
Home Energy Savings
Categories:
GNU/Linux | Homebrew designs | Perl | Ruby | 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 | ERP | REALbasic

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


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Ruby
·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
·ERP
·REALbasic
·All Categories


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

spacerspacer
<<  <   >  >>

Subject

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


People:
Places:
Things:
Times:





Please read our Terms of Use and our Privacy Policy
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-2011 NetAdminTools.com