SlideShare une entreprise Scribd logo
1  sur  31
Smarter Technology
for Better Business
How to Build a
Centralized Monitoring Solution:
Never Miss a Backup
Building a Centralized Monitoring Solution
Agenda
Introductions
Today’s Goals
The Traditional Method
New Centralized Method
The Approach
Aspect Solution
Introductions and Qualifications:
Presenting Today…
• Over 20 years of solid project leadership and technical experience in
Data Management, Data Integration, Database Administration.
• Extensive expertise with logical and physical DBA activities with both
SQL Server and Oracle.
• Currently providing remote database administration and monitoring
services for multiple clients across industries.
John Abrams
Senior DBA/Data Architect
Mike McDonnell
Senior DBA/Data Architect
Building a Centralized Monitoring Solution
Today’s Goals
Outline a Better Approach to Monitoring to Ensure:
Databases Available
Backups Occurring as Scheduled
No Issues with Disk Space Usage/File Size
And… Achieve All This in the Most
Efficient Way Possible
Building a Centralized Monitoring Solution
Traditional Maintenance and
Alerting Methods
Utilize Maintenance Plans
Utilize Third-Party Backup Agents
Utilize Custom Scripts with Alert Notifications
Or….no maintenance/monitoring at all
Building a Centralized Monitoring Solution
Typical Alert Generating Activities:
Check Frequency
DB Integrity
Daily
(At least weekly)
Reorganize Index
Weekly
(Daily if time)
Rebuild Index
Weekly
(Daily if time)
Update Statistics
Weekly
(Daily if time)
Execute Agent Job Depends
Backup DB (Full) Weekly
Backup DB (Diff) Daily
Backup DB (Transaction) Hourly
Maintenance Cleanup Daily
Clean Up History Weekly
Building a Centralized Monitoring Solution
Pitfalls with Traditional Methods:
Missed Backups:
• Maintenance Plans are modified from All User to selected
databases, potentially leaving new databases without backup.
No Notice of Failed Jobs:
• SQL Agent does not restart, no jobs run-without your knowledge.
Missed Alerts:
• Too many alerts: Multiple success/failure emails buried in inbox.
Undetected Unavailable Database Instance:
• Monitoring not centralize; difficult to detect.
Building a Centralized Monitoring Solution
Pitfalls:
Missed Backups
Too Many Alerts
No Notice of Failed Jobs
Undetected offline DB
instances
Resolution:
Proactive
Centralized
Monitoring
…that pulls data out of
the environment.
Building a Centralized Monitoring Solution
A Better Method:
What is
Centralized
Monitoring?
All Monitoring Components
Run on a Centralized Server:
 Monitoring Jobs to collect and store
critical info.
 Connection information used to link
to monitored servers.
 Procedures to run jobs and generate
notifications.
Building a Centralized Monitoring Solution
A Better Method:
Why
Centralized
Monitoring is
Better
 Scalable and Less Labor Intensive: Single set
of monitoring jobs, rather than deploying the same
set of jobs across 100 servers.
 Nothing Slips Through the Cracks: You do not
miss when jobs do not run.
 One Single Email: Email displays results across
entire environment-rather than multiple emails lost
in your inbox.
 Historical Data Readily Available: Data can be
used for trending and alerting.
Building a Centralized Monitoring Solution
A Better Method:
Why
Centralized
Monitoring is
Better
 Proactive, Not Reactive: Trend and forecast
collected data so you can predict issues before
they occur.
 Discover Opportunities for Consolidation:
Easy to collect data that allows you to
 Retire inactive databases
 Consolidate servers
 Reclaim disk space
 Flexible Framework: The sky is the limit—you
can easily expand & extend monitoring & trending.
Single Tier
Approach
Components Running on
One centralized DB Server:
• Meta Data to hold info
about servers, connection
strings, jobs to send alerts,
results tables, etc.
• Linked servers to connect
to all destination
databases.
• Dynamic SQL
Generating Procedure to
run jobs, store results, and
send alerts.
Building a Centralized Monitoring Solution
Two Approaches: Single-Tier
Multi-Tier
Approach
Adds App Server and
Additional Components:
• Same Data Model:
adds additional tables for
scheduling jobs to run on
instances.
• Utilizes Windows
Service Agent to
connect, execute SQL,
and send alerts.
• Adds Front End to
manage job maintenance,
view alerts and reports.
Building a Centralized Monitoring Solution
Two Approaches: Multi-Tier
Building a Centralized Monitoring Solution
Key Tables
Included in Data Model
Server
Holds server configuration information.
DB Instance
Stores database connection string information for each instance.
Jobs
Stores job description and SQL.
Job Schedule
Stores scheduling information.
Results Tables
Multiple tables store results gathered from each job.
Create
Multiple
Data Gather
Jobs
Sends Single
Alert Email
Generates
• Trends
• Forecasts
• Consolidation
Opportunities
Stored
Procedures
Analyze
Data
Building a Centralized Monitoring Solution
Centralized Monitoring Components:
Data
Stored in
Results
Tables
Building a Centralized Monitoring Solution
Implement Key Queries to Detect:
Building a Centralized Monitoring Solution
SQL Query: Gather Database Backup Info
Building a Centralized Monitoring Solution
SQL Query: Gather Database Failed Jobs
Building a Centralized Monitoring Solution
SQL Query: Gather Database File Size
Building a Centralized Monitoring Solution
SQL Procedure: Gather Disk Free Space
Utilize SQL Hidden Procedure:
EXEC master..xp_fixeddrives
Building a Centralized Monitoring Solution
SQL Procedure: Gather Access Information
Building a Centralized Monitoring Solution
Detect and Alert SP: Failed Backups/Jobs
 SELECT Last Set of Records from Data Results
Table.
 Use MAX(LASTMOD) value to select
records.
 IF detects SOME records (i.e., where backup
date is older than 24 hours OR where job
status indicates failure)
 THEN
 Generate alert email.
 Write records to an Alert table.
Alerting
Stored
Procedure
Detects failures,
sends alert, and
stores alert history
Building a Centralized Monitoring Solution
Detect and Alert SP: Disk Space/File Size
 SELECT Current Set of Records from Data
Results Table AND Set of Records inserted X
hours (e.g. 24 hours) ago.
 Use MAX(LASTMOD) value to select both sets
of records.
 COMPARE file size/disk space against rolling
average (specified time period, yesterday, per
month)
 IF detects SOME records where size increased
by X%...
 THEN
 Generate alert email.
 Write records to alert table.
Alerting
Stored
Procedure
Detects out of range
conditions, sends alert,
and stores alert history
Building a Centralized Monitoring Solution
Detect and Report Inactivity
 SELECT Current Set of Records from Data
Results Table.
 COMPARE today’s date with last access date
from current record.
 IF date is more than X days ago...
 THEN
 Add to report.
 Write records to history table.
Reporting
Stored
Procedure
Detects inactivity,
sends report, and
stores history
Building a Centralized Monitoring Solution
Trending and Forecasting
Forecasting
Stored
Procedure
Collects trending data,
analyze over time, and
forecasts to prevent
issues from occurring
 SELECT
 Data Set (Time Period-Value) for analysis.
 Metric:
 Free Disk Space
 Data File Size
 Record Counts
 Table Size
 ANALYZE:
 Determine: # of Periods to Analyze
 Determine: # of Periods to Forecast
 CALCULATE & FORECAST:
 Calculate & apply historical slope to create
forecast.
Building a Centralized Monitoring Solution
Add Jobs to Assist with Tuning
For Example:
Monitor Index Usage
Monitor Memory Utilization
Monitor Distribution of Data within Tables
Monitor Fact Table Record Count Growth
Utilize PowerShell to collect Server Metrics
Flexible Framework Lets You Easily Extend Monitoring
Building a Centralized Monitoring Solution
The Aspect Solution: Prodative® WatchDog EMS
WatchDog
EMS
Centralizes
the Right Info
& Alerts Across
Platforms
Capture Key
Data for
Trending &
Forecasting
Easy to
Configure
and Use
Displays info and alerts (e.g.
availability, backup, and file size)via
a web portal; no need to go to the
server for info.
Solution is simple to configure and
use for immediate impact; no need
for full-time staff for support.
Enables you to analyze, predict,
prepare, and address issues before
users are impacted.
Monitor Critical Information and Alerts:
 Database Availability
 Missed Backups
 Critical Disk Space & File System Usage
(at both the device and subdirectory level)
 Problematic Indexing and Queries
Monitor
Info & Alerts
Introducing Prodative® WatchDog EMS
Features
 View Trending Data, Analyze
and Generate Reports
 Track Server and Job Statistics
 Track Disk Space and Database
Growth Over Time
Analyze &
Report
Introducing Prodative® WatchDog EMS
Features
 Maintain and Extend Monitoring
using Flexible Controls:
 Extend and Add Monitoring Jobs
 Set Alerting Parameters
 Add Reports
 Maintain Users
Maintain &
Extend
Introducing Prodative® WatchDog EMS
Features
Building a Centralized Monitoring Solution
Questions…

Contenu connexe

Similaire à How to Build a Centralized Database Monitoring Solution - Never Miss a Backup

Best Practices and Lessons Learned on Our IBM Rational Insight Deployment
Best Practices and Lessons Learned on Our IBM Rational Insight DeploymentBest Practices and Lessons Learned on Our IBM Rational Insight Deployment
Best Practices and Lessons Learned on Our IBM Rational Insight DeploymentMarc Nehme
 
Data Collection Process And Integrity
Data Collection Process And IntegrityData Collection Process And Integrity
Data Collection Process And IntegrityGerrit Klaschke, CSM
 
Data Warehouses & Deployment By Ankita dubey
Data Warehouses & Deployment By Ankita dubeyData Warehouses & Deployment By Ankita dubey
Data Warehouses & Deployment By Ankita dubeyAnkita Dubey
 
(2011 10) rug - san ramon - autonomics and modernization
(2011 10) rug - san ramon - autonomics and modernization(2011 10) rug - san ramon - autonomics and modernization
(2011 10) rug - san ramon - autonomics and modernizationevgeni77
 
SharePoint Troubleshooting
SharePoint TroubleshootingSharePoint Troubleshooting
SharePoint TroubleshootingToby McGrail
 
Performance Monitoring And Tuning In Sql Server 2008 Tsql
Performance Monitoring And Tuning In Sql Server 2008 TsqlPerformance Monitoring And Tuning In Sql Server 2008 Tsql
Performance Monitoring And Tuning In Sql Server 2008 Tsqlcoolajju143
 
What is OLAP -Data Warehouse Concepts - IT Online Training @ Newyorksys
What is OLAP -Data Warehouse Concepts - IT Online Training @ NewyorksysWhat is OLAP -Data Warehouse Concepts - IT Online Training @ Newyorksys
What is OLAP -Data Warehouse Concepts - IT Online Training @ NewyorksysNEWYORKSYS-IT SOLUTIONS
 
SQL Server and System Center Advisor
SQL Server and System Center AdvisorSQL Server and System Center Advisor
SQL Server and System Center AdvisorEduardo Castro
 
04_DP_300T00A_Monitor.pptx
04_DP_300T00A_Monitor.pptx04_DP_300T00A_Monitor.pptx
04_DP_300T00A_Monitor.pptxKareemBullard1
 
Habits of Effective SAS Programmers
Habits of Effective SAS ProgrammersHabits of Effective SAS Programmers
Habits of Effective SAS ProgrammersSunil Gupta
 
Perfmon And Profiler 101
Perfmon And Profiler 101Perfmon And Profiler 101
Perfmon And Profiler 101Quest Software
 
SplunkLive! Frankfurt 2018 - Integrating Metrics & Logs
SplunkLive! Frankfurt 2018 - Integrating Metrics & LogsSplunkLive! Frankfurt 2018 - Integrating Metrics & Logs
SplunkLive! Frankfurt 2018 - Integrating Metrics & LogsSplunk
 
Understanding System Performance
Understanding System PerformanceUnderstanding System Performance
Understanding System PerformanceTeradata
 
Why advanced monitoring is key for healthy
Why advanced monitoring is key for healthyWhy advanced monitoring is key for healthy
Why advanced monitoring is key for healthyDenodo
 
Telelogic Dashboard Presentation
Telelogic Dashboard PresentationTelelogic Dashboard Presentation
Telelogic Dashboard PresentationBill Duncan
 
EnCase Enterprise Basic File Collection
EnCase Enterprise Basic File Collection EnCase Enterprise Basic File Collection
EnCase Enterprise Basic File Collection Damir Delija
 
SplunkLive! Munich 2018: Integrating Metrics and Logs
SplunkLive! Munich 2018: Integrating Metrics and LogsSplunkLive! Munich 2018: Integrating Metrics and Logs
SplunkLive! Munich 2018: Integrating Metrics and LogsSplunk
 

Similaire à How to Build a Centralized Database Monitoring Solution - Never Miss a Backup (20)

Best Practices and Lessons Learned on Our IBM Rational Insight Deployment
Best Practices and Lessons Learned on Our IBM Rational Insight DeploymentBest Practices and Lessons Learned on Our IBM Rational Insight Deployment
Best Practices and Lessons Learned on Our IBM Rational Insight Deployment
 
Data Collection Process And Integrity
Data Collection Process And IntegrityData Collection Process And Integrity
Data Collection Process And Integrity
 
Data Warehouses & Deployment By Ankita dubey
Data Warehouses & Deployment By Ankita dubeyData Warehouses & Deployment By Ankita dubey
Data Warehouses & Deployment By Ankita dubey
 
(2011 10) rug - san ramon - autonomics and modernization
(2011 10) rug - san ramon - autonomics and modernization(2011 10) rug - san ramon - autonomics and modernization
(2011 10) rug - san ramon - autonomics and modernization
 
SharePoint Troubleshooting
SharePoint TroubleshootingSharePoint Troubleshooting
SharePoint Troubleshooting
 
Performance Monitoring And Tuning In Sql Server 2008 Tsql
Performance Monitoring And Tuning In Sql Server 2008 TsqlPerformance Monitoring And Tuning In Sql Server 2008 Tsql
Performance Monitoring And Tuning In Sql Server 2008 Tsql
 
SAP CBM
SAP CBMSAP CBM
SAP CBM
 
Trahan
TrahanTrahan
Trahan
 
Project report
Project report Project report
Project report
 
What is OLAP -Data Warehouse Concepts - IT Online Training @ Newyorksys
What is OLAP -Data Warehouse Concepts - IT Online Training @ NewyorksysWhat is OLAP -Data Warehouse Concepts - IT Online Training @ Newyorksys
What is OLAP -Data Warehouse Concepts - IT Online Training @ Newyorksys
 
SQL Server and System Center Advisor
SQL Server and System Center AdvisorSQL Server and System Center Advisor
SQL Server and System Center Advisor
 
04_DP_300T00A_Monitor.pptx
04_DP_300T00A_Monitor.pptx04_DP_300T00A_Monitor.pptx
04_DP_300T00A_Monitor.pptx
 
Habits of Effective SAS Programmers
Habits of Effective SAS ProgrammersHabits of Effective SAS Programmers
Habits of Effective SAS Programmers
 
Perfmon And Profiler 101
Perfmon And Profiler 101Perfmon And Profiler 101
Perfmon And Profiler 101
 
SplunkLive! Frankfurt 2018 - Integrating Metrics & Logs
SplunkLive! Frankfurt 2018 - Integrating Metrics & LogsSplunkLive! Frankfurt 2018 - Integrating Metrics & Logs
SplunkLive! Frankfurt 2018 - Integrating Metrics & Logs
 
Understanding System Performance
Understanding System PerformanceUnderstanding System Performance
Understanding System Performance
 
Why advanced monitoring is key for healthy
Why advanced monitoring is key for healthyWhy advanced monitoring is key for healthy
Why advanced monitoring is key for healthy
 
Telelogic Dashboard Presentation
Telelogic Dashboard PresentationTelelogic Dashboard Presentation
Telelogic Dashboard Presentation
 
EnCase Enterprise Basic File Collection
EnCase Enterprise Basic File Collection EnCase Enterprise Basic File Collection
EnCase Enterprise Basic File Collection
 
SplunkLive! Munich 2018: Integrating Metrics and Logs
SplunkLive! Munich 2018: Integrating Metrics and LogsSplunkLive! Munich 2018: Integrating Metrics and Logs
SplunkLive! Munich 2018: Integrating Metrics and Logs
 

Dernier

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 

Dernier (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

How to Build a Centralized Database Monitoring Solution - Never Miss a Backup

  • 1. Smarter Technology for Better Business How to Build a Centralized Monitoring Solution: Never Miss a Backup
  • 2. Building a Centralized Monitoring Solution Agenda Introductions Today’s Goals The Traditional Method New Centralized Method The Approach Aspect Solution
  • 3. Introductions and Qualifications: Presenting Today… • Over 20 years of solid project leadership and technical experience in Data Management, Data Integration, Database Administration. • Extensive expertise with logical and physical DBA activities with both SQL Server and Oracle. • Currently providing remote database administration and monitoring services for multiple clients across industries. John Abrams Senior DBA/Data Architect Mike McDonnell Senior DBA/Data Architect
  • 4. Building a Centralized Monitoring Solution Today’s Goals Outline a Better Approach to Monitoring to Ensure: Databases Available Backups Occurring as Scheduled No Issues with Disk Space Usage/File Size And… Achieve All This in the Most Efficient Way Possible
  • 5. Building a Centralized Monitoring Solution Traditional Maintenance and Alerting Methods Utilize Maintenance Plans Utilize Third-Party Backup Agents Utilize Custom Scripts with Alert Notifications Or….no maintenance/monitoring at all
  • 6. Building a Centralized Monitoring Solution Typical Alert Generating Activities: Check Frequency DB Integrity Daily (At least weekly) Reorganize Index Weekly (Daily if time) Rebuild Index Weekly (Daily if time) Update Statistics Weekly (Daily if time) Execute Agent Job Depends Backup DB (Full) Weekly Backup DB (Diff) Daily Backup DB (Transaction) Hourly Maintenance Cleanup Daily Clean Up History Weekly
  • 7. Building a Centralized Monitoring Solution Pitfalls with Traditional Methods: Missed Backups: • Maintenance Plans are modified from All User to selected databases, potentially leaving new databases without backup. No Notice of Failed Jobs: • SQL Agent does not restart, no jobs run-without your knowledge. Missed Alerts: • Too many alerts: Multiple success/failure emails buried in inbox. Undetected Unavailable Database Instance: • Monitoring not centralize; difficult to detect.
  • 8. Building a Centralized Monitoring Solution Pitfalls: Missed Backups Too Many Alerts No Notice of Failed Jobs Undetected offline DB instances Resolution: Proactive Centralized Monitoring …that pulls data out of the environment.
  • 9. Building a Centralized Monitoring Solution A Better Method: What is Centralized Monitoring? All Monitoring Components Run on a Centralized Server:  Monitoring Jobs to collect and store critical info.  Connection information used to link to monitored servers.  Procedures to run jobs and generate notifications.
  • 10. Building a Centralized Monitoring Solution A Better Method: Why Centralized Monitoring is Better  Scalable and Less Labor Intensive: Single set of monitoring jobs, rather than deploying the same set of jobs across 100 servers.  Nothing Slips Through the Cracks: You do not miss when jobs do not run.  One Single Email: Email displays results across entire environment-rather than multiple emails lost in your inbox.  Historical Data Readily Available: Data can be used for trending and alerting.
  • 11. Building a Centralized Monitoring Solution A Better Method: Why Centralized Monitoring is Better  Proactive, Not Reactive: Trend and forecast collected data so you can predict issues before they occur.  Discover Opportunities for Consolidation: Easy to collect data that allows you to  Retire inactive databases  Consolidate servers  Reclaim disk space  Flexible Framework: The sky is the limit—you can easily expand & extend monitoring & trending.
  • 12. Single Tier Approach Components Running on One centralized DB Server: • Meta Data to hold info about servers, connection strings, jobs to send alerts, results tables, etc. • Linked servers to connect to all destination databases. • Dynamic SQL Generating Procedure to run jobs, store results, and send alerts. Building a Centralized Monitoring Solution Two Approaches: Single-Tier
  • 13. Multi-Tier Approach Adds App Server and Additional Components: • Same Data Model: adds additional tables for scheduling jobs to run on instances. • Utilizes Windows Service Agent to connect, execute SQL, and send alerts. • Adds Front End to manage job maintenance, view alerts and reports. Building a Centralized Monitoring Solution Two Approaches: Multi-Tier
  • 14. Building a Centralized Monitoring Solution Key Tables Included in Data Model Server Holds server configuration information. DB Instance Stores database connection string information for each instance. Jobs Stores job description and SQL. Job Schedule Stores scheduling information. Results Tables Multiple tables store results gathered from each job.
  • 15. Create Multiple Data Gather Jobs Sends Single Alert Email Generates • Trends • Forecasts • Consolidation Opportunities Stored Procedures Analyze Data Building a Centralized Monitoring Solution Centralized Monitoring Components: Data Stored in Results Tables
  • 16. Building a Centralized Monitoring Solution Implement Key Queries to Detect:
  • 17. Building a Centralized Monitoring Solution SQL Query: Gather Database Backup Info
  • 18. Building a Centralized Monitoring Solution SQL Query: Gather Database Failed Jobs
  • 19. Building a Centralized Monitoring Solution SQL Query: Gather Database File Size
  • 20. Building a Centralized Monitoring Solution SQL Procedure: Gather Disk Free Space Utilize SQL Hidden Procedure: EXEC master..xp_fixeddrives
  • 21. Building a Centralized Monitoring Solution SQL Procedure: Gather Access Information
  • 22. Building a Centralized Monitoring Solution Detect and Alert SP: Failed Backups/Jobs  SELECT Last Set of Records from Data Results Table.  Use MAX(LASTMOD) value to select records.  IF detects SOME records (i.e., where backup date is older than 24 hours OR where job status indicates failure)  THEN  Generate alert email.  Write records to an Alert table. Alerting Stored Procedure Detects failures, sends alert, and stores alert history
  • 23. Building a Centralized Monitoring Solution Detect and Alert SP: Disk Space/File Size  SELECT Current Set of Records from Data Results Table AND Set of Records inserted X hours (e.g. 24 hours) ago.  Use MAX(LASTMOD) value to select both sets of records.  COMPARE file size/disk space against rolling average (specified time period, yesterday, per month)  IF detects SOME records where size increased by X%...  THEN  Generate alert email.  Write records to alert table. Alerting Stored Procedure Detects out of range conditions, sends alert, and stores alert history
  • 24. Building a Centralized Monitoring Solution Detect and Report Inactivity  SELECT Current Set of Records from Data Results Table.  COMPARE today’s date with last access date from current record.  IF date is more than X days ago...  THEN  Add to report.  Write records to history table. Reporting Stored Procedure Detects inactivity, sends report, and stores history
  • 25. Building a Centralized Monitoring Solution Trending and Forecasting Forecasting Stored Procedure Collects trending data, analyze over time, and forecasts to prevent issues from occurring  SELECT  Data Set (Time Period-Value) for analysis.  Metric:  Free Disk Space  Data File Size  Record Counts  Table Size  ANALYZE:  Determine: # of Periods to Analyze  Determine: # of Periods to Forecast  CALCULATE & FORECAST:  Calculate & apply historical slope to create forecast.
  • 26. Building a Centralized Monitoring Solution Add Jobs to Assist with Tuning For Example: Monitor Index Usage Monitor Memory Utilization Monitor Distribution of Data within Tables Monitor Fact Table Record Count Growth Utilize PowerShell to collect Server Metrics Flexible Framework Lets You Easily Extend Monitoring
  • 27. Building a Centralized Monitoring Solution The Aspect Solution: Prodative® WatchDog EMS WatchDog EMS Centralizes the Right Info & Alerts Across Platforms Capture Key Data for Trending & Forecasting Easy to Configure and Use Displays info and alerts (e.g. availability, backup, and file size)via a web portal; no need to go to the server for info. Solution is simple to configure and use for immediate impact; no need for full-time staff for support. Enables you to analyze, predict, prepare, and address issues before users are impacted.
  • 28. Monitor Critical Information and Alerts:  Database Availability  Missed Backups  Critical Disk Space & File System Usage (at both the device and subdirectory level)  Problematic Indexing and Queries Monitor Info & Alerts Introducing Prodative® WatchDog EMS Features
  • 29.  View Trending Data, Analyze and Generate Reports  Track Server and Job Statistics  Track Disk Space and Database Growth Over Time Analyze & Report Introducing Prodative® WatchDog EMS Features
  • 30.  Maintain and Extend Monitoring using Flexible Controls:  Extend and Add Monitoring Jobs  Set Alerting Parameters  Add Reports  Maintain Users Maintain & Extend Introducing Prodative® WatchDog EMS Features
  • 31. Building a Centralized Monitoring Solution Questions…