Freigeben über


Configuring rules to run during business hours only

I have heard the question about creating rules that execute only during a certain set of hours many times in the last while. While its not straight forward, it is still possible. Attached to the this blog post is a MHTML file which I wrote that describes the steps of how this can be done and also gives you some clues as to how this can be done for a monitor. The MHTML file includes step by step instructions on how this can be done and also provides screen shots. The first time you do it, it will probably take 10-15 minutes. However the next time you do it, I think it will be pretty quick.

If you have questions about the steps written in the MHTML file, please leave me a comment. If you find this useful, please also leave me a comment and I can put together a sample for a monitor.

Scheduled Rules.mht

Comments

  • Anonymous
    September 18, 2008
    PingBack from http://hoursfunnywallpaper.cn/?p=6903
  • Anonymous
    September 18, 2008
    Boris Yanushpolsky has just published a great article on how to configure rules to only run during times
  • Anonymous
    September 18, 2008
    Hi Boris, can you put and example for this for a monitor? Let us say a service? :)
  • Anonymous
    September 18, 2008
    Great article Boris, very clear and extremely useful.  Thanks!
  • Anonymous
    September 18, 2008
    hi Boris, can you put an example for a monitor?A service monitor perhaps?
  • Anonymous
    September 19, 2008
    Yes, please show us how to use this for a monitor.Marco
  • Anonymous
    September 20, 2008
    great boris,exactly what i needed.will try it out! thanks
  • Anonymous
    September 20, 2008
    the issue I feel about this is, mainly: when tuning MOM2005, it was a common thing to just disable something AT CERTAIN TIMES, while leaving it running the rest of the day....that is... for EXISTING rules/monitors. I am not willing to DUPLICATE existing monitors and rules coming in sealed MPs just to do this... it should just be overridable.Also - unrelated to the topic itself - why didn't you just write a post (which would be accessible on browsers other than IE and COULD be read into aggregators, and would be better INDEXED by search engines) with the steps... instead than ATTACHING a .MHT file?
  • Anonymous
    September 21, 2008
    Hi Daniele,I do know that this is not a perfect solution, but this is something people can do in the meanwhile. We are definitely looking at how to make this possible for rules/monitors in sealed MPs.As for the blog post itself, the reason I put it into a MHTML page is because adding pictures with the blog writing tool that comes with blogs.msdn.com is very time consuming. I will try to recreate the blog post with all the content in the post rather than the attachment.
  • Anonymous
    September 22, 2008
    The comment has been removed
  • Anonymous
    September 26, 2008
    Is it possible to use a solution like this to do an override ? I explain. A rule is defined to run everyday and you want to disable the rule for a couple of hours every without using the maintenance mode ? The maintenance mode just permit to disable temporary all rules and monitors of an object.
  • Anonymous
    September 26, 2008
    I am not sure I fully understood the question. Are you looking to make the hours parameter overrideable for custom rules that you create?
  • Anonymous
    October 14, 2008
    This is great Boris. Have you done the same for a monitor yet. We just got a request this week to disable monitoring of a service after hours.
  • Anonymous
    December 31, 2008
    The comment has been removed
  • Anonymous
    December 31, 2008
    In the authoring console you need to do the following:1 - Go to the health model tab2 - Click on the Rules node in the tree view on the left side of the screen3 - Then on the right side of the screen right click and select New->Custom Rule.
  • Anonymous
    January 20, 2009
    A different method for doing this with monitors:http://nocentdocent.wordpress.com/2009/01/20/running-a-monitor-during-business-hours/
  • Anonymous
    March 10, 2009
    Was working good then we had DST this weekend, it does not seem to be honouring the schedule anymore.  Has anyone else seen this behaviour ?
  • Anonymous
    June 11, 2009
    did you take into consideration Rule being run on servers in different Time zone?...<Start>09:00</Start><End>17:00</End>...one more thing image no more show on your page