Git Product home page Git Product logo

undercovertoolbox's People

Contributors

adedba avatar davidfowleradvanced avatar shaneis avatar sqlundercover avatar undercoverdavid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

undercovertoolbox's Issues

Inspector - Always insert the HTML report into ReportData table

When the report runs it would only have inserted a row into Inspector.ReportData when @Testmode = 1 OR the Email recipient address was NULL or Blank but it makes sense to always insert the data here as it can be used to view old reports if the email becomes lost.

A cleanup should be added which is configurable within the settings table specified in days which will be used in a new query as below:

DELETE FROM [Inspector].[ReportData]
WHERE ReportDate < DATEADD(DAY,-@ReportDataRetention,GETDATE());

Should probably add a nonclustered index on ReportDate too.

Inspector - Add an exclusion to the backups check to exclude Diff backup threshold checking

Inspector.Settings table allows NULLs in the Value column, by setting the Value for DiffBackupThreshold to NULL this could allow the Inspector to ignore thresholds for Differential backups and report as 'N/A' to allow users to exclude if they do not take differential backups.

The Table highlight key at the bottom of the backups check table will also need to show 'DIFF backups excluded from check' rather than 'Last DIFF backup older than X day/s' when set to NULL.

Inspector - Change Backup comparison to Log_Date not Getdate()

When the comparison for the backups check takes place when executing the SQLundercoverInspectorReport procedure , comparisons against last backup date for FULL, DIFF and LOG were done against Getdate() , this was ok if the report was ran within a short period following the collection however if this period was extended then it is possible to exceed thresholds and therefore receive invalid warnings.

Solution: Determine the MAX(Log_Date) per database per AG or Server if non ag, then compare the MAX(Log_Date) against the last backup DATETIME and then evaluate against the threshold values.

Catalogue - Expand Server Module to Include Hardware

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Inspector - Add new table [Inspector].[InspectorUpgradeHistory]

Add new table [Inspector].[InspectorUpgradeHistory] to record each run of the new Setup stored procedure which will include:
Log_Date - Date time the proc was ran (in setup mode not help mode)
PreserveData flag value
Current build
Target build
The call to the stored procedure including parameter values passed e.g.

image

Inspector - Include AG backup preference in the backup check and show only preferred servers for backups

Include AG backup preference in the backup check and show only preferred servers for backups.

The output of the backups check should show the AG backup preference setting (if using AGs) and then list only the replicas applicable for backups for that AG rather than all replicas.

Non AG databases will have 'N/A' as the backup preference and the preferred server/s will be the Server name of the server only.

Inspector - Identify log shipped secondary databases in Database states check

Currently the database states treat 'Restoring' as a single state and highlights these in yellow showing you an advisory condition, it would be good if Log shipped databases can be separated from the restoring state and counted separately so they they can be shown for informational purposes but not flagged up as an advisory condition.

Inspector - Next Growth column not updated when growth rates changed

When the collection runs for Database growths it checks if growth rates have been changed since the last time it was ran, if this is the case then the new growth rate is updated in Inspector.DatabaseFilesSizes however the NextGrowth column is not - this needs to be reclaculated and updated accordingly.

A new line of code needs to be added to the stored procedure Inspector.DatabaseGrowthsInsert as follows:

Snippet from Old code:
--Keep the base table in sync by checking if the growth rates have changed - if they have then update the base table
UPDATE [Sizes]
SET
[GrowthRate] = [GrowthCheck].[GrowthRate_MB],
[Is_percent_growth] = [GrowthCheck].[is_percent_growth],
[LastUpdated] = @lastupdated

Revised code:
--Keep the base table in sync by checking if the growth rates have changed - if they have then update the base table
UPDATE [Sizes]
SET
[GrowthRate] = [GrowthCheck].[GrowthRate_MB],
[Is_percent_growth] = [GrowthCheck].[is_percent_growth],
[NextGrowth] = ([Sizes].[PostGrowthSize_MB] + [GrowthCheck].[GrowthRate_MB]),
[LastUpdated] = @lastupdated

Inspector - Show offline dates against databases set offline.

When a database is set to offline it normally shows in the error log, but as the collection for the inspector runs daily it could be possible to add the collection date of the first occurrence of a database showing a state of OFFLINE, this date could then persist for the duration of the database being offline so that you have a record of when the database was recorded as being offline (by the collection).

If the state changes from offline then the date can be removed and report as normal.

e.g.

OFFLINE SQLDB (Since 09 mar 2018)

Inspector - Improve setup script to validate @InitialSetup parameter value

It is possible to run the setup script against a database where the Inspector is not installed with @initialsetup = 0 (Preserve logged data) the problem is it will not insert any config into the Inspector.Settings table as it will assume you already have config being preserved.

Some logic needs to be added to the setup script to check the following and act accordingly:

A bit belt and bracers but want to ensure that it covers all bases making it easier for the user to setup.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.