System and Network Monitoring With Zabbix



Similar documents
Installing Booked scheduler on CentOS 6.5

Install Cacti Network Monitoring Tool on CentOS 6.4 / RHEL 6.4 / Scientific Linux 6.4

INUVIKA OVD INSTALLING INUVIKA OVD ON RHEL 6

LAMP Quickstart for Red Hat Enterprise Linux 4

Open Source Tools for Monitoring the MPLS nodes

Rancid Server Build and Operation Overview (v0.3) (This is being done from memory so expect some errors)

How to Install SMTPSwith Mailer on Centos Server/VPS

OS Installation: CentOS 5.8

Using Cacti To Graph MySQL s Metrics

Cloud Homework instructions for AWS default instance (Red Hat based)

Expresso Quick Install

Extending Remote Desktop for Large Installations. Distributed Package Installs

Signiant Agent installation

Cloud.com CloudStack Community Edition 2.1 Beta Installation Guide

Parallels Plesk Automation

CloudPortal Business Manager 2.2 POC Cookbook

Cacti The ULTIMATE Management Solution

ZABBIX Manual v1.4. Release 003. Review and Approval. Name Signature Date. For ZABBIX SIA:

PZVM1 Administration Guide. V1.1 February 2014 Alain Ganuchaud. Page 1/27

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

SETTING UP REMOTE ACCESS ON EYEMAX PC BASED DVR.

Installing an open source version of MateCat

Windows Template Creation Guide. How to build your own Windows VM templates for deployment in Cloudturk.

Newton Linux User Group Graphing SNMP with Cacti and RRDtool

Installing Drupal 8 on Windows 7 with XAMPP. I am trying to install Drupal 8 on my Windows machine as a development system.

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Server Installation/Upgrade Guide

NSi Mobile Installation Guide. Version 6.2

How To Monitor Mysql With Zabbix

CPE111 COMPUTER EXPLORATION

Time Machine How-To Guide

OS Installation Guide Red Hat Linux 9.0

INUVIKA OVD INSTALLING INUVIKA OVD ON UBUNTU (TRUSTY TAHR)

Quick Installation Guide. CereusReporting - Express Edition

Dynamic DNS How-To Guide

Tableau Spark SQL Setup Instructions

GeBro-BACKUP. Die Online-Datensicherung. Manual Pro Backup Client on a NAS

Installation Guidelines (MySQL database & Archivists Toolkit client)

owncloud 8 and DigitalOcean Matthew Davidson Bluegrass Linux User Group 03/09/2015

Livezilla How to Install on Shared Hosting By: Jon Manning

CycleServer Grid Engine Support Install Guide. version 1.25

MAMP 3 User Guide! March 2014 (c) appsolute GmbH!

DVS-100 Installation Guide

Tibbr Installation Addendum for Amazon Web Services

Parallels Plesk Automation

PHP+MYSQL, EASYPHP INSTALLATION GUIDE

Amazon Web Services EC2 & S3

CYCLOPE let s talk productivity

SIMIAN systems. Setting up a Sitellite development environment on Mac OS X. Sitellite Content Management System

Local Caching Servers (LCS): User Manual

FOG Guide. IPBRICK International. July 17, 2013

Computer Science and Engineering Linux Cisco VPN Client Installation and Setup Guide

42goISP Documentation

Basic Installation of the Cisco Collection Manager

SysAidTM Freeware Installation Guide

DVS-100 Installation Guide

Installing The SysAidTM Server Locally

CN=Monitor Installation and Configuration v2.0

Moving Drupal to the Cloud: A step-by-step guide and reference document for hosting a Drupal web site on Amazon Web Services

vtiger CRM 4.2 Installation Guide for Linux OS

RecoveryVault Express Client User Manual

How To Install Amyshelf On Windows 2000 Or Later

Installation and Deployment

Installing Platform RTM. Platform RTM Version Release date: October 2011

Setting Up Specify to use a Shared Workstation as a Database Server

ALERT installation setup

Uptime Infrastructure Monitor. Installation Guide

Online Backup Client User Manual

Setup and configuration for Intelicode. SQL Server Express

BF2CC Daemon Linux Installation Guide

Online Backup Linux Client User Manual

ISPConfig Documentation

Online Backup Client User Manual

Redhat 6.2 Installation Howto -Basic Proxy and Transparent

SEAGATE BUSINESS NAS ACCESSING THE SHELL. February 1, 2014 by Jeroen Diel IT Nerdbox

1. Product Information

Parallels Panel. Deployment Guide. Plesk Automation Revision 1.0

Recommended File System Ownership and Privileges

Online Backup Client User Manual Linux

GroundWork Monitor Open Source Installation Guide

EZblue BusinessServer The All - In - One Server For Your Home And Business

SAMBA SERVER (PDC) Samba is comprised of a suite of RPMs that come on the RHEL/Fedora CDs. The files are named:

Tips for getting started! with! Virtual Data Center!

Learning about Informix and the Open Admin Tool (OAT)

Written by: Johan Strand, Reviewed by: Chafic Nassif, Date: Getting an ipath server running on Linux

Cacti complete network graphing solution. Oz Melamed E&M Computing Jun 2009

VoIP monitor sniffer manual

A Reseller s Guide to Using Helm

ULTEO OPEN VIRTUAL DESKTOP UBUNTU (PRECISE PANGOLIN) SUPPORT

What you will need before beginning this guide

User Manual of the Pre-built Ubuntu 9 Virutal Machine

Content Management System

Building a Private Cloud Cloud Infrastructure Using Opensource

HW9 WordPress & Google Analytics

IIS, FTP Server and Windows

Transcription:

System and Network Monitoring With Zabbix Zabbix Features http://www.zabbix.com/features.php Zabbix Requirements http://www.zabbix.com/requirements.php @GARR - alfredo.pagano@garr.it Download Zabbix http://www.zabbix.com/download.php Zabbix Screenshots http://www.zabbix.com/screenshots.php In this howto we are going to install Zabbix software: agent and a server side. Each group will be provided a virtual machine with the following specifications: OS: CentOS release 5.3 (Final) Kernel: 2.6.18-128.el5 #1 SMP x86_64 x86_64 GNU/Linux 1 Gb RAM 10 GB disk space CPU 1 GHZ A basic Zabbix installation requires the following software: ntp, php, php-bcmath, php-gd, php-mysql, httpd, mysql, gcc, mysql-server, mysql-devel, netsnmp, net-snmp-utils, net-snmp-devel, net-snmp-libs, curl-devel mak All the dependencies should have already been satisfied Connect via SSH to: IP: Username: root Password:

1. We need to create a user the server process will run as. This will need to be repeated on any devices running agent. Zabbix server is actually protected from being run under root. # useradd zabbix 2. Download the lastest Zabbix version available and untar it. # cd /home/zabbix # wget http://garr.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.6.5.tar.gz # tar -xzvf zabbix-1.6.5.tar.gz 3. Start MySQL and change the root password. # /etc/init.d/mysqld start Now you need to connect to MySQL using the newly created root password, create a database and assign a new user with privileges to the DB. I used zabbixuser and zabbixpass for the username and password but you may want to change it to your own preference. Don t make it the same as your root or DB login, since it will be stored in a plaintext file. # mysql -u root -p (no password required) mysql> CREATE DATABASE zabbix; mysql> GRANT DROP,INDEX,CREATE,SELECT,INSERT,UPDATE,ALTER,DELETE ON zabbix.* TO zabbixuser@localhost IDENTIFIED BY 'zabbixpass'; mysql> quit; 4. Insert the schema, using zabbixpass when prompted for password. # cd zabbix-1.6.5 # cat create/schema/mysql.sql mysql -u zabbixuser -p zabbix # cat create/data/data.sql mysql -u zabbixuser -p zabbix # cat create/data/images_mysql.sql mysql -u zabbixuser -p zabbix 5. Now configure and compile the source code on your system. #./configure -enable-server -enable-agent -prefix=/usr/local/zabbix -with-mysql -with-net-snmp -with-libcurl # make && make install # make clean 6. Add the Zabbix server and agent ports to your /etc/services file. # echo zabbix_agent 10050/tcp >> /etc/services # echo zabbix_trap 10051/tcp >> /etc/services REMEMBER: IF YOU HAVE IPTABLES TURNED ON YOU WILL NEED TO OPEN PORT 80, 10050, & 10051 7. Copy the sample config files to /etc/zabbix for server and agentd. # mkdir /etc/zabbix # cp misc/conf/zabbix_agentd.conf /etc/zabbix # cp misc/conf/zabbix_server.conf /etc/zabbix 8. Change the DB login info using your favorite editor. # vim /etc/zabbix/zabbix_server.conf

DBUser=zabbixuser BPassword=zabbixpass 9. Add the server IP address and change the hostname. We have agent and server on the same box. # vim /etc/zabbix/zabbix_agentd.conf Server=127.0.0.1 Hostname=EnterAUniqueHostNameForEachAgent 10. Copy and edit the control scripts to start/stop/restart server and agent. # cp misc/init.d/redhat/zabbix_agentd_ctl /etc/init.d/zabbix_agentd # cp misc/init.d/redhat/zabbix_server_ctl /etc/init.d/zabbix_server In /etc/init.d/zabbix_agentd: BASEDIR=/usr/local/zabbix ZABBIX_AGENTD=$BASEDIR/sbin/zabbix_agentd In /etc/init.d/zabbix_server: BASEDIR=/usr/local/zabbix ZABBIX_SUCKERD=$BASEDIR/sbin/zabbix_server 11. We are almost done. Now we need to set up automatic starting and stopping of certain services: # chkconfig level 345 zabbix_server on # chkconfig level 345 zabbix_agentd on # chkconfig level 345 httpd on # chkconfig level 345 mysqld on # /etc/init.d/iptables stop 12. Copy the front end setup files. # cp -r frontends/php /var/www/html/zabbix Edit /etc/php.ini and check the execution time value and timezone. Make sure you substitute with your own timezone. max_execution_time = 300 date.timezone = Europe/Rome 13. Start apache web server and change write permissions on the config file: # /etc/init.d/httpd start # chmod 777 /var/www/html/zabbix/conf 14. Open http://your.server.ip/zabbix in your web browser and follow the setup. When you configure the DB connection use zabbixuser/zabbixpass. Some screenshots:

15. We also need to change the permissions on the apache config file so we don t fudge it in the future. # chmod 755 /var/www/html/zabbix/conf 16. Start agent and server # /etc/init.d/zabbix_agentd start # /etc/init.d/zabbix_server start If everything goes through fine you can log in to the server through http://your.server.ip/zabbix. User Admin for the username and password zabbix To monitor your Zabbix server, you can go to the Configuration Tab, and choose the hosts sub Tab. Select the Zabbix Server host, by putting a checkmark next to it. and choose the Activate Selected button below or just click on Not Monitored. Wait a minute or two, then select the Monitoring tab, and then the latest data sub tab. You should start seeing performance stats appear! That s it, your Zabbix server should now be good to go. Enjoy! You can find a lot more info on this wonderful program on Zabbix Forums and in the ZABBIX Manual.