Maintenance Mode and Alerts
I have a weird issue. I have a process that runs daily and services get stopped and restarted. Using AgentMM I am putting the servers in maintenance mode. Oddly after the servers have come out of maintenance mode I get closed alert notification for the services which have stopped. The services restarted a long time prior to this notification. Why the delay?Thanks Paul
June 25th, 2009 10:34pm

comming out of MM will set the state of the monitors either to initial state (healthy) or to the state calculated by on demand detection. Id this SP1 environment? In SP1, entering MM was closing alerts. Now it is possoble for notification to be delayed untiul comming out of MM. Would that explain what you see? If you use R2, we resolve alerts at the end of MM ...Marius Sutara My MSDN blog This posting is provided "AS IS" with no warranties, and confers no rights. Use of attachments are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Free Windows Admin Tool Kit Click here and download it now
June 26th, 2009 12:14am

I am running R2 RC. So if I understand you correctly. Server still send in alerts while in MM but notifications are not sent. When coming out of MM those alerts which were received and still open during MM are then resolved and the closed notifications would then be sent out. How can I suppress the notifications when coming out of MM.Paul
June 26th, 2009 3:42pm

there should be no alerts raised while in MM, but that off course depends. There could be an alert raised if you are "watching" instance which is in MM and you did not include this "watching" instance when entering MM as well.if you have notification set up to react on closed alert, you will receive such notification ...Marius Sutara My MSDN blog This posting is provided "AS IS" with no warranties, and confers no rights. Use of attachments are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Free Windows Admin Tool Kit Click here and download it now
June 27th, 2009 12:37am

I know in SP1 you had to use the script written by Boris Y, to stop alerts effectively (Right-clicking and selecting MM didn't work correctly)http://blogs.msdn.com/boris_yanushpolsky/archive/2008/03/04/one-more-maintenance-mode-script.aspxJB
June 29th, 2009 8:35am

I am using the AgentMM (http://blogs.technet.com/cliveeastwood/archive/2007/09/18/agentmm-a-command-line-tool-to-place-opsmgr-agents-into-maintenance-mode.aspx) to put the inidividual servers in Maintenance Mode. It is being executed via a scheduled task. I noticed something interesteing this morning. WhenI created a view for all events with eventID 1215 (which is the event when a server goes into maintenance mode) I only saw events from my RMS and not the individual server which I am till getting alerts from during maintenance mode. I do see events from some of my other servers which go into maintenance mode via the same method.Anyone else see similar things? Anyone have any other ways of putting individual servers in Maintenance Mode via a scheduled tasks. I need to stop all alerting during that time period.Thanks Paul
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2009 3:58pm

I believe there are some powershell scripts which place instances into MM. Could that be used?Marius Sutara My MSDN blog This posting is provided "AS IS" with no warranties, and confers no rights. Use of attachments are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
July 7th, 2009 10:25pm

I have tried the AgentMM.exe for maintenance mode and some Powershell scripts. 2 things are still occuring. Issue 1.I have a rule which check for when a process terminates. I put the server in maintenance mode at 2:20 am everyday for 30 minutes. There is a maintenance rounting which will stop and start that process during that time. The alert for that rule is still being generated everydat at 2:32AM.Issue 2.I have a monitor for a service which launches a recovery task to start the service if it stops. If the service stops it usually takes approx 2 minutes for the recovery task to kick in.Due to an app issue I need to stop this service nightly at 2AM. I put the servers in maintenance mode for 30 minutes starting at 1:50 AM. ( I do see the 1215 events occuring at this time). I have a scheduled taks to stop the service at 2AM the SCOm monitor then restart the service. Works like a charm. Unfortuantely at approx 3AM I get a closed notification for the event even though I never received the NEW event notification.I am really struggling with maintenance mode issue.There has to be something really simple that I am missing.Paul
Free Windows Admin Tool Kit Click here and download it now
August 11th, 2009 12:36am

I am experiencing something similar. I have a group of servers that I place into MM during their scheduled nightly reboot. We use a Ping monitor but when the server's ping alert clears, while in maintenance mode, a closed notification is sent. Anyone overcome the closed monitor alert sending a notification?
December 6th, 2011 6:55pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics