Question

  Asked: Dec 30 2007   10:01 PM GMT
  Asked by: LeoNidan2007


VB Scripting of MS Scheduler


VBScript, Windows Administration

I am not very good a scripting, I believe in using things that have already been created and molding them into exactly what I need. In windows 2003 I need to monitor and then alert on the scheduler service process, i.e. has it been disabled or is it not working? If not working, then email X number of people that it's not working. Would anyone have a script either like this or similar to this?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
-1
Click to Vote:
  •   0
  •  -1



This can be done natively from within Server 2003. In the services tab there is an option of what to do when the service fails. It allows you to choose either restart, nothing or run an external program.

That program can be a batch file with your commands that need to be run like a dialer program to beep someone or creating an email message to be sent via the default mail application.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Development and Microsoft Windows.

Looking for relevant Development Whitepapers? Visit the SearchWinDevelopment.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

LeoNidan2007  |   Jan 7 2008  3:46PM GMT

I don’t believe this is correct, I’m not specifically talking about the scheduler services so much as the scheduled taskes run by the service. If a scheduled task is stopped, deleted, or fails, I’d need the ability to get a report for it, and alert the appropriate individuals so they can escallate it. If you actually go into the scheduled Tasks dialog and create a task, you’ll find that it doesn’t have the same properties for this type of alerting as say a service would within the services.msc (Task Scheduler).

So, out of the 4 panes withing a Scheduled Task, there are: Task, Scheule; Settings; & Security. None of the tabs has the ability to run an external script to monitor it if it fails, etc.

Thank you though, I appreciate your response.