Network Monitoring & Management Tutorial

Slides:



Advertisements
Similar presentations
NAGIOS AND CACTI NETWORK MANAGEMENT AND MONITORING SYSTEMS.
Advertisements

Network Performance Measurement
Multi Router Traffic Grapher (MRTG) นายดรัสวิน วงศ์ปรเมษฐ์ สาขาวิชาเทคโนโลยีสารสนเทศ คณะวิทยาศาสตร์ มรภ. บร.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Back to the Future Performance Management in an Open Source World.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
2008 Mérida, Venezuela Papeete, Tahiti Network and Server Statistics using Cacti PacNOG5 17 June 2009 Hervey Allen.
Monitoring System Monitors Basics Monitor Types Alarms Actions RRD Charts Reports.
Traffic Monitoring and Flow Analysis For IP Networks.
Simple Comparison By Akhyari Nasir. Intro  Network monitoring and measurement have become more and more important in a modern complicated network. 
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
Bangkok, Thailand Smokeping & Cacti intERLab at AIT Workshop March – Bangkok, Thailand Hervey Allen.
Leveraging and Understanding Performance Data and Graphs Troy Lea
New SA Training Topic 9: Logging, Monitoring, and Performance  Logging  Windows – “Auditing”  Linux – syslog  Monitoring  MRTG  Big Brother  Performance.
Measuring Delay with AfNOG Network Management Tutorial.
MCTS Guide to Microsoft Windows 7
NMS LAB4 WEB based SNMP monitoring with MRTG Basic SNMP config to router Allow SNMP only from server computer MRTG  Free  easy to use to monitor few.
MRTG Speaker: Yan-Shiang Wang Adviser: Quincy Wu Date: 2005/11/23.
Hsu Chun-Hung Network Benchmarking Lab
Linux Operations and Administration
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Taipei, Taiwan Smokeping & Cacti APRICOT 2008 Workshop February – Taipei, Taiwan Hervey Allen.
Remstats An RRDtool-based Network Monitoring System by Thomas Erskine.
Network and Server Statistics using Cacti. Introduction A tool to monitor, store and present network and system/server statistics Designed around RRDTool.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
2008 Mérida, Venezuela 2010 Kuala Lumpur, Malaysia Network and Server Statistics using Cacti APRICOT 2010 Kuala Lumpur, Malaysia.
Graphing and statistics with Cacti AfNOG 11, Kigali/Rwanda.
Network Management Protocols and Applications Cliff Leach Mike Looney Danny Mar Monty Maughon.
Managing a Network with Cricket Jeff Allen WebTV Networks, Inc.
New Delhi, India Smokeping/Cacti/Munin SANOG 10 Workshop August 29-Sep 2 – New Delhi, India Hervey Allen.
APRICOT 2010 Kuala Lumpur, Malaysia
Multi Router Traffic Grapher 陳伯岡. Outline What is MRTG Why MRTG How MRTG work Start you own MRTG Reference Exercise & Homework.
POSTECH DP&NM Lab. (1)(1) Web-based Internet/Intranet Network Traffic Monitoring System Introduction –Web-based Network Traffic Monitoring,
Manchester University Tiny Network Element Monitor (MUTiny NEM) A Network/Systems Management Tool Dave McClenaghan, Manchester Computing George Neisser,
Cluster Consistency Monitor. Why use a cluster consistency monitoring tool? A Cluster is by definition a setup of configurations to maintain the operation.
How to use mrtg to monitor traffic on your wireless and wired network a bella mia company.
2008 Mérida, Venezuela 6 Nadi, Fiji Network and Server Statistics using Cacti PacNOG 6 November 2009 Hervey Allen Carlos Vicente.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
SmokePing. Overview Network monitoring IP address, hostname Network services e.g. DNS, SMTP, HTTP Latency measurement Round trip delay time Historical.
MRTG / RRDTool Network Management Workshop intERlab at AIT Thailand March 11-15, 2008.
Homework 5 DNS 、 HTTPD 、 SNMP. Requirements One dedicated domain name for yourself Setup DNS server with following records  SOA, NS, MX  Make them reasonable.
Using RRDtool to graph sensor's data
1 Introduction to RRDTool Speaker: Yan-Shiang Wang Date:
Network Monitoring Sebastian Büttrich, NSRC / IT University of Copenhagen Last edit: February 2012, ICTP Trieste
Torrus software: Overview of challenges and new features Stanislav Sinyagin SwiNOG-16, May 14th 2008, Bern.
'08 Rabat Smokeping & Cacti Network Monitoring & Management Tutorial June 1, 2008 – AfNOG 2008 Hervey Allen.
CSCF Cacti Project
'08 Rabat An Introduction AfNOG 2008 Network Management Workshop June 1-2 – Rabat, Morocco Hervey Allen & Phil Regnauld.
Network Management Workshop March – Bangkok, Thailand
LINGO TUTORIAL.
Network and Server Statistics Using Cacti
Network Management Workshop
System Monitoring with Lemon
MRTG / RRDTool Network Management Workshop June 2009
Introduction A simplified interaction is shown on the next slide.
MCTS Guide to Microsoft Windows 7
Chapter 6 Network Performance Measurement
Smokeping/Cacti/Munin
Presented By: #NercompPDO3
How to use mrtg to monitor traffic on your wireless and wired network
Network and Server Statistics using Cacti AfNOG May Hervey Allen
Tutorial 8 Objectives Continue presenting methods to import data into Access, export data from Access, link applications with data stored in Access, and.
Chapter 8: Monitoring the Network
Accounting Accounting collects information about users and processes
What is Perl? PERL--Practical Extraction and Report Language
MAINTAINING SERVER AVAILIBILITY
Periodic Processes Chapter 9.
CPU Structure CPU must:
Red Pitaya with EPICS Andraz Pozar EPICS Collaboration Meeting
Presentation transcript:

Network Monitoring & Management Tutorial MRTG / RRDTool Network Monitoring & Management Tutorial AfNOG 2008 Rabat, Morocco June 1, 2008

MRTG… The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network-links. MRTG generates HTML pages containing PNG images which provide an almost live visual representation of this traffic. Check http://oss.oetiker.ch/mrtg/ to see what it does. MRTG has been the most common network traffic measurement tool for all Service Providers MRTG uses simple SNMP queries on a regular interval to generate graphs

MRTG… External readers for MRTG graphs can create other interpretation of data. MRTG software can be used not only to measure network traffic on interfaces, but also build graphs of anything that has an equivalent SNMP MIB - like CPU load, Disk availability, Temperature, etc... Data sources can be anything that provides a counter or gauge value – not necessarily SNMP. For example, graphing round trip times MRTG can be extended to work with RRDTool

MRTG - Issues MRTG generates each graph (what if you have hundreds of graphs!) every 5 minutes, creating a lot of overhead. It also has very few customizable graphing options. Disk space is always an issue. MRTG management itself can be tedious work.

Running MRTG Get the required packages Compile and install the packages Make cfg files for router interfaces with cfgmaker Create html pages from the cfg files with indexmaker Trigger MRTG periodically from Cron or run it in daemon mode

RRDtool Round Robin Database for time series data storage Command line based From the author of MRTG Made to be faster and more flexible Includes CGI and Graphing tools, plus APIs Solves the Historical Trends and Simple Interface problems

Define Data Sources (Inputs)‏ DS:speed:COUNTER:600:U:U DS:fuel:GAUGE:600:U:U DS = Data Source speed, fuel = “variable” names COUNTER, GAUGE = variable type 600 = heart beat – UNKNOWN returned for interval if nothing received after this amount of time U:U = limits on minimum and maximum variable values (U means unknown and any value is permitted)‏

Define Archives (Outputs)‏ RRA:AVERAGE:0.5:1:24 RRA:AVERAGE:0.5:6:10 RRA = Round Robin Archive AVERAGE = consolidation function 0.5 = up to 50% of consolidated points may be UNKNOWN 1:24 = this RRA keeps each sample (average over one 5 minute primary sample), 24 times (which is 2 hours worth)‏ 6:10 = one RRA keeps an average over every six 5 minute primary samples (30 minutes), 10 times (which is 5 hours worth)‏ Clear as mud! all depends on original step size which defaults to 5 minutes

RRDtool Database Format Recent data stored once every 5 minutes for the past 2 hours (1:24)‏ Old data averaged to one entry per day for the last 365 days (288:365)‏ RRD File --step 300 (5 minute input step size)‏ RRA 1:24 RRA 6:10 RRA 288:365 Medium length data averaged to one entry per half hour for the last 5 hours (6:10)‏

Isn't it simple ?! rrdtool create /var/nagios/rrd/host0_load.rrd -s 600 DS:1MIN-Load:GAUGE:1200:0:100 DS:5MIN-Load:GAUGE:1200:0:100 DS:15MIN-Load:GAUGE:1200:0:100 RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800 rrdtool create /var/nagios/rrd/host0_disk_usage.rrd -s 600 DS:root:GAUGE:1200:0:U DS:home:GAUGE:1200:0:U DS:usr:GAUGE:1200:0:U DS:var:GAUGE:1200:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800 rrdtool create /var/nagios/rrd/apricot-INTL_Ping.rrd -s 300 DS:ping:GAUGE:600:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800 rrdtool create /var/nagios/rrd/host0_total.rrd -s 300 DS:IN:COUNTER:1200:0:U DS:OUT:COUNTER:600:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800

Ping Latency Graph Created by APAN from RRD Database

Labs

MRTG In Ubuntu / Debian apt-get install mrtg Configuration /etc/mrtg/<device.mrtg> Global directory : /var/www/mrtg/ Run MRTG against the configuration file from cron.

cfgmaker Uses snmpwalk and creates a mrtg configuration file /usr/bin/cfgmaker --output=/etc/mrtg/router.mrtg --global 'workdir: /var/www/mrtg' --global 'options[_]: growright,bits' apric0t08@169.223.2.1

sample #Title[leased]: a 128K leased line #PageTop[leased]: <H1>Our 128K link to the outside world</H1> #Target[leased]: 1:public@router.localnet #MaxBytes[leased]: 16000

Creating HTML with indexmaker /usr/bin/indexmaker --output=/var/www/mrtg/device.html /etc/mrtg/device.mrtg If your mrtg configuration file is well commented, the html is nice and detailed.

Lab instructions Separate paper

RRDTool # apt-get install rrdtool # apt-get install librrdp-perl # apt-get install librrds-perl Add in your MRTG Configuration file /etc/mrtg/router.mrtg LogFormat: rrdtool Run mrtg Go see in /var/www/mrtg