Identifying SQL databases that slip through the cracks with MOM 2005
12 days until Christmas, if you count today and the 25th. MS Operations Manager 2007 RC2 is here, so it's time to change focus. But MOM 2005 is still here taking care of business, and cannot be ignored (you know what they say about a woman scorned). I'm going to try and drop something useful on the site for MOMv2 every day between now and December 25.....a "12 Days of Christmas" for MOM, so to speak.
So, On the 1st day of Christmas, my true love had SQL databases not being backed up in her environment.
MOM 2005 does a good job at alerting on database backup failures.....but what about databases that NEVER GET BACKED UP AT ALL? Some environments simply lack the continuity from an operational process perspective to ensure that new databases deployed are given a proper maintenance plan that includes a periodic full backup. Some IT folks forget to mention the little things like, "Hey DBA's, I deployed this really important database on a new server today!".....maybe I am just splitting hairs :(
Here's a simple script (Last Full SQL Backup) that will alert you of every database on every server in your environment that hasnt received a full backup in a user-defined number of days.
Script Parameters:
Installation: Configure this script as part of an event rule with a timed provider to run in your environment every 24 hours. Include in a rule group associated with all your SQL Servers (works on SQL 2000 & 2005 for sure). Pay attention to the script parameters described above (also documented in the script header).
Get it here: http://www.momresources.org/momscripts/lastfullSQLbackup.txt
Alerts: Generates a very simple alert to diplaying the database name and days since last full backup.
|










Comments on "Identifying SQL databases that slip through the cracks with MOM 2005"
-
Alpesh Nakar said ... (5:11 PM) :
post a comment links to this postAwesome! It is very generous of you to dish out 12 freebies.
Cheers!
Alpesh
P.S. Season's Greeting and Happy New Year