Using RRDtool to graph sensor's data

Slides:



Advertisements
Similar presentations
26/05/2004HEPIX, Edinburgh, May Lemon Web Monitoring Miroslav Šiket CERN IT/FIO
Advertisements

Introduction to ReportSmith and Effective Dated Tables
1 (Ab-) using Round Robin Databases with Perl Mike Schilli, Yahoo! 06/18/2008.
CTS130 Spreadsheet Lesson 20 Data Consolidation. Consolidation is a process in which data from multiple worksheets or workbooks is combined and summarized.
About RRDtool Tobias Oetiker OETIKER+PARTNER AG
Bellevue University CIS 205: Introduction to Programming Using C++ Lecture 3: Primitive Data Types.
2008 Mérida, Venezuela Papeete, Tahiti Network and Server Statistics using Cacti PacNOG5 17 June 2009 Hervey Allen.
Developing Your Own Plugin With Your Imagination Rodrigo Faria
Chapter 1 Sections 1.3 & 1.4.
1 Network Statistic and Monitoring System Wayne State University Division of Computing and Information Technology Information Technology.
Seminar for Top Engineering Prospects.  ~step/class_material.
Temperature Monitoring System Open Source all the way! Jim Owens.
Notes from 8/29/13. T-Charts (cont.)  Check Units!  For given information (2), check that same quantities have the same unit (ex. time: s and min should.
© 2012 MISTRAS GROUP, INC. ALL RIGHTS RESERVED. DISSEMINATION, UNAUTHORIZED USE AND/OR DUPLICATION NOT PERMITTED. TankReporter 2.0 A Step by Step Example.
Hsu Chun-Hung Network Benchmarking Lab
Extents, segments and blocks in detail. Database structure Database Table spaces Segment Extent Oracle block O/S block Data file logical physical.
Consolidate Consolidate Multiple Worksheets to a Single Sheet in Excel.
Introduction to MySQL Lab no. 10 Advance Database Management System.
Network and Server Statistics using Cacti. Introduction A tool to monitor, store and present network and system/server statistics Designed around RRDTool.
Copyright © 2006 by Maribeth H. Price 8-1 Chapter 8 Geoprocessing.
CSCI N201 Programming Concepts and Database 3 – Essence of Computing Lingma Acheson Department of Computer and Information Science, IUPUI.
The Standard Deviation as a Ruler and the Normal Model
Graphing and statistics with Cacti AfNOG 11, Kigali/Rwanda.
G.Corti, P.Robbe LHCb Software Week - 19 June 2009 FSR in Gauss: Generator’s statistics - What type of object is going in the FSR ? - How are the objects.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
What are queries? Queries are a way of searching for and compiling data from one or more tables. Running a query is like asking a detailed question of.
RRDtool Miroslav Siket FIO-FS /
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.
AFFAIR – fabric monitoring ROOT 2005 Tome Antičić Ruđer Bošković Institute, Zagreb,Croatia ALICE,CERN Tome Antičić Ruđer Bošković.
Combining Hot, cold, and warm water! By: Matt and Monica.
Guide to Linux Installation and Administration, 2e1 Chapter 11 Using Advanced Administration Techniques.
September 15, 2014 What are we doing today? Compare and Contrast: Ravens/Crows/Magpies -Final Day! -We’ll look at a few of your presentations Due: C &
1 Computing for Todays Lecture 21 Yumei Huo Spring 2006.
CHAPTER # 2 Part 2 PROGRAMS AND DATA 1 st semster King Saud University College of Applied studies and Community Service CSC1101 By: Asma Alosaimi.
APRICOT 2010 Kuala Lumpur, Malaysia
2.1.1 Calling Plans day 3 Unit 2: Linear Relationships SWBAT: Compare calling plans by using graphs, tables, and equations.
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
Remember…  Please do not…  Change the background.  Change the icons.  Change the font. Use Times New Roman (size 12 font).  Use color. We cannot print.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
Sinusoidal Graphs and Values …and how to apply them to real-life problems.
Introduction to Programming Python Lab 3: Arithmetic 22 January PythonLab3 lecture slides.ppt Ping Brennan
Exercise 1 #include int main() { printf(“Hello C Programming!\n”); return 0; } 1.Run your Visual Studio 2008 or Create a new “project” and add.
 Introduction  Tripwire For Servers  Tripwire Manager  Tripwire For Network Devices  Working Of Tripwire  Advantages  Conclusion.
MRTG / RRDTool Network Management Workshop intERlab at AIT Thailand March 11-15, 2008.
Advanced Charts Lesson 9. Objectives 1. Create charts by using data from other applications. 2. Modify chart types. 3. Add and modify chart options. 4.
Chapter 2 Data Analysis. Units of Measurement Metric System The system of measurement used by Scientists Base unit modified by factor of 10 English System.
Homework 5 DNS 、 HTTPD 、 SNMP. Requirements One dedicated domain name for yourself Setup DNS server with following records  SOA, NS, MX  Make them reasonable.
259 Lecture 5 Spring 2016 Mathematical Functions in Excel.
Introduction to Omnet++ By: Mahsa Soheil Shamaee.
Pre-AP 3/7 Pick up ALL THREE PAPERS FROM THE SIDE TABLE Today we will start the gas law unit AFTER we discuss test results. You will need something to.
Final Project SNMP. Computer Center, CS, NCTU 2 Introduction  Use SNMP to collect system information and graph with RRDTool  Prerequisites SNMP software.
1 Introduction to RRDTool Speaker: Yan-Shiang Wang Date:
2008 Mérida, Venezuela 2009 Manila, Philippines Network and Server Statistics using Cacti APRICOT February 2009 Hervey Allen.
Introduction to Programming
Chapter # 2 Part 2 Programs And data
Network Management Workshop
System Monitoring with Lemon
Creating Custom Reports, Macros, and Switchboards
MRTG / RRDTool Network Management Workshop June 2009
Data Visualizer.
Smokeping/Cacti/Munin
Introduction to Programming
Network Monitoring & Management Tutorial
Network and Server Statistics using Cacti AfNOG May Hervey Allen
How to construct a Table and Graph
MAINTAINING SERVER AVAILIBILITY
Lesson 23 Getting Started with Access Essentials
Graphing in Science.
Unit 2 – Graphical Representation
Presentation transcript:

Using RRDtool to graph sensor's data Jia-Wei 2016/02/02

Outline Introduction of RRDtool(Round Robin Database tool) CF (Consolidation Functions) and RRA (Round Robin Archives ) Using RRDtool to graph sensors’ data Equipment Step (1) Step (2) Step (3) Demo Conclusion

Introduction of RRDtool RRDtool(Round Robin Database tool) is the OpenSource high performance data logging and graphing system for time series data. RRDtool can be easily integrated in shell scripts, Python or TCL applications. Time Series Data : Every piece of data is associate with a point in time

Round Robin Database In case of linear databases, new data gets appended at the bottom of the database table. Thus its size keeps on increasing. RRDtool’s data is added along the perimeter. When new data reaches the starting point, it overwrites existing data. This way, the size of an RRDtool database always remains constant. 為了remain constan => CF and RRA

CF and RRA Consolidation Functions(CF) determine how the data is converted to other timescales. Round Robin Archives (RRA) directive defines how many values the RRD database will archive and for how long. => RRA guarantees that the RRD does not grow over time and that old data is automatically eliminated. Minimum Maximum Average Last Using different consolidation functions (CF) allows you to store exactly the type of information that actually interests you in RRA.

CF and RRA (cont.) Archive KK[ˋɑrkaɪv] 檔案;文件;記錄

Using RRDtool to graph sensors’ data Step 0 : Equipment and sensors’ data Step 1 : Create RRD file Step 2 : Cron job and rrdtool update (adding data to the rrd database) Step 3 : Graph

Equipment Digital relative humidity and temperature sensor AM2302/DHT22 Raspberry Pi http://ms14.voip.edu.tw/~wei0923/Files/Sensor/DHT22/ Goal : Monitor the temperature and relative-humidity in Lab 409

Using RRDtool to graph sensors’ data – (1) Interval time 300 s = 5 mins Step 1 : Create RRD file rrdtool create test.rrd --start N --step 300 \ DS:temp:GAUGE:600:0:50 \ DS:humi:GAUGE:600:0:100 \ RRA:MAX:0.5:1:288 RRA:AVERAGE:0.5:1:288 Now GAUGE : Absolute data that shouldn’t be modified in any way by rrdtool Add a Data Source called temp which has values between 0 and 50 ( large enough for inside temp in degrees Celsius ) . heartbeat timeout The heartbeat determines how many undefined values are tolerated. The step size specifies how often data samples are saved. 0.5 is an internal resolution value and should _not_ be changed. Add a Data Source called humi. CF 1 specifies how many steps should be averaged before storing the final value. 288 means the number of steps that we will store in database 1*300s*288 = 86400s = 1 day !

Using RRDtool to graph sensors’ data – (2) Step 2 : Cron job and rrdtool update (adding data to the rrd database) Put rrdtool update commands in shell script rrdtool update test.rrd N:$temperature:$humidity Put the script in cron job and execute every 5 minutes */5 * * * * sh /home/update.sh c. After you finishing the works above, the data would be added in rrd database every 5 minutes! Value 1 Value 2 N : use current time as timestamp

Using RRDtool to graph sensors’ data – (3) Step 3 : Graph rrdtool graph $now-Temp.png -w 785 -h 120 \ -a PNG \ --title "Temperature in Lab 409" \ --vertical-label "Temperature (°C)" \ DEF:VAR=test.rrd:temp:MAX \ LINE2:VAR#ff0000:"Temperature" \ COMMENT:"Last Updated - $now" 'GPRINT:temp:MAX:Temp Max \: %2.0lf' \ 'GPRINT:temp:MIN:Temp MIN \: %2.0lf' \ Width and Heigh X axis Define a variable VAR from the database we will use to graph. Printf : http://linux.vbird.org/linux_basic/0330regularex.php#printf

1/30 Sat. 15:30 ~ 1/31 Sun. 15:30

Today I arrived in Lab at 9:00 a.m. 1/31 Sun. 18:00 ~ 2/2 Tue. 11:00

RRDtool Conclusion RRDtool is very flexible. You can freely determine how many data you want to show in your graph. MRTG is simpler and more easier to use than RRDtool , but there are some drawbacks in MRTG : Cannot combine different sensors into one graph to analysis. A graph only shows the data from a single sensor. Cannot choose the interval that you want. MRTG