MRTG / RRDTool. Network Management Workshop. June 2009 Papeete, French Polynesia



Similar documents
May PZ-0502A-WWEN Prepared by: Internet & E-Commerce Solutions

Network Monitoring. Dhruba Raj Bhandari (CCNA) Manager Systems Soaltee Crowne Plaza Kathmandu NEPAL

log, syslog, logrotate SNMP tools for monitoring

Getting Started with RRDtool

RRDtool. Tobi Oetiker Sponsors: AboveNet CAIDA ETH Zurich RRDtool NANOG Nr.

How To Use Multi Router Traffic Grapher (Mrtg)

Canopy Network Management with MRTG. Application Note. CanopyMRTG01-AN-en Issue 1 December 2003

Tobias Oetiker. OSCON 2005 Portland, Oregon, August 3, 2005

Network and Server Statistics Using Cacti

TEIN2 Measurement and Monitoring Workshop Passive Measurements.

Network and Server Statistics Using Cacti

Network and Server Statistics using Cacti

Monitoring Cisco IOS Firewall Inspection Activity with Multi- Router Traffic Grapher (MRTG)

Multi-Router Traffic Grapher (MRTG)

Using MRTG to Monitor I/O

Helsinki University of Technology Department of Electrical and Communications Engineering Networking Laboratory

Fritz Speed Documentation

A Web-based System to Monitor and Analyze Network Management Information in XML

How To Monitor A Network With Snmp (Network Monitoring)

Knowledge is Power. He who gets wisdom loves his own soul; he who cherishes understanding prospers. (Proverbs 19:8)

MRTG used for Basic Server Monitoring

This watermark does not appear in the registered version - SNMP and OpenNMS. Part 1 SNMP.

Grids & networks monitoring - practical approach

Network Management & Monitoring Overview

1. INTERFACE ENHANCEMENTS 2. REPORTING ENHANCEMENTS

Network Monitoring. Sebastian Büttrich, NSRC / IT University of Copenhagen Last edit: February 2012, ICTP Trieste

Network Monitoring & Management Measuring Delay with Smokeping

Storage of Network Monitoring and Measurement Data

Newton Linux User Group Graphing SNMP with Cacti and RRDtool

White Paper. Quo Vadis, SNMP? White Paper Part 2: Putting SNMP into practice

Management Tools, Systems and Applications. Network Management

Network Management and Monitoring

1. INTERFACE ENHANCEMENTS 2. REPORTING ENHANCEMENTS

RRDtool Tips & Tricks

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

KretchmarBook 2003/8/29 19:05 page 39 #51

Deploying the BIG-IP LTM with the Cacti Open Source Network Monitoring System

Index terms Management, Measurement, Performance Monitoring, Middleware. Keywords Wi-Fi Networks, Service Level Agreement, Visualization

MONITORING OF NETWORKED MACHINES AND DEVICES IN MANUFACTURING NETWORKS

Details. Some details on the core concepts:

Network Management & Monitoring Overview

Network Monitoring. Review of Software

Network Monitoring On Large Networks. Yao Chuan Han (TWCERT/CC)

SNMP and MRTG Monitoring. SNMP and MRTG Monitoring. Introduction. Start. 1 de 9 07/06/ :33. Contents

WhatsUp Gold v11 Features Overview

Maintaining Non-Stop Services with Multi Layer Monitoring

Written by CiscoNET Thursday, 07 May :57 - Last Updated Wednesday, 02 December :50

Using SNMP to Obtain Port Counter Statistics During Live Migration of a Virtual Machine. Ronny L. Bull Project Writeup For: CS644 Clarkson University

Introduction to Network Monitoring and Management

A Brief. Introduction. of MG-SOFT s SNMP Network Management Products. Document Version 1.3, published in June, 2008

Proactive Network Performance Monitoring

Using SNMP with Content Gateway (not V-Series)

TPAf KTl Pen source. System Monitoring. Zenoss Core 3.x Network and

CARENET-SE. NOC Tools Review. Communication System Design Summer Project team. Champion Björn Pehrson Coach Hans Eriksson

AfNOG Monitoring of IP Services. Ayitey Bulley Material generously borrowed from the NSRC NME course

Network Monitoring with SNMP

Network performance overview. TEIN2 Bangkok September 2005

Creating Cacti FortiGate SNMP Graphs

NOC Tools Tutorial. Luke Fowler Internet2/ESCC Joint Techs Workshop, Albuquerque, NM February, 2006

How To Use The Sca Bb Real Time Monitoring Configuration Utility

EventSentry Overview. Part I About This Guide 1. Part II Overview 2. Part III Installation & Deployment 4. Part IV Monitoring Architecture 13

RTG: A Scalable SNMP Statistics Architecture NANOG 27. Robert Beverly February 10, 2003

Multicast monitoring and visualization tools. A. Binczewski R. Krzywania R. apacz

Hanyang University Grid Network Monitoring

Network Monitoring Tools

Free Network Monitoring Software for Small Networks

Monitoring systems: Concepts and tools

Building A Better Network Monitoring System

Network Monitoring and Data Center Operation

PANDORA FMS NETWORK DEVICES MONITORING

Network Monitoring Comparison

Wait, How Many Metrics? Monitoring at Quantcast

Tools. Caution. What tcpdump can do for you? What Tcpdump can do for you. Network Analyzer

Monitoring System Status

Users Guide and Reference

PANDORA FMS NETWORK DEVICE MONITORING

A Plan for the Continued Development of the DNS Statistics Collector

Network Monitoring and Management Introduction to Networking Monitoring and Management

Network Monitoring with SNMP

WhatsUp Gold v11 Features Overview

Graphing and Trending in Nagios

Features Overview Guide About new features in WhatsUp Gold v12

CAREN NOC MONITORING AND SECURITY

Monitoring MySQL. Presented by, MySQL & O Reilly Media, Inc. A quick overview of available tools

Architectural Design and Specification of the INSTOOLS Measurement System

Tel Scripting for Cisco IOS

WLAN TRAFFIC GRAPHING APPLICATION USING SIMPLE NETWORK MANAGEMENT PROTOCOL *

Monitoring Network Availablity Using Nagios

AXIGEN Mail Server Reporting Service

Proceedings of the 14th Systems Administration Conference (LISA 2000)

Aberrant Behavior Detection in Time Series for Network Monitoring

Datacenter Hosting and Cloud Computing Services

#41 D A N T E I N P R I N T. TEN-155 Multicast: MBGP and MSDP monitoring. Jan Novak Saverio Pangoli

TEIN2 Measurement and Monitoring Workshop.

Demystifying SNMP. TruePath Technologies Inc 10/5/2015 2:11:14 PM Version 1.db. p.1

PoS(ISGC 2013)021. SCALA: A Framework for Graphical Operations for irods. Wataru Takase KEK wataru.takase@kek.jp

Lab Testing Summary Report

This release also incorporates new features which improve manageability for system administrators and usability for contributors.

Cisco Routers and Switches

A FAULT MANAGEMENT WHITEPAPER

Transcription:

MRTG / RRDTool Network Management Workshop June 2009 Papeete, French Polynesia

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) --step 300 (5 minute input step size) RRA 1:24 RRA 6:10 RRA 288:365 RRD File 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' pacn0g2k9@192.168.1.22x

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.

Separate paper Lab instructions

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