Solved

SQL Server Automation Alert

Posted on 2014-03-18
5
292 Views
Last Modified: 2014-03-28
I would really be grateful if I can get help in creating the following alerts inside my sql server environments.

How can I create alert for CPU - if CPU greater than 90% and not drop below in 1 min then alert message send via text message.

How can I create alert for slow running SQL Server - if memory use is greater then 90% and not drop below that in 1min then alert.

How can I create alert for locking and blocking greater than 2min and not cleared out without 2 min then alert

How can I create alert for sudden SQL Server shut down and get notified immediately by a text message.

How can I create alert to get notified when database space is greater than 80% and get an immediate text message to increase database space.

Thanks for your help
0
Comment
Question by:Favorable
5 Comments
 
LVL 69

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 125 total points
ID: 39938353
>> How can I create alert for sudden SQL Server shut down and get notified immediately by a text message. <<

If SQL Server shut down, it obviously wouldn't be able to send the notification :-).  In that situation, you'd need something outside of SQL Server to notify you.
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 250 total points
ID: 39938537
if memory use is greater then 90% and not drop below that in 1min then alert.
Out of curiosity, why is this a problem?  When you have been using SQL Server sometime and unless you limit the max memory drastically, it will use all available memory and not release it.  So typically it will reach to somewhere around 95% and stay there until the next time you shutdown.
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 250 total points
ID: 39938540
But to answer your question, you best bet is to purchase a third party tool such as Red-Gate's SQL Monitor to take care of most of these types of problems.
0
 
LVL 5

Assisted Solution

by:Pankaj_401
Pankaj_401 earned 125 total points
ID: 39939418
As suggested above, If you are open with third party option, you can have check this application which is capable  to fulfill such terms and notify via customized emails for each critical changes with real-time alerts.
0
 

Author Comment

by:Favorable
ID: 39962315
The third party tool is actually doing the job.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now