Notes on network monitoring, by Oliver Gorwits



Similar documents
Network Monitoring. Review of Software

Configuring SNMP Cisco and/or its affiliates. All rights reserved. 1

Introduction to Network Monitoring and Management

Network Management & Monitoring Overview

Network Monitoring and Management Introduction to Networking Monitoring and Management

Network Management & Monitoring Overview

A Scalable Network Monitoring System as a Public Service on Cloud

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

MONITORING EMC GREENPLUM DCA WITH NAGIOS

PANDORA FMS NETWORK DEVICE MONITORING

How To Monitor Your Computer With Nagiostee.Org (Nagios)

PANDORA FMS NETWORK DEVICES MONITORING

Результат запроса: Cacti weathermap

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

Details. Some details on the core concepts:

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

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

Free Network Monitoring Software for Small Networks

SNMP and OpenNMS. Part 2 OpenNMS

Monitoring backbone networks

Maintaining Non-Stop Services with Multi Layer Monitoring

Network Management & Monitoring Overview

The Campus NMS tool NAV GN3 Network monitoring workshop Belgrade, 20th October 2009 Morten Brekkevold

TEIN2 Measurement and Monitoring Workshop Passive Measurements.

Newton Linux User Group Graphing SNMP with Cacti and RRDtool

Network monitoring systems & tools

Introduction to Network Monitoring and Management

Network Terminology Review

Network Monitoring with SNMP

Network Monitoring. Lance Rea. Davis & Gilbert LLP lrea@dglaw.com

Features Overview Guide About new features in WhatsUp Gold v14

O p e n N M S. Marcin Rybacki OpenNMS

Network Monitoring with SNMP

How To Set Up Foglight Nms For A Proof Of Concept

By Jascha Wanger

Network Monitoring and Management Introduction to Networking Monitoring and Management

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

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

WhatsUpGold. v3.0. WhatsConnected User Guide

NetCrunch 6. AdRem. Network Monitoring Server. Document. Monitor. Manage

TELCO challenge: Learning and managing the network behavior

Virtual Server and DDNS. Virtual Server and DDNS. For BIPAC 741/743GE

IceWarp to IceWarp Server Migration

There are numerous ways to access monitors:

Tk20 Network Infrastructure

USING OPEN SOURCE SOFTWARE IN DAILY ISP OPERATIONS

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

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

Network Monitoring Tools for Monitoring MPLS Links using PRTG Network Monitor Tool

Monitoring of computer networks and applications using Nagios

inforouter V8.0 Server & Client Requirements

Open Source in the Data Centre. John Ferlito Bulletproof Networks

Application Note. Cacti monitoring. Document version: v1.0 Last update: 8th November 2013

Detecting rogue systems

Availability Management Nagios overview. TEIN2 training Bangkok September 2005

EKT 332/4 COMPUTER NETWORK

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

The use of SNMP and other network management tools in UNINETT. Arne Øslebø March 4, 2014

StruxureWare TM Center Expert. Data

Building A Better Network Monitoring System

FITB. Network Graphing Done Right. Laurie Denness

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

Rebasoft Auditor Quick Start Guide

Packet Sniffing on Layer 2 Switched Local Area Networks

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

Minimal network traffic is the result of SiteAudit s design. The information below explains why network traffic is minimized.

A SURVEY ON AUTOMATED SERVER MONITORING

Introduction to system monitoring with Nagios, Check_MK and Open Monitoring Distribution (OMD)

Before deploying SiteAudit it is recommended to review the information below. This will ensure efficient installation and operation of SiteAudit.

School of Information Technology and Engineering (SITE) CEG 4395: Computer Network Management

WHITE PAPER. Domo Advanced Architecture

Chapter 6.2: Network Management

CT LANforge WiFIRE Chromebook a/b/g/n WiFi Traffic Generator with 128 Virtual STA Interfaces

These options allow you to define baseline settings for how scanning will occur on your network

Network Monitoring Comparison

Have your JACE also monitor your Ethernet network

Web-based Automatic Network Discovery/Map Systems

The new services in nagios: network bandwidth utility, notification and sms alert in improving the network performance

Using WhatsUp IP Address Manager 1.0

WhatsUp Gold v11 Features Overview

MCN Health Monitor. The finger on the pulse of your critical systems. David Tayler Service Engineer, OSISoft

OnCommand Performance Manager 1.1

Management Tools, Systems and Applications. Network Management

HP LeftHand SAN Solutions

EMS. Trap Collection Active Alarm Alarms sent by & SMS. Location, status and serial numbers of all assets can be managed and exported

1. INTERFACE ENHANCEMENTS 2. REPORTING ENHANCEMENTS

How Comcast Built An Open Source Content Delivery Network National Engineering & Technical Operations

Make a folder named Lab3. We will be using Unix redirection commands to create several output files in that folder.

Running custom scripts which allow you to remotely and securely run a script you wrote on Windows, Mac, Linux, and Unix devices.

CAREN NOC MONITORING AND SECURITY

Solarwinds Training Standard, Pro & Expert

網 路 品 質 管 理 工 具 The Dude 簡 介

Features Overview Guide About new features in WhatsUp Gold v12

Cache All The Things

How good can databases deal with Netflow data

Grids & networks monitoring - practical approach

Transcription:

<erno> hm. I've lost a machine.. literally *lost*. It responds to ping, it works completely, I just can't figure out where in my apartment it is. -- bash.org #5273 Notes on network monitoring, by Oliver Gorwits

Part systems, part Perl Monitoring what? Shrink-wrapped solutions Not Invented Here Can t resist a bit of Perl Pretty graphs

Monitoring what? As we know, there are known knowns. There are things we know we know. We also know there are known unknowns. That is to say we know there are some things we do not know. But there are also unknown unknowns, The ones we don't know we don't know. Donald Rumsfeld Department of Defense news briefing Feb. 12, 2002

Monitoring what? Free and Open (unknown unknowns) Who is where on the network What have they been up to? What have my colleagues been up to?

Who is where? MAC addresses CAM tables - MAC to switch port IP addresses ARP tables - IP to MAC

Who is where? Switch MAC PC PC MAC CAM table

What have they been up to? Not sniffing - too much like work! Traffic levels p2p, tut tut Problems bad packets

Hive Mind, not ~6 humans, 100 s devices, 1k s ports There s a problem *here* Where is *here*? Could be many places Too much changing for us all to track

Shrink-wrapped systems Black box rack-mount appliances Often OSS inside Manager-friendly web GUIs Might be fast and good Might not be cheap

Net Mon tools http://www.slac.stanford.edu/xorg/nmtf/nmtf-tools.html

Dirty little secret Don t tell anyone, but... No new developments in network monitoring in the last 20 years I kid you not.

Monitoring 101 Send query to system Get response Act on response (optional) er, that s it.

SNMP Simple Network Management Protocol Created in 1988 Not just for the network Printers, power supplies, Linux...

SNMP 101 NMS server Query OID Response Agent client

Dirty little secret Fancy appliances just use SNMP Net-SNMP library Open Source Reference Implementation Perl API

Stop. What is it that you really need? Reports for management Integration with existing systems Traffic, errors, what else? Visualization History Platforms (server, and network kit)

What we needed Separate web GUI, database, poller Separation of concerns - security Extending use of existing systems OIDs - Rumsfeld s unknown unknowns Graphs Linux

Monitoring what? Free and Open (unknown unknowns) Who is where on the network What have they been up to? What have my colleagues been up to?

Netdisco Written in Perl Uses SNMP::Info wrapper to Net-SNMP PostgreSQL database Distributed web, database, poller Answers the Who, What, Where Auto-discovery

Netdisco Demo comms.oucs.ox.ac.uk/netdisco

What have they been up to? Traffic levels p2p, tut tut Problems bad packets Free and Open (unknown unknowns)

Not Invented Here MRTG - grand-daddy of monitoring RRDTool - grand-son of MRTG Cricket - RRDTool + poller

RRDTool http://oss.oetiker.ch/rrdtool/gallery/index.en.html

RRDTool Round-robin Database C, with Perl API Can be slow Binary storage - vulnerable Limiting You only find this out later

Not Invented Here RTG - C + MySQL Cacti - PHP OpenNMS - Java schmava

Cacti/OpenNMS http://cacti.net/get_image.php?image_id=43&x=1095&y=972&quality=90 http://demo.opennms.org/opennms/

Requirements Quick to develop Perl SNMP polling Fast storage Very long history (for some data) Graphs

SNMP::Effective Friendly wrapper for Net-SNMP Exposes asynchronous polling Parallel execution with callback Get device list from Netdisco Wrap this in a sleep/wake loop

SNMP::Effective 1 use SNMP::Effective; 2 3 my $snmp = SNMP::Effective->new( 4 max_sessions => $NUM_POLLERS, 5 master_timeout => $TIMEOUT_SECONDS, 6 ); 7 8 $snmp->add( 9 dest_host => $ip, 10 callback => sub { store_data(@_) }, 11 get => [ sysdescr ], 12 ); 13 # lather, rinse, repeat 14 15 # retrieve data from all hosts 16 $snmp->execute;

YATG YATG Ain t a Traffic Grapher It s a wrapper for SNMP::Effective Adds: Config (via Config::Any) (Remote) data storage Oh, and graphing

YATG Config 1 --- 2 yatg: 3 oids: 4 "sysuptime": [memcached] 5 "cpmcputotal5minrev": [stdout] 6 "ifhcinoctets": [ifindex, rpc] 7 "ifhcoutoctets": [ifindex, rpc] 8 "ifinerrors": [ifindex, memcached, diff] 9 "ifouterrors": [ifindex, memcached, diff] 10 "ifadminstatus": [ifindex, memcached] 11 "ifoperstatus": [ifindex, memcached] 12 "ifalias": [ifindex, memcached] 13 "dot1dstpportstate": [ifindex, disk, "192.2.1.10", "!192.1.1.0/24"] 14 communities: [public, anotherone] 15 dbi_connect: 16 - "dbi:pg:dbname=netdisco" 17 - netdisco 18 - "MYPASSWORD"

Tie::File 1 use Tie::File; 2 3 my $filename = /var/tmp/output.dat ; 4 my @array; 5 6 tie @array, Tie::File, $filename 7 or die failed to open $filename: $! ; 8 9 @array[13] = blah ; # line 14 of file becomes blah 10 print $array[42]; # display line 43 of the file 11 splice @array, 55, 1; # remove line 56 of the file Needs to scan whole file for separators

YATG Disk Storage 1 use Tie::File::FixedRecLen::Store; 2 3 tie @array, 'Tie::File::FixedRecLen::Store', 4 $file, record_length => 20 5 or die...; 1 # pseudo-code 2 $filename =~ m/($time_stamp),($poll_interval)/; Create file if doesn t exist Line 0 data s timestamp is $time_stamp Line n data s timestamp is $time_stamp + ($poll_interval * n)

RPC::Serialized YATG Poller YATG RPC client RPC server Data::Serializer

Nagios Generic service monitoring system HTTP, FTP, SMTP, DNS, DHCP, SNMP... Wide-open plugin interface OK, WARNING, ERROR to STDOUT Web GUI, email alerts

Nagios overlord.oucs.ox.ac.uk/nagios

Feature creep Transient data, e.g. port state We have Nagios A PITA to configure and manage Need a fast, simple, transient data storage facility

Memcached Distributed memory object caching Designed to cache teh Intarweb v. fast Simple Perl API Transient storage - data TTL

YATG Memcached Storage YATG Poller List of device IPs Port list per device IP_port_OID = $value Memcached client (magic) Memcached server

Nagios, meet YATG Nagios check Nagios knows devices Port list per device $value = IP_port_OID Memcached client Memcached server

Crunch time ~7200 ports, 300+ devices 5 minute polling interval 24 seconds to poll these ports 11 OIDs 9 seconds to store, over the network Mix of disk and memcached Dual 2.8Gig Xeon, 4GB RAM

Eye candy YATG::Retrieve::RPC/Disk Grab a time-slice of data from disk Chartdirector Not Free nor Open, but is cheap and quite brilliant!

YATG comms.oucs.ox.ac.uk/netdisco

Invented Here Netdisco Nagios Some Perl modules YATG poller Chartdirector

Fin.