Answered by:
Run monitors at 7 am everyday through script

Question
-
We want to do a check on certain monitors at 7 h in the morning. We want to check if our cluster disk are online and available. Is there a way to run this via powershell or cmd scripts. Please advise, or ask me if you have any further questions. I would appreciate your help.
Regards, Hans
Wednesday, February 16, 2011 10:00 AM
Answers
-
Hi Marco,
I managed to find a small script which can list all servers in a error or in a warning state. So I run this script at 7:00 in the morning, and then I receive the status of the devices at that particulair moment. For now this suites for me. Meanwhile I tried to make it a more sophisticated solution. When it works out, I will blog about it. Thanks for the replies to all of you
cheers, Hans van Deursen
- Marked as answer by Marco Shaw Wednesday, February 23, 2011 2:27 AM
Monday, February 21, 2011 7:45 AM
All replies
-
Hi,
Please check if any information as below will help:
Running a monitor during business hours:
http://nocentdocent.wordpress.com/2009/01/20/running-a-monitor-during-business-hours/
Configuring rules to run during business hours only
Hope it helps.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.Thursday, February 17, 2011 2:49 AM -
Hi Vivian,
hanks for your help. This makes some things crlear to me but it is not exactly what we intend to do. That is to say, if it is possible to do what we want.
Alle rules and monitors may function as they do, but at 7 in the morning we want an extra check to run, and mail the results of that particulair run to us.
Cheers, Hans
Thursday, February 17, 2011 12:22 PM -
Hi Hans
Do you have a script that does the check? If so, simply plug it in to SCOM and set a schedule to run every 24 hours, synchronise at 7am.
Stefan has an example here - it has a SQL query within the VBScript but you'd just need to replace his script with your own.
For running powershell scripts from management packs:
Cheers
Graham
View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/Friday, February 18, 2011 5:19 PM -
Well... I'm thinking one would have to open up the MP to look at what the monitor does, and then look at putting the same logic in a script. I'm not aware of another easy way to easily start a monitor from PowerShell...Sunday, February 20, 2011 1:51 AM
-
Hi Marco,
I managed to find a small script which can list all servers in a error or in a warning state. So I run this script at 7:00 in the morning, and then I receive the status of the devices at that particulair moment. For now this suites for me. Meanwhile I tried to make it a more sophisticated solution. When it works out, I will blog about it. Thanks for the replies to all of you
cheers, Hans van Deursen
- Marked as answer by Marco Shaw Wednesday, February 23, 2011 2:27 AM
Monday, February 21, 2011 7:45 AM -
Hi Graham,
Thanks for your reply. As you can see below I managed to find some kind of a solution. But te links you send me wel certainly help to make it the way I want it. Again, thnak you very much.
Cheers, Hans van Deursen
Monday, February 21, 2011 7:49 AM