MRTG / RRDTool Network Management Workshop intERlab at AIT Thailand March 11-15, 2008.

Slides:



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

Network Performance Measurement
Bangkok, Thailand An Introduction intERLab at AIT Network Management Workshop March – Bangkok, Thailand Hervey Allen & Phil Regnauld.
Multi Router Traffic Grapher (MRTG) นายดรัสวิน วงศ์ปรเมษฐ์ สาขาวิชาเทคโนโลยีสารสนเทศ คณะวิทยาศาสตร์ มรภ. บร.
Network Management Workshop intERlab at AIT Thailand March 11-15, 2008 Network Operations and Network Management.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Back to the Future Performance Management in an Open Source World.
Cacti Workshop Tony Roman Agenda What is Cacti? The Origins of Cacti Large Installation Considerations Automation The Current.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 10: Collect and Analyze Performance Data.
Measuring Performance Chapter 12 CSE807. Performance Measurement To assist in guaranteeing Service Level Agreements For capacity planning For troubleshooting.
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.
Chapter Ten Performance Tuning. Objectives Create a performance baseline Create a performance baseline Understand the performance and monitoring tools.
Hands-On Microsoft Windows Server 2008 Chapter 11 Server and Network Monitoring.
CH 13 Server and Network Monitoring. Hands-On Microsoft Windows Server Objectives Understand the importance of server monitoring Monitor server.
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.
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.
Hsu Chun-Hung Network Benchmarking Lab
Linux Operations and Administration
Module 7: Fundamentals of Administering Windows Server 2008.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
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.
Keeping Network Monitoring Current using Automated Nagios Configurations (WIP) Greg Wickham APAN July 2005.
2008 Mérida, Venezuela 2010 Kuala Lumpur, Malaysia Network and Server Statistics using Cacti APRICOT 2010 Kuala Lumpur, Malaysia.
Touchstone Automation’s DART ™ (Data Analysis and Reporting Tool)
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.
SmokePing. Overview Network monitoring IP address, hostname Network services e.g. DNS, SMTP, HTTP Latency measurement Round trip delay time Historical.
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
'08 Rabat Smokeping & Cacti Network Monitoring & Management Tutorial June 1, 2008 – AfNOG 2008 Hervey Allen.
Network Management Workshop March – Bangkok, Thailand
Network Management Workshop
MRTG / RRDTool Network Management Workshop June 2009
Introduction A simplified interaction is shown on the next slide.
Network Operations and Network Management
MCTS Guide to Microsoft Windows 7
Chapter 6 Network Performance Measurement
Smokeping/Cacti/Munin
Network Monitoring & Management Tutorial
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.
Network Management Workshop intERlab at AIT Thailand March 11-15, 2008
Periodic Processes Chapter 9.
Presentation transcript:

MRTG / RRDTool Network Management Workshop intERlab at AIT Thailand March 11-15, 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 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

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 RRDtool

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)‏ Medium length data averaged to one entry per half hour for the last 5 hours (6:10)‏ Old data averaged to one entry per day for the last 365 days (288:365)‏ --step 300 (5 minute input step size)‏ RRA 1:24 RRA 6:10 RRA 288:365 RRD File

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/ 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'

sample #Title[leased]: a 128K leased line #PageTop[leased]: Our 128K link to the outside world #Target[leased]: #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