Final Project SNMP. Computer Center, CS, NCTU 2 Introduction  Use SNMP to collect system information and graph with RRDTool  Prerequisites SNMP software.

Slides:



Advertisements
Similar presentations
How to monitor the $H!T out of Hadoop Developing a comprehensive open approach to monitoring hadoop clusters.
Advertisements

© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 8: Monitoring the Network Connecting Networks.
1 CHEP 2000, Roberto Barbera Roberto Barbera (*) Grid monitoring with NAGIOS WP3-INFN Meeting, Naples, (*) Work in collaboration with.
Network Management Workshop intERlab at AIT Thailand March 11-15, 2008 Network Operations and Network Management.
MONITORING TOOLS Open Source Security Tools to monitor your network.
Cacti Workshop Tony Roman Agenda What is Cacti? The Origins of Cacti Large Installation Considerations Automation The Current.
COMM Data Structures Fall COMM Data Structures What is data structure? Ans: 探討一群相關資料的資料表示方法與資料運作方法 Objective 使用最有效率的方式, 對一群相關資料進行處理 Programs = Data.
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.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
Introduction to SNMP AfNOG 11, Kigali/Rwanda.
NAV A comprehencive network management tool Vidar Faltinsen NTNU, Trondheim, Norway.
1 Network Statistic and Monitoring System Wayne State University Division of Computing and Information Technology Information Technology.
Temperature Monitoring System Open Source all the way! Jim Owens.
OASIS V2+ Next Generation Open Access Server CSD 2006 / Team 12.
Cacti. Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides.
Network-based localized Mobility Management (NETLMM)
System Administration. Computer Center, CS, NCTU 2 What System Administrator Should do? (1)  Ordinary list Install new system, programs and OS updates.
MRTG Speaker: Yan-Shiang Wang Adviser: Quincy Wu Date: 2005/11/23.
Hsu Chun-Hung Network Benchmarking Lab
© 2006 ITT Educational Services Inc. IT412 Voice and Data Integration : Unit 10 Slide 1 Unit 10 Designing and Implementing VoIP Networks - Security and.
Network Monitoring Chapter 20.
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.
workshop eugene, oregon What is network management? System & Service monitoring  Reachability, availability Resource measurement/monitoring.
Contents 1.Introduction, architecture 2.Live demonstration 3.Extensibility.
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.
Distributed monitoring system. Why Monitor? Solve them! Identify Problems Ensure conduct Requirements Manage many computers Spot trends in the system.
System Administration HW2 Shell Script xclin. Computer Center, CS, NCTU 2 Requirements  Xferlog statistics (15%) use one-line command to show FTP transfer.
Ch 10 Monitoring NCNU CSIE 林似真 Stella. NCNU CSIE Stella2010/6/82 ganglia.
SNMP Simple Network Management Protocol. Computer Center, CS, NCTU 2 Network Management  The network management is to Monitor the network Ensure the.
1 Network Measurement Summary ESCC, Feb Joe Metzger ESnet Engineering Group Lawrence Berkeley National Laboratory.
APRICOT 2008 Network Management Taipei, Taiwan February 20-24, 2008 Introduction to SNMP.
New Delhi, India Smokeping/Cacti/Munin SANOG 10 Workshop August 29-Sep 2 – New Delhi, India Hervey Allen.
Homework 02 NAT 、 DHCP 、 Firewall 、 Proxy. Computer Center, CS, NCTU 2 Basic Knowledge  DHCP Dynamically assigning IPs to clients  NAT Translating addresses.
Homework 03 DNS. Computer Center, CS, NCTU 2 Architecture ns.a.nctucs.net a.a /24 ns.b.nctucs.net b.b /24 slave.
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.
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.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Filtering Traffic Using Access Control Lists Introducing Routing and Switching.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
MRTG / RRDTool Network Management Workshop intERlab at AIT Thailand March 11-15, 2008.
Network Administration. Computer Center, CS, NCTU 2 Syllabus  Website:  Instructors: 翁綜禧
Model: DS-600 5x 10/100/1000Mbps Ethernet Port Centralized WLAN management and Access Point Discovery Manages up to 50 APs with access setting control.
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 Deploying Measurement Systems in ESnet Joint Techs, Feb Joseph Metzger ESnet Engineering Group Lawrence Berkeley National Laboratory.
1 Introduction to RRDTool Speaker: Yan-Shiang Wang Date:
Npush agent deployment Yancy Ribbens
CSCF Cacti Project
OPEN SOURCE NETWORK MANAGEMENT TOOLS
Network Management Workshop June 2009 Papeete, French Polynesia
Simple Network Management Protocol
APRICOT 2008 Network Management Taipei, Taiwan February 20-24, 2008
Network Management Workshop
MRTG / RRDTool Network Management Workshop June 2009
Network Management Workshop November 2009 Nadi, Fiji
Smokeping/Cacti/Munin
Network Management Workshop June 2009 Papeete, French Polynesia
Network Monitoring & Management Tutorial
How to use mrtg to monitor traffic on your wireless and wired network
SANOG 10 Workshop August New Delhi, India
Network and Server Statistics using Cacti AfNOG May Hervey Allen
Chapter 8: Monitoring the Network
Network Management Workshop intERlab at AIT Thailand March 11-15, 2008
Computer Network Administration
Presentation transcript:

Final Project SNMP

Computer Center, CS, NCTU 2 Introduction  Use SNMP to collect system information and graph with RRDTool  Prerequisites SNMP software  net-mgmt/net-snmp Graphing  databases/rrdtool

Computer Center, CS, NCTU 3 Net-SNMP  An extendable SNMP implementation  Command snmpget snmpset snmpwalk …etc  Turotials

Computer Center, CS, NCTU 4 RRDTool  Round-robin database  Data logging / graphing Known for its pretty graphing  Easy integration Bindings for Python, Perl, Ruby, Lua … Command line tools also enable integration with shell scripts  Documentation

Computer Center, CS, NCTU 5 RRDTool – Compared with MRTG  MRTG  RRDTool

Computer Center, CS, NCTU 6 RRDTool – Flow  Create Create a new RRD $ rrdtool create  Fetch data Via SNMP, external programs… etc  Update Update the data $ rrdtool update  Graph Graph the result $ rrdtool graph fetch data update graphing create RRD file

Computer Center, CS, NCTU 7 RRDTool – Create /usr/local/bin/rrdtool create \ /usr/local/share/cacti/rra/ggyy.rrd \ --step 300 \ DS:5min_cpu:GAUGE:600:0:100 \ RRA:AVERAGE:0.5:1:600 \ RRA:AVERAGE:0.5:6:700 \ RRA:AVERAGE:0.5:24:775 \ RRA:AVERAGE:0.5:288:797 \ RRA:MAX:0.5:1:600 \ RRA:MAX:0.5:6:700 \ RRA:MAX:0.5:24:775 \ RRA:MAX:0.5:288:797 \

Computer Center, CS, NCTU 8 RRDTool – Create (Cont.)  Data source (DS) DS:ds-name:DS Type:DST arguments e.g. DS:5min_cpu:GAUGE:600:0:100  Round-robin archive (RRA) RRA:Consolidation Function:CF arguments e.g. RRA:AVERAGE:0.5:288:797

Computer Center, CS, NCTU 9 RRDTool – Update  Use SNMP or other external program to get the value Inflow=`snmpget -c public ifInOctets.1` data=`hexdump -n4 -e\"%u\" /dev/random`  Updating would be combined with graphing This poller should be invoked every ${step} sec. #### update.sh #### # update Data=`get some value` # graph rrdtool graph ${PIC} …

Computer Center, CS, NCTU 10 RRDTool – Graph /usr/local/bin/rrdtool graph \ Aabbabc.png \ --title=‘Router' \ DEF:a="/usr/local/share/cacti/rra/ggyy.rrd":5min_cpu:AVERAGE \ AREA:a#FF0000FF:"CPU Usage" \ GPRINT:a:LAST:"Current\:%8.0lf" \ GPRINT:a:AVERAGE:"Average\:%8.0lf" \ GPRINT:a:MAX:"Maximum\:%8.0lf\n"

Computer Center, CS, NCTU 11 Requirement  Access control Use difference community name for RO / RW  Use RRDTool to monitor & graph host’s status CPU usage Memory usage Uptime Interface netflow (input/output)  Enable snmptrapd to receive traps Specify and implement a handler for a specific OID

Computer Center, CS, NCTU 12 Bonus – Cacti with Plugin Architecture  Install Cacti with PA support  Import and organize existing RRDs

Computer Center, CS, NCTU 13 Hand-in  Due 6/23  Demo TBA

Appendix SNMP related use case in CSCC

Computer Center, CS, NCTU 15 Switch Management – Interface Shutdown  情境 : 電資有小白在衝 ip  Solution 1 拔他線  電資超遠, 下雨天不想出門 …  Solution 2 從上層 ban 掉他 mac  同一台 L2 switch 下的使用者表示遺憾 …  Solution 3 從 switch 上 ban 掉 !  $ snmpset -v1 -c letmein interfaces.ifTable.ifEntry.ifAdminStatus.123 i 2

Computer Center, CS, NCTU 16 Switch Management – 斷網  Similar to shutting down an interface  Move some ports to restricted VLANs Only do NAT for non-restricted VLANs 802.1Q support in FreeBSD VLAN 56 (allowed) VLAN 78 (restricted) 330 Trunk NAT pass block

Computer Center, CS, NCTU 17 Monitoring – Cacti  50+ switches…