I'm a web developer, so I tend to solve everything with a URL check.  This
would be pretty easy with a web page check.  In ASP, for example, the code
would look something like this:

<%
If Day(Now) = 1 AND Hour(Now) >= 3 AND Hour(Now) <= 4 then
                Response.Write("ALIVE")
Else
        'Your database test goes here
        
End If
%>

On the first of the month, between 3am and 4am, it would bypass the check
and just write "ALIVE".  During the rest of the month, it'd run whatever
database-checking code you put in there.  For example, I do a Select
statement against a vital table that should always have data, like our list
of clients.  If the database times out, the page won't write ALIVE.  If
everything works okay, it writes ALIVE.  SA just checks for that word.

Brent



--------------------------------
Brent Ozar - UniFocus
--------------------------------
"Beaches and palm trees appear night and day in his dreams
 A break from his wife, his half-frozen life, the elves and that damn
reindeer team..."
        Jimmy Buffett, Ho Ho Ho and a Bottle of Rum
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 8:46 AM
To: [EMAIL PROTECTED]
Subject: [SA-list] Scheduling..

I would like to request an enhancement/workaround for a scheduling issue we
have with SA...

We have a monitored DB that is shutdown every Saturday morning for
backups...  I have an exception schedule in place so this known outage
doesn't send me an alarm..  Works like a champ.

This DB is also backed up at 03:00 on the 1st day of each new month, which
is obviously a variable day of the week.   I would hate to code an
exception for every single day at 03:00-04:00 and risk missing a true
outage if the DB happens to die during this time on a day that is not the
1st of the month...

Any suggestions for me?

Thanks,
Troy
SA: 4.0.1503




---
Troy Bruder, Manager - Hosting and Microsoft Services
APT Information Technology Consultants
7540 Windsor Dr. STE 204
Allentown, PA 18195
Phone 610.366.1100 -or- 888.2.GET.APT
http://www.aptconsulting.com


To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive


To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive

Reply via email to