SlideShare a Scribd company logo
1 of 42
Download to read offline
Monitoring your
Infrastructure using Open
Source ToolsSource Tools
by Greg Greenlee
greg@blacksintechnology:~$ whoami
● Founder of Blacks In Technology
organization
● Systems Engineer● Systems Engineer
● FOSS lover
● Avid comic book reader (Marvel)
● Father
● Husband
What is Open Source Software?
● Source code is openly shared
● Licensed to allow freedom to modify, copy,● Licensed to allow freedom to modify, copy,
study
Why Open Source?
● Pros
o Free (as in beer) and sometimes not
o code open to modification
o vulns are detected and fixed quickero vulns are detected and fixed quicker
o entire community working on it (depends on
popularity)
● Cons
o documentation sometimes lacks
o may prove difficult to implement
Why monitor?
● You want to know when something goes wrong
● Insight into your environment
o proactive
● Business needs● Business needs
o analytics
o trending data
● Event correlation
Tools to monitor your infrastructure
● Nagios (monitoring and alerting)
● ELK Stack (log aggregation, search and analysis)
o ElasticSearch (search engine based on Lucene)
Logstasho Logstash (log aggregator and manipulator)
o Kibana (front end)
● Cacti (data graphing)
● NagVis (visualization)
● nTopNG (protocol analyzer)
Nagios
● Created by Ethan Galstad (1999) - originally called NetSaint
● http://www.nagios.org
● http://www.nagios.org/download
● Very customizable
● Nagios XI
o standard and enterprise edition (http://www.nagios.com/products/nagiosxi/edition-comparison)
o aids in large scale configuration, reporting
o includes support services (http://www.nagios.com/products/nagiosxi/pricing)
● Nagios core
o free
o can purchase support
What does Nagios do?
Monitors and alerts
What can Nagios monitor?
1. Applications
2. Network services (smtp, http, dns, ssh….)
3. Hosts
4. Host resources (disk, cpu, memory, processes)4. Host resources (disk, cpu, memory, processes)
5. Web sites
6. Sensors (temperature, humidity, power consumption..)
7. Just about anything you can write a script for!!!
How does Nagios monitor?
● Local plugins
o network services are running
● Remote plugins (NRPE NSClient++)
o disk utilizationo disk utilization
o memory utilization
o cpu utiliziation
● Custom Scripts (Perl, Python, Bash, etc.)
● More plugins and nagios goodness
o http://exchange.nagios.org/#/
How does it work?
Uses a host to service relationship
● Hosts (switch, router, server, sensors)
● Service (http, dns, temperature, ping, ftp)
Uses traffic light system to indicate stateUses traffic light system to indicate state
● Red - critical
● Yellow - warning
● Green - ok
How does it work cont’d
Makes use of configuration files
● templates
● hosts and host groups● hosts and host groups
● services and services groups
● contacts and contact groups
● notifications
● escalations
Host and service config file
# Host definition
define host{
use generic-host ; Name of host template to
use
host_name domain-
server-1
alias Name
Server
address x.x.x.x
check_command check-host-
alive
hostgroups fakegroup
# Service definition
define service{
use generic-service ; Name of service template to
use
host_name domain-server-1
service_description DNS
is_volatile
0
check_period 24x7
max_check_attempts 3
normal_check_interval 1
retry_check_interval 1
# 'check_dns' command definition
define command{
command_name check_dns
command_line $USER1$/check_dns
-H www.profitability.net -s $HOSTADDRESS$
}
hostgroups fakegroup
contact_groups novell-
admins
max_check_attempts 10
notification_interval 30
notification_period 24x7
notification_options d,u,r
parents internalswitch-4-3-7-1
}
retry_check_interval 1
contact_groups novell-admins
notification_interval 30
notification_period 24x7
notification_options w,u,c,r,f,s
check_command check_dns
}
How does it look?
ping check
ping check
● service check
○ http
○ ftp
How do I get alerts?
email
text
IMIM
Nagios demoNagios demo
ELK Stack (log aggregation and analysis)
● Elasticsearch (Apache Lucene search engine)
● Logstash (collects and parses logs)● Logstash
● Kibana (front end gui allows you to visualize data)
Why do we need centralized log server?
● Easy to find stuff
● Everything has logs
o operating systemso operating systems
o applications
o devices
● Correlation of events
● Insight into environment
Elasticsearch
● http://www.elasticsearch.org/
● based on Apache Lucene
● indexes data
● full text search
● distributed (scales out)
● highly available (can build clusters)
● schema free (tries to structure data)
● real time data
Elasticsearch DemoElasticsearch Demo
look at Elasticsearch Head
Logstash
Created by Jordan Sissel
Allows you to ingest data from anywhere (input)Allows you to ingest data from anywhere (input)
Centralizes and parses log data (filter)
Display data (output)
logstash
● input
o syslog
o file
o tcp
o udp
o eventlog
o twitter
o irco irc
● filter (modifies)
o grok (parses unstructured data)
o mutate (mutates your events such as renaming, replacing, modifying fields)
● output
o csv
o email
o file
o elasticsearch
o http
flow of data
input
(tcp, syslog, file)
filter
(grok, mutate)
output
(stdout,
elasticsearch)
Logstash format
input {
tcp {
port => 5000
type => syslog
}
udp {
port => 5000
type => syslog
}
}
filter {
if [type] == "syslog" {if [type] == "syslog" {
grok {
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:[%{POSINT:syslog_pid}])?:
%{GREEDYDATA:syslog_message}" }
add_field => [ "received_at", "%{@timestamp}" ]
add_field => [ "received_from", "%{host}" ]
}
syslog_pri { }
date {
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
}
}
}
output {
elasticsearch { host => localhost }
stdout { codec => rubydebug }
}
Kibana
● visualization tool
● interact with your data in real time● interact with your data in real time
● drill down and view only data you want
● make sense of your data
o bar or line graphs, maps and pie charts
ELK stack demoELK stack demo
NagVis
● http://www.nagvis.org/
● Nagios add on visualisation tool
o allows you to visualize Nagios data
● Allows you to create maps of your IT environment● Allows you to create maps of your IT environment
● Allows you to visualize work flows and processes
● create graphic out of performance data
o disk usage
o cpu usage
Nagvis screenshots
Nagvis demoNagvis demo
Cacti
● http://www.cacti.net/
● front end for RRDTool (Round Robin Database)
o records data in intervals
o graphs data pointso graphs data points
● Useful for seeing data trends
o bandwidth
o power consumption
o cpu usage
o memory usage
Cacti demoCacti demo
nTOPng
http://www.ntop.org/
Network traffic probe and analyzer
Based on original ntop
Supported platforms (Windows and Unix)
● Sort network traffic according to many protocols
● Show network traffic and IPv4/v6 active hosts
● Store on disk persistent traffic statistics in RRD format
● Geolocate hosts
● Analyse IP traffic and sort it according to the source/destination
● Display IP Traffic Subnet matrix (who’s talking to who?)
● Report IP protocol usage sorted by protocol type
● Act as a NetFlow/sFlow collector for flows generated by routers (e.g. Cisco and Juniper) or switches (e.g.
Foundry Networks) when used together with nProbe.
● Produce HTML5/AJAX network traffic statistics
What can you do with nTOPng?
● Network troubleshooting
● Drill down into traffic flows
o source and destination ip address
o source and destination porto source and destination port
o bandwidth
o protocol
o application
nTOPng screen shotsnTOPng screen shots
nTopNG set up
Thank you!!!
email: greg@blacksintechnology.net
twitter: @blkintechnology
facebook: http://www.facebook.com/blacksintechnology
website: http://www.blacksintechnology.netwebsite: http://www.blacksintechnology.net
LinkedIn: Blacks In Technology
????????????

More Related Content

What's hot

Presto in my_use_case2
Presto in my_use_case2Presto in my_use_case2
Presto in my_use_case2
wyukawa
 
Real time indexes in Sphinx, Yaroslav Vorozhko
Real time indexes in Sphinx, Yaroslav VorozhkoReal time indexes in Sphinx, Yaroslav Vorozhko
Real time indexes in Sphinx, Yaroslav Vorozhko
Fuenteovejuna
 

What's hot (20)

Presto in my_use_case2
Presto in my_use_case2Presto in my_use_case2
Presto in my_use_case2
 
Introduction to Apache Tajo: Data Warehouse for Big Data
Introduction to Apache Tajo: Data Warehouse for Big DataIntroduction to Apache Tajo: Data Warehouse for Big Data
Introduction to Apache Tajo: Data Warehouse for Big Data
 
Logging for OpenStack - Elasticsearch, Fluentd, Logstash, Kibana
Logging for OpenStack - Elasticsearch, Fluentd, Logstash, KibanaLogging for OpenStack - Elasticsearch, Fluentd, Logstash, Kibana
Logging for OpenStack - Elasticsearch, Fluentd, Logstash, Kibana
 
Log aggregation and analysis
Log aggregation and analysisLog aggregation and analysis
Log aggregation and analysis
 
Apache Tajo on Swift: Bringing SQL to the OpenStack World
Apache Tajo on Swift: Bringing SQL to the OpenStack WorldApache Tajo on Swift: Bringing SQL to the OpenStack World
Apache Tajo on Swift: Bringing SQL to the OpenStack World
 
ELK - Stack - Munich .net UG
ELK - Stack - Munich .net UGELK - Stack - Munich .net UG
ELK - Stack - Munich .net UG
 
Elasticsearch - DevNexus 2015
Elasticsearch - DevNexus 2015Elasticsearch - DevNexus 2015
Elasticsearch - DevNexus 2015
 
Introduction to Apache Tajo: Future of Data Warehouse
Introduction to Apache Tajo: Future of Data WarehouseIntroduction to Apache Tajo: Future of Data Warehouse
Introduction to Apache Tajo: Future of Data Warehouse
 
Real time indexes in Sphinx, Yaroslav Vorozhko
Real time indexes in Sphinx, Yaroslav VorozhkoReal time indexes in Sphinx, Yaroslav Vorozhko
Real time indexes in Sphinx, Yaroslav Vorozhko
 
Bringing the Semantic Web closer to reality: PostgreSQL as RDF Graph Database
Bringing the Semantic Web closer to reality: PostgreSQL as RDF Graph DatabaseBringing the Semantic Web closer to reality: PostgreSQL as RDF Graph Database
Bringing the Semantic Web closer to reality: PostgreSQL as RDF Graph Database
 
PostgreSQL and Sphinx pgcon 2013
PostgreSQL and Sphinx   pgcon 2013PostgreSQL and Sphinx   pgcon 2013
PostgreSQL and Sphinx pgcon 2013
 
Logstash family introduction
Logstash family introductionLogstash family introduction
Logstash family introduction
 
Spark Workflow Management
Spark Workflow ManagementSpark Workflow Management
Spark Workflow Management
 
ElasticSearch - DevNexus Atlanta - 2014
ElasticSearch - DevNexus Atlanta - 2014ElasticSearch - DevNexus Atlanta - 2014
ElasticSearch - DevNexus Atlanta - 2014
 
Apache Spark 101 - Demi Ben-Ari
Apache Spark 101 - Demi Ben-AriApache Spark 101 - Demi Ben-Ari
Apache Spark 101 - Demi Ben-Ari
 
Logging Application Behavior to MongoDB
Logging Application Behavior to MongoDBLogging Application Behavior to MongoDB
Logging Application Behavior to MongoDB
 
HDP2 and YARN operations point
HDP2 and YARN operations pointHDP2 and YARN operations point
HDP2 and YARN operations point
 
An Introduction to Apache Cassandra
An Introduction to Apache CassandraAn Introduction to Apache Cassandra
An Introduction to Apache Cassandra
 
Treasure Data Cloud Strategy
Treasure Data Cloud StrategyTreasure Data Cloud Strategy
Treasure Data Cloud Strategy
 
Onyx data processing the clojure way
Onyx   data processing  the clojure wayOnyx   data processing  the clojure way
Onyx data processing the clojure way
 

Viewers also liked

Future software-open-source-programming-languages
Future software-open-source-programming-languagesFuture software-open-source-programming-languages
Future software-open-source-programming-languages
Infotrex Services Pvt. Ltd.
 

Viewers also liked (20)

Open Source Automated Documentation in a Development Environment
Open Source Automated Documentation in a Development EnvironmentOpen Source Automated Documentation in a Development Environment
Open Source Automated Documentation in a Development Environment
 
Open Source Software and Libraries: Practical Applications [panel discussion]
Open Source Software and Libraries: Practical Applications [panel discussion]  Open Source Software and Libraries: Practical Applications [panel discussion]
Open Source Software and Libraries: Practical Applications [panel discussion]
 
RubyonRails Development
RubyonRails DevelopmentRubyonRails Development
RubyonRails Development
 
Developing for Developers
Developing for DevelopersDeveloping for Developers
Developing for Developers
 
Future software-open-source-programming-languages
Future software-open-source-programming-languagesFuture software-open-source-programming-languages
Future software-open-source-programming-languages
 
Top programming languages in open source software
Top programming languages in open source softwareTop programming languages in open source software
Top programming languages in open source software
 
Open Source Tools for Libraries
Open Source Tools for LibrariesOpen Source Tools for Libraries
Open Source Tools for Libraries
 
Open source Tools and Frameworks for M2M - Sierra Wireless Developer Days
Open source Tools and Frameworks for M2M - Sierra Wireless Developer DaysOpen source Tools and Frameworks for M2M - Sierra Wireless Developer Days
Open source Tools and Frameworks for M2M - Sierra Wireless Developer Days
 
Agile2011 20min-final
Agile2011 20min-finalAgile2011 20min-final
Agile2011 20min-final
 
Open source tools for Incident Response bogota 2016
Open source tools for Incident Response  bogota 2016Open source tools for Incident Response  bogota 2016
Open source tools for Incident Response bogota 2016
 
Pre-Con Lab: Test Automation Across Nine Open Source Tools—Taurus
Pre-Con Lab: Test Automation Across Nine Open Source Tools—TaurusPre-Con Lab: Test Automation Across Nine Open Source Tools—Taurus
Pre-Con Lab: Test Automation Across Nine Open Source Tools—Taurus
 
Use of open source database and open source tools for Library and Information...
Use of open source database and open source tools for Library and Information...Use of open source database and open source tools for Library and Information...
Use of open source database and open source tools for Library and Information...
 
Data Visualization Strategies & Open Source Tools
Data Visualization Strategies & Open Source ToolsData Visualization Strategies & Open Source Tools
Data Visualization Strategies & Open Source Tools
 
11 Tools for your Open Source devops stack
11 Tools for your Open Source devops stack 11 Tools for your Open Source devops stack
11 Tools for your Open Source devops stack
 
Ágiles 2016 - Using open source tools to support Continuous Delivery
Ágiles 2016 - Using open source tools to support Continuous DeliveryÁgiles 2016 - Using open source tools to support Continuous Delivery
Ágiles 2016 - Using open source tools to support Continuous Delivery
 
Open Source Tools Are Good For You!
Open Source Tools Are Good For You!Open Source Tools Are Good For You!
Open Source Tools Are Good For You!
 
Volunteering at YouSee on Technology Support
Volunteering at YouSee on Technology SupportVolunteering at YouSee on Technology Support
Volunteering at YouSee on Technology Support
 
What every successful open source project needs
What every successful open source project needsWhat every successful open source project needs
What every successful open source project needs
 
Mongo db - How we use Go and MongoDB by Sam Helman
Mongo db - How we use Go and MongoDB by Sam HelmanMongo db - How we use Go and MongoDB by Sam Helman
Mongo db - How we use Go and MongoDB by Sam Helman
 
7 Common Mistakes in Go (2015)
7 Common Mistakes in Go (2015)7 Common Mistakes in Go (2015)
7 Common Mistakes in Go (2015)
 

Similar to Handout: 'Open Source Tools & Resources'

Building a Next-gen Data Platform and Leveraging the OSS Ecosystem for Easy W...
Building a Next-gen Data Platform and Leveraging the OSS Ecosystem for Easy W...Building a Next-gen Data Platform and Leveraging the OSS Ecosystem for Easy W...
Building a Next-gen Data Platform and Leveraging the OSS Ecosystem for Easy W...
StampedeCon
 
Apache Storm Concepts
Apache Storm ConceptsApache Storm Concepts
Apache Storm Concepts
André Dias
 

Similar to Handout: 'Open Source Tools & Resources' (20)

Monitoring Big Data Systems - "The Simple Way"
Monitoring Big Data Systems - "The Simple Way"Monitoring Big Data Systems - "The Simple Way"
Monitoring Big Data Systems - "The Simple Way"
 
Eko10 - Security Monitoring for Big Infrastructures without a Million Dollar ...
Eko10 - Security Monitoring for Big Infrastructures without a Million Dollar ...Eko10 - Security Monitoring for Big Infrastructures without a Million Dollar ...
Eko10 - Security Monitoring for Big Infrastructures without a Million Dollar ...
 
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
 
Archivematica Technical Training Diagnostics Guide (September 2018)
Archivematica Technical Training Diagnostics Guide (September 2018)Archivematica Technical Training Diagnostics Guide (September 2018)
Archivematica Technical Training Diagnostics Guide (September 2018)
 
Understanding Hadoop
Understanding HadoopUnderstanding Hadoop
Understanding Hadoop
 
Data engineering Stl Big Data IDEA user group
Data engineering   Stl Big Data IDEA user groupData engineering   Stl Big Data IDEA user group
Data engineering Stl Big Data IDEA user group
 
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...
 
Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...
Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...
Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...
 
Machine learning and big data @ uber a tale of two systems
Machine learning and big data @ uber a tale of two systemsMachine learning and big data @ uber a tale of two systems
Machine learning and big data @ uber a tale of two systems
 
Apache Avro in LivePerson [Hebrew]
Apache Avro in LivePerson [Hebrew]Apache Avro in LivePerson [Hebrew]
Apache Avro in LivePerson [Hebrew]
 
GraphGen: Conducting Graph Analytics over Relational Databases
GraphGen: Conducting Graph Analytics over Relational DatabasesGraphGen: Conducting Graph Analytics over Relational Databases
GraphGen: Conducting Graph Analytics over Relational Databases
 
GraphGen: Conducting Graph Analytics over Relational Databases
GraphGen: Conducting Graph Analytics over Relational DatabasesGraphGen: Conducting Graph Analytics over Relational Databases
GraphGen: Conducting Graph Analytics over Relational Databases
 
Interactive Data Analysis in Spark Streaming
Interactive Data Analysis in Spark StreamingInteractive Data Analysis in Spark Streaming
Interactive Data Analysis in Spark Streaming
 
Security Monitoring for big Infrastructures without a Million Dollar budget
Security Monitoring for big Infrastructures without a Million Dollar budgetSecurity Monitoring for big Infrastructures without a Million Dollar budget
Security Monitoring for big Infrastructures without a Million Dollar budget
 
Building a Next-gen Data Platform and Leveraging the OSS Ecosystem for Easy W...
Building a Next-gen Data Platform and Leveraging the OSS Ecosystem for Easy W...Building a Next-gen Data Platform and Leveraging the OSS Ecosystem for Easy W...
Building a Next-gen Data Platform and Leveraging the OSS Ecosystem for Easy W...
 
AWS Big Data Demystified #1: Big data architecture lessons learned
AWS Big Data Demystified #1: Big data architecture lessons learned AWS Big Data Demystified #1: Big data architecture lessons learned
AWS Big Data Demystified #1: Big data architecture lessons learned
 
Apache Storm Concepts
Apache Storm ConceptsApache Storm Concepts
Apache Storm Concepts
 
Flow Monitoring Tools, What do we have, What do we need?
Flow Monitoring Tools, What do we have, What do we need?Flow Monitoring Tools, What do we have, What do we need?
Flow Monitoring Tools, What do we have, What do we need?
 
Building a data pipeline to ingest data into Hadoop in minutes using Streamse...
Building a data pipeline to ingest data into Hadoop in minutes using Streamse...Building a data pipeline to ingest data into Hadoop in minutes using Streamse...
Building a data pipeline to ingest data into Hadoop in minutes using Streamse...
 
Ledingkart Meetup #2: Scaling Search @Lendingkart
Ledingkart Meetup #2: Scaling Search @LendingkartLedingkart Meetup #2: Scaling Search @Lendingkart
Ledingkart Meetup #2: Scaling Search @Lendingkart
 

More from BDPA Education and Technology Foundation

BDPA and College Students
BDPA and College StudentsBDPA and College Students
BDPA and College Students
BDPA Education and Technology Foundation
 
Johnson & Johnson Scholarship (2018)
Johnson & Johnson Scholarship (2018)Johnson & Johnson Scholarship (2018)
Johnson & Johnson Scholarship (2018)
BDPA Education and Technology Foundation
 

More from BDPA Education and Technology Foundation (20)

Oracle Scholarship for BDPA Students
Oracle Scholarship for BDPA StudentsOracle Scholarship for BDPA Students
Oracle Scholarship for BDPA Students
 
BDPA and College Students
BDPA and College StudentsBDPA and College Students
BDPA and College Students
 
Eli Lilly Scholarship for BDPA Students (2018)
Eli Lilly Scholarship for BDPA Students (2018)Eli Lilly Scholarship for BDPA Students (2018)
Eli Lilly Scholarship for BDPA Students (2018)
 
Johnson & Johnson Scholarship (2018)
Johnson & Johnson Scholarship (2018)Johnson & Johnson Scholarship (2018)
Johnson & Johnson Scholarship (2018)
 
flyer-BDPAConnect Virtual Career Fair
flyer-BDPAConnect Virtual Career Fair flyer-BDPAConnect Virtual Career Fair
flyer-BDPAConnect Virtual Career Fair
 
Nomination form * BDPA Cincinnati (2017)
Nomination form * BDPA Cincinnati (2017)Nomination form * BDPA Cincinnati (2017)
Nomination form * BDPA Cincinnati (2017)
 
Newsletter: BDPA Memphis (June 2017)
Newsletter: BDPA Memphis (June 2017) Newsletter: BDPA Memphis (June 2017)
Newsletter: BDPA Memphis (June 2017)
 
Newsletter: BDPA Washington DC (May 2017)
Newsletter: BDPA Washington DC (May 2017) Newsletter: BDPA Washington DC (May 2017)
Newsletter: BDPA Washington DC (May 2017)
 
Oracle Scholarship for BDPA Students
Oracle Scholarship for BDPA StudentsOracle Scholarship for BDPA Students
Oracle Scholarship for BDPA Students
 
Wanda Everett BDPA Scholarship
Wanda Everett BDPA ScholarshipWanda Everett BDPA Scholarship
Wanda Everett BDPA Scholarship
 
BDPA Technology Conference Flyer (2017)
BDPA Technology Conference Flyer (2017)BDPA Technology Conference Flyer (2017)
BDPA Technology Conference Flyer (2017)
 
2017 BDPA Individual PACEsetter Awards Program
2017 BDPA Individual PACEsetter Awards Program2017 BDPA Individual PACEsetter Awards Program
2017 BDPA Individual PACEsetter Awards Program
 
Top Companies for Blacks in Technology `
Top Companies for Blacks in Technology `Top Companies for Blacks in Technology `
Top Companies for Blacks in Technology `
 
flyer-BDPAConnect Virtual Career Fair
flyer-BDPAConnect Virtual Career Fairflyer-BDPAConnect Virtual Career Fair
flyer-BDPAConnect Virtual Career Fair
 
BDPA Cincinnati Computer Camp Orientation (2017)
BDPA Cincinnati Computer Camp Orientation (2017)BDPA Cincinnati Computer Camp Orientation (2017)
BDPA Cincinnati Computer Camp Orientation (2017)
 
BDPA Connect Virtual Career Fair
BDPA Connect Virtual Career FairBDPA Connect Virtual Career Fair
BDPA Connect Virtual Career Fair
 
Overview-SITES_Triangle-2016
Overview-SITES_Triangle-2016Overview-SITES_Triangle-2016
Overview-SITES_Triangle-2016
 
National BDPA Mobile Application Showcase
National BDPA Mobile Application ShowcaseNational BDPA Mobile Application Showcase
National BDPA Mobile Application Showcase
 
ITSMF Educational Scholarship
ITSMF Educational ScholarshipITSMF Educational Scholarship
ITSMF Educational Scholarship
 
2016 Golf Classic Trifold
2016 Golf Classic Trifold2016 Golf Classic Trifold
2016 Golf Classic Trifold
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Handout: 'Open Source Tools & Resources'

  • 1. Monitoring your Infrastructure using Open Source ToolsSource Tools by Greg Greenlee
  • 2. greg@blacksintechnology:~$ whoami ● Founder of Blacks In Technology organization ● Systems Engineer● Systems Engineer ● FOSS lover ● Avid comic book reader (Marvel) ● Father ● Husband
  • 3. What is Open Source Software? ● Source code is openly shared ● Licensed to allow freedom to modify, copy,● Licensed to allow freedom to modify, copy, study
  • 4. Why Open Source? ● Pros o Free (as in beer) and sometimes not o code open to modification o vulns are detected and fixed quickero vulns are detected and fixed quicker o entire community working on it (depends on popularity) ● Cons o documentation sometimes lacks o may prove difficult to implement
  • 5. Why monitor? ● You want to know when something goes wrong ● Insight into your environment o proactive ● Business needs● Business needs o analytics o trending data ● Event correlation
  • 6. Tools to monitor your infrastructure ● Nagios (monitoring and alerting) ● ELK Stack (log aggregation, search and analysis) o ElasticSearch (search engine based on Lucene) Logstasho Logstash (log aggregator and manipulator) o Kibana (front end) ● Cacti (data graphing) ● NagVis (visualization) ● nTopNG (protocol analyzer)
  • 7. Nagios ● Created by Ethan Galstad (1999) - originally called NetSaint ● http://www.nagios.org ● http://www.nagios.org/download ● Very customizable ● Nagios XI o standard and enterprise edition (http://www.nagios.com/products/nagiosxi/edition-comparison) o aids in large scale configuration, reporting o includes support services (http://www.nagios.com/products/nagiosxi/pricing) ● Nagios core o free o can purchase support
  • 8. What does Nagios do? Monitors and alerts
  • 9. What can Nagios monitor? 1. Applications 2. Network services (smtp, http, dns, ssh….) 3. Hosts 4. Host resources (disk, cpu, memory, processes)4. Host resources (disk, cpu, memory, processes) 5. Web sites 6. Sensors (temperature, humidity, power consumption..) 7. Just about anything you can write a script for!!!
  • 10. How does Nagios monitor? ● Local plugins o network services are running ● Remote plugins (NRPE NSClient++) o disk utilizationo disk utilization o memory utilization o cpu utiliziation ● Custom Scripts (Perl, Python, Bash, etc.) ● More plugins and nagios goodness o http://exchange.nagios.org/#/
  • 11. How does it work? Uses a host to service relationship ● Hosts (switch, router, server, sensors) ● Service (http, dns, temperature, ping, ftp) Uses traffic light system to indicate stateUses traffic light system to indicate state ● Red - critical ● Yellow - warning ● Green - ok
  • 12. How does it work cont’d Makes use of configuration files ● templates ● hosts and host groups● hosts and host groups ● services and services groups ● contacts and contact groups ● notifications ● escalations
  • 13. Host and service config file # Host definition define host{ use generic-host ; Name of host template to use host_name domain- server-1 alias Name Server address x.x.x.x check_command check-host- alive hostgroups fakegroup # Service definition define service{ use generic-service ; Name of service template to use host_name domain-server-1 service_description DNS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 # 'check_dns' command definition define command{ command_name check_dns command_line $USER1$/check_dns -H www.profitability.net -s $HOSTADDRESS$ } hostgroups fakegroup contact_groups novell- admins max_check_attempts 10 notification_interval 30 notification_period 24x7 notification_options d,u,r parents internalswitch-4-3-7-1 } retry_check_interval 1 contact_groups novell-admins notification_interval 30 notification_period 24x7 notification_options w,u,c,r,f,s check_command check_dns }
  • 14. How does it look? ping check ping check ● service check ○ http ○ ftp
  • 15. How do I get alerts? email text IMIM
  • 17. ELK Stack (log aggregation and analysis) ● Elasticsearch (Apache Lucene search engine) ● Logstash (collects and parses logs)● Logstash ● Kibana (front end gui allows you to visualize data)
  • 18. Why do we need centralized log server? ● Easy to find stuff ● Everything has logs o operating systemso operating systems o applications o devices ● Correlation of events ● Insight into environment
  • 19. Elasticsearch ● http://www.elasticsearch.org/ ● based on Apache Lucene ● indexes data ● full text search ● distributed (scales out) ● highly available (can build clusters) ● schema free (tries to structure data) ● real time data
  • 21. Logstash Created by Jordan Sissel Allows you to ingest data from anywhere (input)Allows you to ingest data from anywhere (input) Centralizes and parses log data (filter) Display data (output)
  • 22. logstash ● input o syslog o file o tcp o udp o eventlog o twitter o irco irc ● filter (modifies) o grok (parses unstructured data) o mutate (mutates your events such as renaming, replacing, modifying fields) ● output o csv o email o file o elasticsearch o http
  • 23. flow of data input (tcp, syslog, file) filter (grok, mutate) output (stdout, elasticsearch)
  • 24. Logstash format input { tcp { port => 5000 type => syslog } udp { port => 5000 type => syslog } } filter { if [type] == "syslog" {if [type] == "syslog" { grok { match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:[%{POSINT:syslog_pid}])?: %{GREEDYDATA:syslog_message}" } add_field => [ "received_at", "%{@timestamp}" ] add_field => [ "received_from", "%{host}" ] } syslog_pri { } date { match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ] } } } output { elasticsearch { host => localhost } stdout { codec => rubydebug } }
  • 25. Kibana ● visualization tool ● interact with your data in real time● interact with your data in real time ● drill down and view only data you want ● make sense of your data o bar or line graphs, maps and pie charts
  • 26. ELK stack demoELK stack demo
  • 27. NagVis ● http://www.nagvis.org/ ● Nagios add on visualisation tool o allows you to visualize Nagios data ● Allows you to create maps of your IT environment● Allows you to create maps of your IT environment ● Allows you to visualize work flows and processes ● create graphic out of performance data o disk usage o cpu usage
  • 30. Cacti ● http://www.cacti.net/ ● front end for RRDTool (Round Robin Database) o records data in intervals o graphs data pointso graphs data points ● Useful for seeing data trends o bandwidth o power consumption o cpu usage o memory usage
  • 32.
  • 33.
  • 34. nTOPng http://www.ntop.org/ Network traffic probe and analyzer Based on original ntop Supported platforms (Windows and Unix) ● Sort network traffic according to many protocols ● Show network traffic and IPv4/v6 active hosts ● Store on disk persistent traffic statistics in RRD format ● Geolocate hosts ● Analyse IP traffic and sort it according to the source/destination ● Display IP Traffic Subnet matrix (who’s talking to who?) ● Report IP protocol usage sorted by protocol type ● Act as a NetFlow/sFlow collector for flows generated by routers (e.g. Cisco and Juniper) or switches (e.g. Foundry Networks) when used together with nProbe. ● Produce HTML5/AJAX network traffic statistics
  • 35. What can you do with nTOPng? ● Network troubleshooting ● Drill down into traffic flows o source and destination ip address o source and destination porto source and destination port o bandwidth o protocol o application
  • 38.
  • 39.
  • 40.
  • 41. Thank you!!! email: greg@blacksintechnology.net twitter: @blkintechnology facebook: http://www.facebook.com/blacksintechnology website: http://www.blacksintechnology.netwebsite: http://www.blacksintechnology.net LinkedIn: Blacks In Technology