SlideShare a Scribd company logo
DevOps Certification Training
Continuous Monitoring
Learning Objectives
By the end of this lesson, you will be able to:
Explain continuous monitoring tools in DevOps
Demonstrate Nagios
Describe ELK Stack
Demonstrate continuous monitoring on Docker with ELK Stack
Introduction to Continuous Monitoring
What Is Continuous Monitoring ?
It is the ability to:
● Detects
● Reports
● Responds
● Contains
● Mitigates attacks to the IT infrastructure
Continuous monitoring involves monitoring and identifying compliance issues and security risks in
each phase of the DevOps lifecycle.
Monitoring
Helps Detect risk,
compliance, and security
issues in an operational
environment
Takes precautions to
maintain a stable
operational environment
Acts as an auditing tool
where it can navigate
through old monitoring data
to analyze and improve
performance of system
Reduces the probability of
failure and provides
assurance to business
with regard to security
and reliability
What Is Continuous Monitoring ?
Role of Monitoring Systems
Helps to design and sustain
a stable and reliable
system
Reduces cost by
accumulating detailed
knowledge on duplication
of software assets
Alerts any issue in
infrastructure
or application service
Monitors the production
environment
for risks and failures
Retrieves historical
data for analysis
Displays application
behavior during peak
business hours
Reduces the risk of
application
downtime
Real-time
Monitoring
Types of
Monitoring
Infrastructure
Monitoring
Application
Monitoring
Network
Monitoring
Types of Monitoring Systems
Types of Monitoring Systems
Real-time Monitoring
Deals with Monitoring of:
• Server CPU statistics
• Disk usage and memory
stats
• Spikes in CPU
performance
• I/O count on server
Infrastructure Monitoring
Deals with Monitoring of:
• CPU and memory
• Network and routers
• App servers, web servers,
and DB servers
• Data-centers, storage
• IT hardware, software
Types of Monitoring
Application Monitoring
Deals with Monitoring of:
• API success/failure
• count
• API accessibility
• API HTTP error codes
Network Monitoring
Deals with Monitoring of:
• Network
• Routers, firewalls
• Switches, servers
• Virtual machines
Some of the most popular tools used for continuous monitoring are:
Continuous Monitoring Tools
● Nagios Core is a free, open-source, network monitoring application.
● It was launched in 2002 and is one of the popular monitoring tools.
● It can monitor applications, networks, routers, switches, and servers.
● It needs Nagios NRPE agents to be deployed on respective servers to collect stats
from node machines.
Continuous Monitoring Tools
Continuous Monitoring Tools
● ELK Stack is a log monitoring and open-source tool.
● It is a combination of three open-source tools: Elasticsearch, Logstash, and
Kibana.
● Elasticsearch is the heart of the stack as it acts as the data engine, stores
applications, server logs, and retrieves the data for analysis.
● Logstash acts as data pipeline which processes logs and helps in saving the data
to Elasticsearch.
● Kibana is a front-end application used to visualize and display the data retrieved
from the data engine.
● Sensu is a powerful next-generation monitoring tool which is more popular
than traditional monitoring tools.
● It was launched in 2011 as open-source under MIT license.
● Sensu enterprise version provides additional features and plugins.
● It uses RabbitMQ to exchange data between nodes and the master server.
● It uses Redis as the database to store all the monitoring data.
● Zabbix is open-source tool launched in 2001 that provides features similar to
Nagios.
● It needs agents to be installed on the nodes in order to monitor the data.
Continuous Monitoring Tools
● New Relic was launched in 2008 as SAAS(Software A As Service) software
offering.
● It helps to monitor applications, and servers in real-time.
● New Relic’s collectors installation in the nodes is necessary instead of New
Relic software in the infrastructure.
● All monitoring data is transferred to New Relic and its dashboards are used
to visualize monitoring data.
Continuous Monitoring Tools
● Splunk is interpreted as an application and security analytics tool.
● It collects data from each application and server and can be further
analyzed to predict the future behavior for necessary precautions.
● Monitoring application failures and warning exceptions are possible.
● It is implemented in financial and product-based organizations to monitor
the applications.
Continuous Monitoring Tools
● Datadog is a cloud-based monitoring service.
● Datadog agent should be installed on the servers to monitor other servers
within the infrastructure.
● All monitoring data is pushed to Datadog web application to visualize it.
● AppDynamics tool is used to monitor the server and application performance
which results in improved efficiency of the source code.
● It helps in making a suitable business decision while monitoring application,
as it monitors both mobile and web.
Continuous Monitoring Tools
● AWS CloudWatch is one of the core services of AWS cloud.
● By default, all the services in AWS are monitored by CloudWatch.
● It can store logs from various serverless components in AWS.
● It retains and stores monitored data, which is helpful to validate the stats
anytime.
● It helps to create and generate alerts to users in case of issues.
Continuous Monitoring Tools
Introduction to Nagios
What Is Nagios ?
Nagios is an open-source continuous monitoring tool used to monitor the system, network, and IT
infrastructure.
● It monitors the specified hosts and
services that are specified and alerts you
when things go bad and when they get
better.
● Nagios is available in two variants -
namely Nagios Core and Nagios XI.
● Nagios Core is an open source product
whereas Nagios XI is a licensed version.
Why Nagios?
Ensures security
maintenance and
service availability
Facilitates automatic
problem resolution
Finds any type of network
or server issues
Identifies the root
cause of the problem
Monitors the
infrastructure actively
Troubleshoots server
performance issues
Facilitates infrastructure
upgrade and planning
6
7 1
2
3
4
5
Features of Nagios
Monitors network
services
(SMTP, POP3, HTTP, and
PING )
Monitors host resources
(processor load and disk
usage)
Facilitates customized service
checks because of the simple
plugin design
Facilitates parallelized
service checks
Helps you to define
network host hierarchy
by parent hosts
Nagios
Features
01
02
03
04
05
Features of Nagios
Enables contact
notifications on problem
resolution
Facilitates proactive
problem resolution by
event handlers
Enables automatic log file
rotation
Enables
implementation of
monitoring hosts
Provides an optional web
interface for viewing
details
Nagios
Features
06
07
08
09
10
Nagios Architecture
Nagios uses a client/server architecture.
The Nagios server usually runs on a host and the
plugins run on remote hosts which are specified for
monitored.
Nagios Server
Remote host or client
Nagios Architecture
Plugins
Process Scheduler
Nagios Server
Plugins
Plugins
Remote Host
Nagios GUI
Plugins
Nagios architecture is comprised of three main components namely - the process scheduler (running
on the Nagios server), the plugins, and the user interface.
Nagios Plugins
Nagios Plugins
Plugins are compiled executables or scripts (Perl scripts and shell scripts) that can be run from the
command line to check the status of a host or service.
● Plugins allow the user to monitor databases, operating systems,
applications, network equipment, and protocols.
● They are standalone extensions to Nagios Core.
Types of Nagios Plugins
02
Official Nagios Plugins
Developed and
maintained by official
Nagios plugin team.
Community Plugins
Developed by hundreds
of Nagios community
members.
03
Custom Plugins
Developed by users in
order to suit their
requirements.
01
Nagios Remote Plugin Executor (NRPE)
NRPE is an addon that allows you to run Nagios plugins on remote machines to monitor remote machine
metrics (disk usage, and CPU load).
Source: https://exchange.nagios.org/directory/Addons/Monitoring-Agents/NRPE--2D-
Nagios-Remote-Plugin-Executor/details
NRPE addon consists of:
• The check_nrpe plugin, which resides on the local monitoring host.
• The NRPE daemon, which runs on the remote Linux or Unix host.
Nagios Remote Plugin Executor (NRPE)
To monitor a resource of a service from a remote Linux or Unix machine:
● Nagios executes the check_nrpe plugin and identifies which service needs to be checked.
● The check_nrpe plugin contacts the NRPE daemon on the remote host over SSL protected connection.
● The NRPE daemon runs the required Nagios plugin to check the service or resource.
● The results from the service check are sent by the NRPE daemon to the check_nrpe plugin, which
then returns the transfers to the Nagios process.
How to Configure Plugins on Remote Nodes?
Nagios and NRPE can perform
all the processes only with
Nagios plugins.
Nagios plugins monitor hosts,
devices, services, protocols,
and applications with Nagios
and sends reports the report
to NRPE.
NRPE sends those reports to
Nagios server based on the
Nagios server request.
How to Configure Plugins on Remote Nodes ?
To monitor the remote host in the Nagios server, two installations are required:
• Remote Host: NRPE plugin and Nagios plugins
• Nagios Server: NRPE plugin
Nagios Installation
Nagios Installation
● A Linux machine (or UNIX variant) that has network access.
● A C compiler installed (In case you are installing from source code).
● It is optional to use the CGIs included with Nagios Core. However, if you plan to use them,
you should have the software listed below:
1. Apache web server
2. Thomas Boutell's gd library - version 1.6.3 or higher
System Requirements for Nagios Core:
Problem Statement:
You are given a project to install and setup Nagios monitoring tool.
How to Install Nagios Monitoring Tool ?
Duration: 25 Min.
Assisted Practice: Guidelines
Steps to install and setup Nagios monitoring tool on Linux:
1. Install package dependencies.
2. Install Nagios Core 4.4.6.
3. Install Nagios and NRPE Plugins.
Monitoring with Nagios
Using the Default Plugins
There are some default plugins available to monitor devices and services, including:
● HTTP, POP3, IMAP, FTP, SSH, and DHCP
● CPU Load, Disk Usage, Memory Usage,
and Current Users
● Unix and Linux, Windows, and Netware
Servers
● Routers and switches
The Nagios Exchange website offers a number of additional plugins developed by users, that
can be used as per your requirement.
Using the Default Plugins
● check_http: Plugin used for monitoring web servers
● check_ftp: Plugin used for monitoring FTP servers
● check_ssh: Plugin used for monitoring SSH servers
● check_smtp: Plugin used for monitoring your email servers
● check_pop: Plugin used for monitoring the POP3 service on your email servers
● check_imap: Plugin used for monitoring IMAP4 service on your email servers
Problem Statement:
You are given a project to add a Linux node to the Nagios server for monitoring.
How to Add Servers to Nagios ?
Duration: 25 Min.
Assisted Practice: Guidelines
Steps to add a Linux node to the Nagios server for monitoring :
1. Install the NRPE server on the client server.
2. Add the client configuration to the Nagios server.
3. Test the setup.
ELK Stack
ELK Stack
ELK Stack is an open-source, distributed monitoring solution with centralized logging, metric, and
application performance monitoring, suitable for almost any structured and unstructured data source.
ELK is the acronym for three open source projects: Elasticsearch, Logstash, and Kibana. Recently a new
component called Beats was included in the ELK Stack.
Main Components of ELK Stack
Elasticsearch
Distributed search and analytics
engine that can store, index, search,
and analyze data.
Beats
Lightweight data collectors
that fetch metrics, data logs,
and send it to Logstash or
Elasticsearch.
Logstash
Data collection pipeline tool
that collects data inputs and
feeds the Elasticsearch.
Kibana
Data visualization tool that
provides a web interface for
searching and visualizing logs.
01
02
03
04
Elasticsearch
1. Store: It stores complex data structures that are serialized as JSON
documents
1. Index: Documents are indexed almost real-time
1. Search: Supports searches through inverted index
1. Analyze: Dynamic mapping makes schema-less possible by detecting and
adding new fields
Functions
Elasticsearch is a distributed search and analytics engine that provides the real-time search and analytics
for data (structured and unstructured).
Elasticsearch
Logstash
● It is the data processing component of the ELK
Stack.
● Collects data from various sources and feeds
Elasticsearch or normalizes it to other
destinations.
Source: https://elastic-stack.readthedocs.io/en/latest/introduction.html#main-components
Kibana
Kibana is the data visualization tool that provides the graphical user interface for Elasticsearch.
Beats
Beats are lightweight data collectors that are installed directly on the data source and collect data for
specific purposes, which are then sent to Elasticsearch or Logstash. Most frequently used collectors are:
● Filebeat: sends local file records.
● Winlogbeat: sends Windows event
logs.
● Metricbeat: sends system or
application performance metrics.
Source: https://elastic-stack.readthedocs.io/en/latest/introduction.html#main-components
ELK Stack Overview
Source: https://elastic-stack.readthedocs.io/en/latest/introduction.html#main-components
A set of utilities provide the most powerful
analytics for the business
Combination of Elasticsearch for searching data,
Logstash to process and store various stats, and
Kibana to visualize stats on front-end application
Open-source. Collects logs from servers and
applications that can be analyzed for
improvement
Backup of monitoring stats and able to store
our monitoring system
View stats to detect defects in applications
Logstash can be used to gather stats from a
variety of data sources and sent to Kibana
Install clients to collect data and send it back to
the ELK Stack
ELK Stack Overview
Setting up Complete ELK Stack for Log Management
Based on the use-case and environment, businesses might need different logging architectures. The
classic ELK stack architecture can support small environments as shown below:
Data collection and
processing
Data storage and
indexing
Data analysis and
visualization
Setting up Complete ELK Stack for Log Management
For environments that provides Big Data, some additional components might be required as shown
below:
Accumulation
and processing
Storage and
indexing
Data analysis
and
visualization
Buffering
Data collection
Problem Statement:
You are given a project to demonstrate continuous monitoring on Docker with ELK Stack.
Continuous Monitoring on Docker with ELK Stack
Duration: 35 Min.
Assisted Practice: Guidelines
Steps to setup continuous monitoring on Docker with ELK Stack:
1. Setup ELK Stack on Docker.
2. Configure Jenkins pipeline for Docker build and deployment.
3. Run the Spring Boot application and check the logs in Kibana.
Key Takeaways
Continuous monitoring involves monitoring and identifying
compliance issues, security risks in each phase of the DevOps
lifecycle.
ELK Stack is a combination of Elasticsearch for searching data,
Logstash to process and store various stats, and Kibana to
visualize stats on front-end application.
ELK Stack is a distributed monitoring solution with centralized
logging, metric and application performance monitoring
capabilities.
Nagios is an open-source continuous monitoring tool used to
monitor the system, network, and IT infrastructure.
Key Takeaways
NRPE is a Nagios addon that allows you to run Nagios plugins on
remote machines to monitor remote machine metrics.
Ad

More Related Content

Similar to Lesson_08_Continuous_Monitoring.pdf (20)

Internship msc cs
Internship msc csInternship msc cs
Internship msc cs
Pooja Bhojwani
 
OpManager Review
OpManager ReviewOpManager Review
OpManager Review
guesta265a9
 
Monitoring federation open stack infrastructure
Monitoring federation open stack infrastructureMonitoring federation open stack infrastructure
Monitoring federation open stack infrastructure
Fernando Lopez Aguilar
 
What is Spinnaker? Spinnaker tutorial
What is Spinnaker? Spinnaker tutorialWhat is Spinnaker? Spinnaker tutorial
What is Spinnaker? Spinnaker tutorial
jeetendra mandal
 
CV_RishabhDixit
CV_RishabhDixitCV_RishabhDixit
CV_RishabhDixit
Rishabh Dixit
 
Triangle Devops Meetup 10/2015
Triangle Devops Meetup 10/2015Triangle Devops Meetup 10/2015
Triangle Devops Meetup 10/2015
aspyker
 
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios
 
AWS Loft Talk: Behind the Scenes with SignalFx
AWS Loft Talk: Behind the Scenes with SignalFxAWS Loft Talk: Behind the Scenes with SignalFx
AWS Loft Talk: Behind the Scenes with SignalFx
SignalFx
 
Installation and Setup: Wazuh can be installed on-premises or deployed in the...
Installation and Setup: Wazuh can be installed on-premises or deployed in the...Installation and Setup: Wazuh can be installed on-premises or deployed in the...
Installation and Setup: Wazuh can be installed on-premises or deployed in the...
backlinks440
 
Monitoring in Big Data Platform - Albert Lewandowski, GetInData
Monitoring in Big Data Platform - Albert Lewandowski, GetInDataMonitoring in Big Data Platform - Albert Lewandowski, GetInData
Monitoring in Big Data Platform - Albert Lewandowski, GetInData
GetInData
 
Datadogoverview.pptx
Datadogoverview.pptxDatadogoverview.pptx
Datadogoverview.pptx
ssuser8bc443
 
Netflix Architecture and Open Source
Netflix Architecture and Open SourceNetflix Architecture and Open Source
Netflix Architecture and Open Source
All Things Open
 
System monitoring
System monitoringSystem monitoring
System monitoring
HardikBadola
 
Universal Profiling como nuevo pilar de la observabilidad
Universal Profiling como nuevo pilar de la observabilidadUniversal Profiling como nuevo pilar de la observabilidad
Universal Profiling como nuevo pilar de la observabilidad
Alberto Lorenzo
 
Azure Monitoring Overview
Azure Monitoring OverviewAzure Monitoring Overview
Azure Monitoring Overview
gjuljo
 
When PaaS hits the fan: monitoring advanced Azure PaaS workloads in an enterp...
When PaaS hits the fan: monitoring advanced Azure PaaS workloads in an enterp...When PaaS hits the fan: monitoring advanced Azure PaaS workloads in an enterp...
When PaaS hits the fan: monitoring advanced Azure PaaS workloads in an enterp...
Karl Ots
 
Taking AppSec to 11: AppSec Pipeline, DevOps and Making Things Better
Taking AppSec to 11: AppSec Pipeline, DevOps and Making Things BetterTaking AppSec to 11: AppSec Pipeline, DevOps and Making Things Better
Taking AppSec to 11: AppSec Pipeline, DevOps and Making Things Better
Matt Tesauro
 
Taking AppSec to 11 - BSides Austin 2016
Taking AppSec to 11 - BSides Austin 2016Taking AppSec to 11 - BSides Austin 2016
Taking AppSec to 11 - BSides Austin 2016
Matt Tesauro
 
Top DevOps Monitoring Tools in 2024- Headspin
Top DevOps Monitoring Tools in 2024- HeadspinTop DevOps Monitoring Tools in 2024- Headspin
Top DevOps Monitoring Tools in 2024- Headspin
flufftailshop
 
Nagios Conference 2014 - Frank Pantaleo - Nagios Monitoring of Netezza Databases
Nagios Conference 2014 - Frank Pantaleo - Nagios Monitoring of Netezza DatabasesNagios Conference 2014 - Frank Pantaleo - Nagios Monitoring of Netezza Databases
Nagios Conference 2014 - Frank Pantaleo - Nagios Monitoring of Netezza Databases
Nagios
 
OpManager Review
OpManager ReviewOpManager Review
OpManager Review
guesta265a9
 
Monitoring federation open stack infrastructure
Monitoring federation open stack infrastructureMonitoring federation open stack infrastructure
Monitoring federation open stack infrastructure
Fernando Lopez Aguilar
 
What is Spinnaker? Spinnaker tutorial
What is Spinnaker? Spinnaker tutorialWhat is Spinnaker? Spinnaker tutorial
What is Spinnaker? Spinnaker tutorial
jeetendra mandal
 
Triangle Devops Meetup 10/2015
Triangle Devops Meetup 10/2015Triangle Devops Meetup 10/2015
Triangle Devops Meetup 10/2015
aspyker
 
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios
 
AWS Loft Talk: Behind the Scenes with SignalFx
AWS Loft Talk: Behind the Scenes with SignalFxAWS Loft Talk: Behind the Scenes with SignalFx
AWS Loft Talk: Behind the Scenes with SignalFx
SignalFx
 
Installation and Setup: Wazuh can be installed on-premises or deployed in the...
Installation and Setup: Wazuh can be installed on-premises or deployed in the...Installation and Setup: Wazuh can be installed on-premises or deployed in the...
Installation and Setup: Wazuh can be installed on-premises or deployed in the...
backlinks440
 
Monitoring in Big Data Platform - Albert Lewandowski, GetInData
Monitoring in Big Data Platform - Albert Lewandowski, GetInDataMonitoring in Big Data Platform - Albert Lewandowski, GetInData
Monitoring in Big Data Platform - Albert Lewandowski, GetInData
GetInData
 
Datadogoverview.pptx
Datadogoverview.pptxDatadogoverview.pptx
Datadogoverview.pptx
ssuser8bc443
 
Netflix Architecture and Open Source
Netflix Architecture and Open SourceNetflix Architecture and Open Source
Netflix Architecture and Open Source
All Things Open
 
Universal Profiling como nuevo pilar de la observabilidad
Universal Profiling como nuevo pilar de la observabilidadUniversal Profiling como nuevo pilar de la observabilidad
Universal Profiling como nuevo pilar de la observabilidad
Alberto Lorenzo
 
Azure Monitoring Overview
Azure Monitoring OverviewAzure Monitoring Overview
Azure Monitoring Overview
gjuljo
 
When PaaS hits the fan: monitoring advanced Azure PaaS workloads in an enterp...
When PaaS hits the fan: monitoring advanced Azure PaaS workloads in an enterp...When PaaS hits the fan: monitoring advanced Azure PaaS workloads in an enterp...
When PaaS hits the fan: monitoring advanced Azure PaaS workloads in an enterp...
Karl Ots
 
Taking AppSec to 11: AppSec Pipeline, DevOps and Making Things Better
Taking AppSec to 11: AppSec Pipeline, DevOps and Making Things BetterTaking AppSec to 11: AppSec Pipeline, DevOps and Making Things Better
Taking AppSec to 11: AppSec Pipeline, DevOps and Making Things Better
Matt Tesauro
 
Taking AppSec to 11 - BSides Austin 2016
Taking AppSec to 11 - BSides Austin 2016Taking AppSec to 11 - BSides Austin 2016
Taking AppSec to 11 - BSides Austin 2016
Matt Tesauro
 
Top DevOps Monitoring Tools in 2024- Headspin
Top DevOps Monitoring Tools in 2024- HeadspinTop DevOps Monitoring Tools in 2024- Headspin
Top DevOps Monitoring Tools in 2024- Headspin
flufftailshop
 
Nagios Conference 2014 - Frank Pantaleo - Nagios Monitoring of Netezza Databases
Nagios Conference 2014 - Frank Pantaleo - Nagios Monitoring of Netezza DatabasesNagios Conference 2014 - Frank Pantaleo - Nagios Monitoring of Netezza Databases
Nagios Conference 2014 - Frank Pantaleo - Nagios Monitoring of Netezza Databases
Nagios
 

Recently uploaded (20)

Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRYLEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
NidaFarooq10
 
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentSecure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Shubham Joshi
 
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
ssuserb14185
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Orangescrum
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
steaveroggers
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Solidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license codeSolidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license code
aneelaramzan63
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025
kashifyounis067
 
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New VersionPixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
saimabibi60507
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
FL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full VersionFL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full Version
tahirabibi60507
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
How can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptxHow can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptx
laravinson24
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRYLEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
NidaFarooq10
 
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentSecure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Shubham Joshi
 
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
ssuserb14185
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Orangescrum
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
steaveroggers
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Solidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license codeSolidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license code
aneelaramzan63
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025
kashifyounis067
 
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New VersionPixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
saimabibi60507
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
FL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full VersionFL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full Version
tahirabibi60507
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
How can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptxHow can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptx
laravinson24
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Ad

Lesson_08_Continuous_Monitoring.pdf

  • 3. Learning Objectives By the end of this lesson, you will be able to: Explain continuous monitoring tools in DevOps Demonstrate Nagios Describe ELK Stack Demonstrate continuous monitoring on Docker with ELK Stack
  • 5. What Is Continuous Monitoring ? It is the ability to: ● Detects ● Reports ● Responds ● Contains ● Mitigates attacks to the IT infrastructure Continuous monitoring involves monitoring and identifying compliance issues and security risks in each phase of the DevOps lifecycle.
  • 6. Monitoring Helps Detect risk, compliance, and security issues in an operational environment Takes precautions to maintain a stable operational environment Acts as an auditing tool where it can navigate through old monitoring data to analyze and improve performance of system Reduces the probability of failure and provides assurance to business with regard to security and reliability What Is Continuous Monitoring ?
  • 7. Role of Monitoring Systems Helps to design and sustain a stable and reliable system Reduces cost by accumulating detailed knowledge on duplication of software assets Alerts any issue in infrastructure or application service Monitors the production environment for risks and failures Retrieves historical data for analysis Displays application behavior during peak business hours Reduces the risk of application downtime
  • 9. Types of Monitoring Systems Real-time Monitoring Deals with Monitoring of: • Server CPU statistics • Disk usage and memory stats • Spikes in CPU performance • I/O count on server Infrastructure Monitoring Deals with Monitoring of: • CPU and memory • Network and routers • App servers, web servers, and DB servers • Data-centers, storage • IT hardware, software
  • 10. Types of Monitoring Application Monitoring Deals with Monitoring of: • API success/failure • count • API accessibility • API HTTP error codes Network Monitoring Deals with Monitoring of: • Network • Routers, firewalls • Switches, servers • Virtual machines
  • 11. Some of the most popular tools used for continuous monitoring are: Continuous Monitoring Tools
  • 12. ● Nagios Core is a free, open-source, network monitoring application. ● It was launched in 2002 and is one of the popular monitoring tools. ● It can monitor applications, networks, routers, switches, and servers. ● It needs Nagios NRPE agents to be deployed on respective servers to collect stats from node machines. Continuous Monitoring Tools
  • 13. Continuous Monitoring Tools ● ELK Stack is a log monitoring and open-source tool. ● It is a combination of three open-source tools: Elasticsearch, Logstash, and Kibana. ● Elasticsearch is the heart of the stack as it acts as the data engine, stores applications, server logs, and retrieves the data for analysis. ● Logstash acts as data pipeline which processes logs and helps in saving the data to Elasticsearch. ● Kibana is a front-end application used to visualize and display the data retrieved from the data engine.
  • 14. ● Sensu is a powerful next-generation monitoring tool which is more popular than traditional monitoring tools. ● It was launched in 2011 as open-source under MIT license. ● Sensu enterprise version provides additional features and plugins. ● It uses RabbitMQ to exchange data between nodes and the master server. ● It uses Redis as the database to store all the monitoring data. ● Zabbix is open-source tool launched in 2001 that provides features similar to Nagios. ● It needs agents to be installed on the nodes in order to monitor the data. Continuous Monitoring Tools
  • 15. ● New Relic was launched in 2008 as SAAS(Software A As Service) software offering. ● It helps to monitor applications, and servers in real-time. ● New Relic’s collectors installation in the nodes is necessary instead of New Relic software in the infrastructure. ● All monitoring data is transferred to New Relic and its dashboards are used to visualize monitoring data. Continuous Monitoring Tools
  • 16. ● Splunk is interpreted as an application and security analytics tool. ● It collects data from each application and server and can be further analyzed to predict the future behavior for necessary precautions. ● Monitoring application failures and warning exceptions are possible. ● It is implemented in financial and product-based organizations to monitor the applications. Continuous Monitoring Tools
  • 17. ● Datadog is a cloud-based monitoring service. ● Datadog agent should be installed on the servers to monitor other servers within the infrastructure. ● All monitoring data is pushed to Datadog web application to visualize it. ● AppDynamics tool is used to monitor the server and application performance which results in improved efficiency of the source code. ● It helps in making a suitable business decision while monitoring application, as it monitors both mobile and web. Continuous Monitoring Tools
  • 18. ● AWS CloudWatch is one of the core services of AWS cloud. ● By default, all the services in AWS are monitored by CloudWatch. ● It can store logs from various serverless components in AWS. ● It retains and stores monitored data, which is helpful to validate the stats anytime. ● It helps to create and generate alerts to users in case of issues. Continuous Monitoring Tools
  • 20. What Is Nagios ? Nagios is an open-source continuous monitoring tool used to monitor the system, network, and IT infrastructure. ● It monitors the specified hosts and services that are specified and alerts you when things go bad and when they get better. ● Nagios is available in two variants - namely Nagios Core and Nagios XI. ● Nagios Core is an open source product whereas Nagios XI is a licensed version.
  • 21. Why Nagios? Ensures security maintenance and service availability Facilitates automatic problem resolution Finds any type of network or server issues Identifies the root cause of the problem Monitors the infrastructure actively Troubleshoots server performance issues Facilitates infrastructure upgrade and planning 6 7 1 2 3 4 5
  • 22. Features of Nagios Monitors network services (SMTP, POP3, HTTP, and PING ) Monitors host resources (processor load and disk usage) Facilitates customized service checks because of the simple plugin design Facilitates parallelized service checks Helps you to define network host hierarchy by parent hosts Nagios Features 01 02 03 04 05
  • 23. Features of Nagios Enables contact notifications on problem resolution Facilitates proactive problem resolution by event handlers Enables automatic log file rotation Enables implementation of monitoring hosts Provides an optional web interface for viewing details Nagios Features 06 07 08 09 10
  • 24. Nagios Architecture Nagios uses a client/server architecture. The Nagios server usually runs on a host and the plugins run on remote hosts which are specified for monitored. Nagios Server Remote host or client
  • 25. Nagios Architecture Plugins Process Scheduler Nagios Server Plugins Plugins Remote Host Nagios GUI Plugins Nagios architecture is comprised of three main components namely - the process scheduler (running on the Nagios server), the plugins, and the user interface.
  • 27. Nagios Plugins Plugins are compiled executables or scripts (Perl scripts and shell scripts) that can be run from the command line to check the status of a host or service. ● Plugins allow the user to monitor databases, operating systems, applications, network equipment, and protocols. ● They are standalone extensions to Nagios Core.
  • 28. Types of Nagios Plugins 02 Official Nagios Plugins Developed and maintained by official Nagios plugin team. Community Plugins Developed by hundreds of Nagios community members. 03 Custom Plugins Developed by users in order to suit their requirements. 01
  • 29. Nagios Remote Plugin Executor (NRPE) NRPE is an addon that allows you to run Nagios plugins on remote machines to monitor remote machine metrics (disk usage, and CPU load). Source: https://exchange.nagios.org/directory/Addons/Monitoring-Agents/NRPE--2D- Nagios-Remote-Plugin-Executor/details NRPE addon consists of: • The check_nrpe plugin, which resides on the local monitoring host. • The NRPE daemon, which runs on the remote Linux or Unix host.
  • 30. Nagios Remote Plugin Executor (NRPE) To monitor a resource of a service from a remote Linux or Unix machine: ● Nagios executes the check_nrpe plugin and identifies which service needs to be checked. ● The check_nrpe plugin contacts the NRPE daemon on the remote host over SSL protected connection. ● The NRPE daemon runs the required Nagios plugin to check the service or resource. ● The results from the service check are sent by the NRPE daemon to the check_nrpe plugin, which then returns the transfers to the Nagios process.
  • 31. How to Configure Plugins on Remote Nodes? Nagios and NRPE can perform all the processes only with Nagios plugins. Nagios plugins monitor hosts, devices, services, protocols, and applications with Nagios and sends reports the report to NRPE. NRPE sends those reports to Nagios server based on the Nagios server request.
  • 32. How to Configure Plugins on Remote Nodes ? To monitor the remote host in the Nagios server, two installations are required: • Remote Host: NRPE plugin and Nagios plugins • Nagios Server: NRPE plugin
  • 34. Nagios Installation ● A Linux machine (or UNIX variant) that has network access. ● A C compiler installed (In case you are installing from source code). ● It is optional to use the CGIs included with Nagios Core. However, if you plan to use them, you should have the software listed below: 1. Apache web server 2. Thomas Boutell's gd library - version 1.6.3 or higher System Requirements for Nagios Core:
  • 35. Problem Statement: You are given a project to install and setup Nagios monitoring tool. How to Install Nagios Monitoring Tool ? Duration: 25 Min.
  • 36. Assisted Practice: Guidelines Steps to install and setup Nagios monitoring tool on Linux: 1. Install package dependencies. 2. Install Nagios Core 4.4.6. 3. Install Nagios and NRPE Plugins.
  • 38. Using the Default Plugins There are some default plugins available to monitor devices and services, including: ● HTTP, POP3, IMAP, FTP, SSH, and DHCP ● CPU Load, Disk Usage, Memory Usage, and Current Users ● Unix and Linux, Windows, and Netware Servers ● Routers and switches The Nagios Exchange website offers a number of additional plugins developed by users, that can be used as per your requirement.
  • 39. Using the Default Plugins ● check_http: Plugin used for monitoring web servers ● check_ftp: Plugin used for monitoring FTP servers ● check_ssh: Plugin used for monitoring SSH servers ● check_smtp: Plugin used for monitoring your email servers ● check_pop: Plugin used for monitoring the POP3 service on your email servers ● check_imap: Plugin used for monitoring IMAP4 service on your email servers
  • 40. Problem Statement: You are given a project to add a Linux node to the Nagios server for monitoring. How to Add Servers to Nagios ? Duration: 25 Min.
  • 41. Assisted Practice: Guidelines Steps to add a Linux node to the Nagios server for monitoring : 1. Install the NRPE server on the client server. 2. Add the client configuration to the Nagios server. 3. Test the setup.
  • 43. ELK Stack ELK Stack is an open-source, distributed monitoring solution with centralized logging, metric, and application performance monitoring, suitable for almost any structured and unstructured data source. ELK is the acronym for three open source projects: Elasticsearch, Logstash, and Kibana. Recently a new component called Beats was included in the ELK Stack.
  • 44. Main Components of ELK Stack Elasticsearch Distributed search and analytics engine that can store, index, search, and analyze data. Beats Lightweight data collectors that fetch metrics, data logs, and send it to Logstash or Elasticsearch. Logstash Data collection pipeline tool that collects data inputs and feeds the Elasticsearch. Kibana Data visualization tool that provides a web interface for searching and visualizing logs. 01 02 03 04
  • 45. Elasticsearch 1. Store: It stores complex data structures that are serialized as JSON documents 1. Index: Documents are indexed almost real-time 1. Search: Supports searches through inverted index 1. Analyze: Dynamic mapping makes schema-less possible by detecting and adding new fields Functions Elasticsearch is a distributed search and analytics engine that provides the real-time search and analytics for data (structured and unstructured). Elasticsearch
  • 46. Logstash ● It is the data processing component of the ELK Stack. ● Collects data from various sources and feeds Elasticsearch or normalizes it to other destinations. Source: https://elastic-stack.readthedocs.io/en/latest/introduction.html#main-components
  • 47. Kibana Kibana is the data visualization tool that provides the graphical user interface for Elasticsearch.
  • 48. Beats Beats are lightweight data collectors that are installed directly on the data source and collect data for specific purposes, which are then sent to Elasticsearch or Logstash. Most frequently used collectors are: ● Filebeat: sends local file records. ● Winlogbeat: sends Windows event logs. ● Metricbeat: sends system or application performance metrics. Source: https://elastic-stack.readthedocs.io/en/latest/introduction.html#main-components
  • 49. ELK Stack Overview Source: https://elastic-stack.readthedocs.io/en/latest/introduction.html#main-components
  • 50. A set of utilities provide the most powerful analytics for the business Combination of Elasticsearch for searching data, Logstash to process and store various stats, and Kibana to visualize stats on front-end application Open-source. Collects logs from servers and applications that can be analyzed for improvement Backup of monitoring stats and able to store our monitoring system View stats to detect defects in applications Logstash can be used to gather stats from a variety of data sources and sent to Kibana Install clients to collect data and send it back to the ELK Stack ELK Stack Overview
  • 51. Setting up Complete ELK Stack for Log Management Based on the use-case and environment, businesses might need different logging architectures. The classic ELK stack architecture can support small environments as shown below: Data collection and processing Data storage and indexing Data analysis and visualization
  • 52. Setting up Complete ELK Stack for Log Management For environments that provides Big Data, some additional components might be required as shown below: Accumulation and processing Storage and indexing Data analysis and visualization Buffering Data collection
  • 53. Problem Statement: You are given a project to demonstrate continuous monitoring on Docker with ELK Stack. Continuous Monitoring on Docker with ELK Stack Duration: 35 Min.
  • 54. Assisted Practice: Guidelines Steps to setup continuous monitoring on Docker with ELK Stack: 1. Setup ELK Stack on Docker. 2. Configure Jenkins pipeline for Docker build and deployment. 3. Run the Spring Boot application and check the logs in Kibana.
  • 55. Key Takeaways Continuous monitoring involves monitoring and identifying compliance issues, security risks in each phase of the DevOps lifecycle. ELK Stack is a combination of Elasticsearch for searching data, Logstash to process and store various stats, and Kibana to visualize stats on front-end application. ELK Stack is a distributed monitoring solution with centralized logging, metric and application performance monitoring capabilities. Nagios is an open-source continuous monitoring tool used to monitor the system, network, and IT infrastructure. Key Takeaways NRPE is a Nagios addon that allows you to run Nagios plugins on remote machines to monitor remote machine metrics.