Network Monitoring & Management Measuring Delay with Smokeping



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

Network Management & Monitoring

Network and Server Statistics Using Cacti

Network and Server Statistics Using Cacti

Introduction to Network Monitoring and Management

There are numerous ways to access monitors:

Network Monitoring and Management Introduction to Networking Monitoring and Management

Introduction to Network Monitoring and Management

Grids & networks monitoring - practical approach

Robust & Reliable DNS Operations Logging & Monitoring

Network Management & Monitoring Overview

AusCERT Remote Monitoring Service (ARMS) User Guide for AusCERT Members

Network Monitoring and Management Tutorial: SANOG 2015

Network Management & Monitoring Overview

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM with the Nagios Open Source Network Monitoring System

Network Monitoring and Management Introduction to Networking Monitoring and Management

Network Management & Monitoring Overview

Using IPM to Measure Network Performance

Snapt Balancer Manual

MFPConnect Monitoring. Monitoring with IPCheck Server Monitor. Integration Manual Version Edition 1

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

Copyright

Chapter 8 Monitoring and Logging

Kaseya 2. User Guide. for Network Monitor 4.1

Customer Tips. Configuration and Use of the MeterAssistant Option. for the user. Purpose. Xerox Device Configuration. Xerox Multifunction Devices

W3Perl A free logfile analyzer

Volume SYSLOG JUNCTION. User s Guide. User s Guide

Open Source in the Data Centre. John Ferlito Bulletproof Networks

Network Monitoring & Management Log Management

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

Network Probe User Guide

AfNOG 2010 Network Monitoring and Management Tutorial. Introduction to Networking Monitoring and Management

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

ServerPronto Cloud User Guide

Creating Basic Custom Monitoring Dashboards Antonio Mangiacotti, Stefania Oliverio & Randy Allen

Firewall Firewall August, 2003

A Guide to New Features in Propalms OneGate 4.0

Virtual Web Appliance Setup Guide

WHITE PAPER September CA Nimsoft Monitor for Servers

Pandora FMS 3.0 Quick User's Guide: Network Monitoring. Pandora FMS 3.0 Quick User's Guide

Network and Server Statistics using Cacti

Network performance overview. TEIN2 Bangkok September 2005

Network Monitoring & Management Log Management

Chapter 4 Security and Firewall Protection

WEBAPP PATTERN FOR APACHE TOMCAT - USER GUIDE

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

Virtual Managment Appliance Setup Guide

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

MRTG used for Basic Server Monitoring

VMware vcenter Operations Standard Installation and Administration Guide

Best of Breed of an ITIL based IT Monitoring. The System Management strategy of NetEye

Dynamic DNS How-To Guide

AXIGEN Mail Server Reporting Service

SMT v4.0 Users Guide (Linux version)

Healthstone Monitoring System

SuperLumin Nemesis. Administration Guide. February 2011

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

What s new in ProactiveWatch 2.1!

Chapter 4 Firewall Protection and Content Filtering

OnCommand Performance Manager 1.1

Lab Conducting a Network Capture with Wireshark

Web Load Stress Testing

Remote Monitoring Service - Setup Guide for InfraStruXure Central and StruxureWare 1 5

Securing Networks with PIX and ASA

WhatsUpGold. v3.0. WhatsConnected User Guide

So in order to grab all the visitors requests we add to our workbench a non-test-element of the proxy type.

Emerald. Network Collector Version 4.0. Emerald Management Suite IEA Software, Inc.

Medical Vacuum Systems-PXMI

VMware vcenter Log Insight User's Guide

Penetration Testing LAB Setup Guide

How To Create A Ticketing System With Rt.Org

Intrusion Detection and Prevention: Network and IDS Configuration and Monitoring using Snort

Assignment One. ITN534 Network Management. Title: Report on an Integrated Network Management Product (Solar winds 2001 Engineer s Edition)

mbits Network Operations Centrec

NMS300 Network Management System

Aspen Cloud Server Management Console

3M Command Center. Installation and Upgrade Guide

Chapter 4 Firewall Protection and Content Filtering

About this Getting Started Guide. Enabling Log Management... 2 Applying a License... 4 Using Log Management How to forward logs...

Network monitoring systems & tools

TOTAL VIEW ONE Technical FAQ

Network Security: Workshop. Dr. Anat Bremler-Barr. Assignment #2 Analyze dump files Solution Taken from

Licensed Functionality: Remote Monitoring

pt360 FREE Tool Suite Networks are complicated. Network management doesn t have to be.

Details. Some details on the core concepts:

Name Services (DNS): This is Quick rule will enable the Domain Name Services on the firewall.

IBM Tivoli Monitoring Version 6.3 Fix Pack 2. Windows OS Agent Reference

Ticketing Systems and Documentation

42goISP Documentation

Configuring Nex-Gen Web Load Balancer

AXIS 70U - Using Scan-to-File

Configuring Health Monitoring

WHITE PAPER September CA Nimsoft For Network Monitoring

2.0 Dual WAN Select Dual-WAN, you will see the following screen shot, Figure 0.1(Dual-WAN Screen Shot) Figure 0.1(Dual-WAN Screen Shot)

MultiSite Manager. User Guide

Edge Configuration Series Reporting Overview

Unified Monitoring Portal Online Help List Viewer

Transcription:

Network Monitoring & Management Measuring Delay with Smokeping Network Startup Resource Center www.nsrc.org These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license (http://creativecommons.org/licenses/by-nc/4.0/)

SmokePing keeps track of your network latency: Best of breed latency visualization. Interactive graph explorer. Introduction Wide range of latency measurement plugins. Master/Slave System for distributed measurement. Highly configurable alerting system. Live Latency Charts with the most 'interesting' graphs. Free and OpenSource Software written in Perl written by Tobi Oetiker, the creator of MRTG and RRDtool

Technical Introduction Based on RRDTool (the same author) Measures ICMP delay & status of services like: HTTP, DNS, SMTP, SSH, LDAP, and more Define ranges on statistics and generate alarms Written in Perl for portability Easy to install - harder to configure

The Smoke & The Pings

How To Read Smokeping Graphs Smokeping sends multiples tests (pings), makes note of RTT, orders these and selects the median. The different values of RTT are shown graphically as lighter and darker shades of grey (the smoke ). This conveys the idea of variable round trip times or jitter. The number of lost packets (if any) changes the color of the horizontal line across the graph.

Example: African Network Operators Group

The following packages: rrdtool http://oss.oetiker.ch/rrdtool/ fping http://www.fping.com/ echoping http://echoping.sourceforge.net/ speedycgi http://www.daemoninc.com/speedycgi/ Apache Perl What Makes It Tick http://httpd.apache.org/ http://www.perl.org/

Smokeping Installation Debian/Ubuntu: apt-get install smokeping Configure /etc/smokeping/config.d/* Change Smokeping's appearance here: /etc/smokeping/basepage.html Restart the service: service smokeping {start stop restart reload}

Smokeping Installation You will find Smokeping running here: http://pcn.ws.nsrc.org/cgi-bin/smokeping.cgi

Configuration Smokeping configuration files in Ubuntu: /etc/smokeping/config.d/alerts /etc/smokeping/config.d/database /etc/smokeping/config.d/general /etc/smokeping/config.d/pathnames /etc/smokeping/config.d/presentation /etc/smokeping/config.d/probes /etc/smokeping/config.d/slaves /etc/smokeping/config.d/targets Generally we spend most of our time in Alerts, General, Probes and Targets.

Configuration: General To be updated: owner NOC contact sysadm@pcn.ws.nsrc.org cgiurl http://pcn.ws.nsrc.org/cgi-bin/smokeping.cgi mailhost localhost syslogfacility local5 *** General *** *** General *** owner = NOC owner = NOC contact = sysadm@pcn.ws.nsrc.org contact = sysadm@pcn.ws.nsrc.org mailhost = localhost mailhost = localhost # NOTE: do not put the Image Cache below cgi-bin # NOTE: do not put the Image Cache below cgi-bin # since all files under cgi-bin will be executed... this is not # since all files under cgi-bin will be executed... this is not # good for images. # good for images. cgiurl = http://pcn.ws.nsrc.org/cgi-bin/smokeping.cgi cgiurl = http://pcn.ws.nsrc.org/cgi-bin/smokeping.cgi # specify this to get syslog logging # specify this to get syslog logging syslogfacility = local5 syslogfacility = local5 # each probe is now run in its own process # each probe is now run in its own process # disable this to revert to the old behaviour # disable this to revert to the old behaviour # concurrentprobes = no # concurrentprobes = no @include /etc/smokeping/config.d/pathnames @include /etc/smokeping/config.d/pathnames

Configuration: Targets Where we spend most of our time configuring Smokeping. Web menu hierarchy defined by +, ++, etc. Each new probe statement resets the default probe in use. Probes have defaults set in the Probes config file. These can be overridden in Targets. *** Targets *** *** Targets *** probe = FPing probe = FPing menu = Top title menu = Network Top Latency Grapher title = Network Latency Grapher + UO menu + UO= University of Oregon title menu = UO University webserverof Oregon host title = www.uoregon.edu = UO webserver host = www.uoregon.edu + NSRC menu + NSRC = NSRC title menu = Network NSRC Startup Resource Center host title = www.nsrc.org = Network Startup Resource Center host = www.nsrc.org ++ HTTP menu ++ HTTP = HTTP probe menu = EchoPingHttp HTTP probe = EchoPingHttp +++ www menu +++ = www NSRC web host menu = = www.nsrc.org NSRC web host = www.nsrc.org ++ DNS menu ++ DNS = DNS probe menu = DNS probe = DNS +++ dns menu +++ = dns NSRC DNS host menu = = www.nsrc.org NSRC DNS host = www.nsrc.org

Target Entry Submenu depth (+ = top level, ++ = 2 nd level, +++ = 3 rd level...) RRD filename on disk: UO.rrd Must not contain spaces! + UO UO menu = University of of Oregon title = UO UO webserver host = www.uoregon.edu Label in leftside menu Label at top of screen The actual hostname (or IP address) to test

Configuration: Targets Example Targets file below produces the following default SmokePing page: *** Targets *** *** Targets *** probe = FPing probe = FPing menu = Top title menu = Network Top Latency Grapher remark title = SmokePing Network Latency Latency Grapher Monitoring \ remark = Network SmokePing Monitoring Latency and Monitoring Management \ Workshop Network Monitoring and Management Workshop + Local + Local menu = Local title menu = Local Network title = Local Network ++ LocalMachine ++ LocalMachine menu = Local Machine title menu = This Local host Machine host title = localhost = This host host = localhost ++ NSRC ++ NSRC menu = Network Startup Resource Center title menu = Latency Network to Startup Network Resource Startup Center Resource Center host title = nsrc.org = Latency to Network Startup Resource Center host = nsrc.org

Configuration: Targets Example Clicking on Local in the previous slide gives us:

Configuration: Targets Example Clicking Network Startup Resource Center in the previous slides gives us:

Hierarchy in Targets File Web UI *** Targets *** *** Targets *** probe = FPing probe = FPing menu = Top title menu = Network Top Latency Grapher remark title = SmokePing Network Latency Latency Grapher Monitor \ remark = Network SmokePing Monitoring Latency and Monitor Mana \ Network Monitoring and Mana + Local 1 st level + Local menu = Local title menu = Local Network title = Local Network ++ LocalMachine 2 nd level ++ LocalMachine menu = Local Machine title menu = This Local host Machine 2 title = This host nd level host = localhost host = localhost ++ NSRC ++ NSRC menu = Network Startup Resource Center title menu = Latency Network to Startup Network Resource Startup Center Re host title = nsrc.org = Latency to Network Startup Re host = nsrc.org + Local /var/lib/smokeping/local ++ LocalMachine /var/lib/smokeping/local/localmachine.rrd ++ NSRC /var/lib/smokeping/local/nsrc.rrd

Configuration: Alerts Very flexible. Create your own type of alert. Send alerts to ticket queues (RT using rt-mailgate, for instance) Complex to understand. Read the Alerts section of the Smokeping docs: http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html *** Alerts *** *** Alerts *** to = root@localhost to = root@localhost from = smokeping-alert@localhost from = smokeping-alert@localhost +someloss +someloss type = loss type = loss # in percent # in percent pattern = >0%,*12*,>0%,*12*,>0% pattern = >0%,*12*,>0%,*12*,>0% comment = loss 3 times in a row over 12 samples comment = loss 3 times in a row over 12 samples This could go to a ticketing queue instead. Target ++ LocalMachine menu = localhost title = This host host = localhost alerts = startloss,someloss,bigloss,rttdetect

Configuration: Probes Smokeping is installed with a number of additional probes. They must, however, be specified here including their default behaviors. *** Probes *** *** Probes *** + FPing binary + FPing = /usr/sbin/fping binary = /usr/sbin/fping + DNS binary + DNS = /usr/bin/dig lookup binary = = nsrc.org /usr/bin/dig pings lookup = 5= nsrc.org step pings = 180 = 5 step = 180 + EchoPingHttp binary + EchoPingHttp = /usr/bin/echoping ignore_cache binary = /usr/bin/echoping = yes pings ignore_cache = 5 = yes url pings = / = 5 url = / + EchoPingHttps binary + EchoPingHttps = /usr/bin/echoping pings binary = 5= /usr/bin/echoping url pings = / = 5 url = / + EchoPingSmtp binary + EchoPingSmtp = /usr/bin/echoping forks binary = 5= /usr/bin/echoping forks = 5 Use the DNS probe to verify that your services are available and responding as expected. We use nsrc.org as a sample hostname to lookup, to verify that the DNS works. Note: Initial Probes file only has FPing defined.

Default Probe: fping Probing for delay and jitter (ping) Entry belongs in the Targets file Network Latency probe = FPing... ++ LocalMachine menu = localhost title = This host host = localhost

Probe: DNS Check In /etc/smokeping/config.d/targets: DNS Latency ++ DNS probe = DNS menu = External DNS Check title = DNS Latency +++ GoogleA menu = 8.8.8.8 Title = DNS Latency GoogleA host = google-public-dnsa.google.com

More Types of Probes: More information available here: http://oss.oetiker.ch/smokeping/probe/index.en.html A few more probes... DNS - CiscoRTTMonDNS - Radius HTTP(S) - CiscoRTTMonTcpCon - IOS LDAP - Tacacs - FPing6 Whois - WebProxyFilter - Etc. SMTP - WWW-Cache

Configuration: Pathnames Normally you should not need to update this file: sendmail = /usr/sbin/sendmail sendmail = /usr/sbin/sendmail imgcache = /var/cache/smokeping/images imgcache = /var/cache/smokeping/images imgurl =../smokeping/images imgurl =../smokeping/images datadir = /var/lib/smokeping datadir = /var/lib/smokeping piddir = /var/run/smokeping piddir = /var/run/smokeping smokemail = /etc/smokeping/smokemail smokemail = /etc/smokeping/smokemail tmail = /etc/smokeping/tmail tmail = /etc/smokeping/tmail

Configuration: Presentation If you wish to customize Smokeping s look and feel you can edit the file /etc/smokeping/basepage.html *** Presentation *** *** Presentation *** template = /etc/smokeping/basepage.html charset template = = utf-8 /etc/smokeping/basepage.html charset = utf-8 + charts + charts menu = Charts title menu = The Charts most interesting destinations title = The most interesting destinations ++ stddev sorter ++ stddev = StdDev(entries=>4) title sorter = Top = StdDev(entries=>4) Standard Deviation menu title = Std = Top Deviation Standard Deviation format menu = = Std Standard Deviation Deviation %f format = Standard Deviation %f ++ max sorter ++ max = Max(entries=>5) title sorter = Top = Max(entries=>5) Max Roundtrip Time menu title = by = Top Max Max Roundtrip Time format menu = = by Max Max Roundtrip Time %f seconds format = Max Roundtrip Time %f seconds

Configuration: Database Defines how RRDtool will save data in Round Robin Archives (RRAs) By default each step is 300 seconds (5 minutes). You cannot trivially change the step setting once data has been collected. Find details on each column in the database section of the online docs: http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html *** Database *** *** Database *** step = 300 step = 300 pings = 20 pings = 20 # consfn mrhb steps total # consfn mrhb steps total AVERAGE 0.5 1 1008 AVERAGE 0.5 1 1008 AVERAGE 0.5 12 4320 AVERAGE 0.5 12 4320 MIN 0.5 12 4320 MIN 0.5 12 4320 MAX 0.5 12 4320 MAX 0.5 12 4320 AVERAGE 0.5 144 720 AVERAGE 0.5 144 720 MAX 0.5 144 720 MAX 0.5 144 720 MIN 0.5 144 720 MIN 0.5 144 720 consfn: Consolidation function mrhb: Percent of consolidated steps that must be known to warrant an entry. steps: How many steps to consolidate for each entry in the RRA. total: Total number of rows to keep in the RRA. Use rows and steps to determine time data will be saved. 12 steps = 12 x 300 sec = 1 hour 4320 rows = 4320 hours = 180 days

Smokeping slave servers allow for multi-viewpoint monitoring and graphing of the same services, machines or links. Details here: http://oss.oetiker.ch/smokeping/doc/smokeping_master_slave.en.html *** Slaves *** secrets=/etc/smokeping/smokeping_secrets *** Slaves *** #+boomer secrets=/etc/smokeping/smokeping_secrets #display_name=boomer #+boomer #color=0000ff #display_name=boomer #color=0000ff #+slave2 #display_name=another #+slave2 #color=00ff00 #display_name=another #color=00ff00 Configuration: Slaves Externally monitor your network!

Multi-Host Graphing Solve the issue of multiple hosts, one probe and missing differences in the Y axis (time): http://oss.oetiker.ch/smokeping/doc/smokeping_examples.en.html +++MultihostRouters menu = MutihostRouters title = Combined Router Results host = /Local/Routers/gw /Local/Routers/rtr1 /Local/Routers/rtr2 Sample configuration

Example: Multi-Host Graph

Smokeping Summary Simple but powerful network monitoring Monitor machines, services and link health Distributed instances for external views often a paid-for service Easy to configure and customize, but very extensible. Use with Ticketing Systems to automate alerts Very small disk and CPU footprint

References Smokeping website: http://oss.oetiker.ch/smokeping/ Smokeping Demo: http://oss.oetiker.ch/smokeping-demo/?target=customers.op Good examples: http://oss.oetiker.ch/smokeping/doc/smokeping_examples.en.html

Questions?