Failed to get Monitor - Start Maintenance Mode

Hi,
Am struggling with a problem with Orchestrator R2 apparently not recognising output from a Monitor alert step in a run book.  I have Orchestrator 2012R2 and SCOM 2012R2 configured.  Orchestrator is co-located with VMM2012R2.
Operating system for all is Windows server 2012
I have installed and deployed the Orchestrator R2 Integration packs which in deployment manager state version 7.2
I have checked to ensure that both Orchestrator, SCOM and VMM are all R2 (They are)
I am looking to create a runbook that will start services as per the link here: (Thanks to Jakob for this)
http://blog.coretech.dk/jgs/sco-2012-scom-2012-best-practice-monitor-alert-and-restart-a-service/
I can test the connection to the SCOM server - fine
I create the monitor alert step and test - fine
I create the start maintenance mode step and get the following error:
Filed to get Monitor.  The exception was "An object of class MonitoringObject with ID 00000000-0000-0000-0000-000000000000 was not found.".
I have used the runbook tester and the monitoringobjectfullname is present in the output for the start maintenance mode step.
However irrespective of the variable that I attempt to use in start maintenance mode step I continue to get the same error as above.
The monitor alert step completes with no issues, but everytime on the start maint mode step it fails.
I have validated the SCOM connection account has all the appropriate SCOM permissions.  I have also provided it with full domain admin rights, but with no success. 
Any ideas on how to troubleshoot this would be welcomed
Thanks in advance

Hi Stefan,
A little extension of your approach as this is only usable if you want to set a Windows Server into Maintenance Mode - but not e.g. for Distributed Apps
I just required the "Start Maintenance Mode" Activity to set a distributed app and a websphere application server instance (which is not linked with the server itself). And I did not find any documentation how to fill the field - only for Windows
Computer.
So I'll post my result on how to get the value which needs to be entered within the "Monitor" field:
(PowerShell - Use "Activities > System > Run .Net Script > Type: Powershell)
Import-Module OperationsManager
$object= Get-SCOMMonitoringObject -displayname "<desired object displayname";
# or use the ID instead:
# $object = Get-SCOMMonitoringObject -ID "<ID of object>";
$name = $object.displayname;
$fullname = $object.fullname;
$monitor = $name + " : " + $fullname
Then put $monitor within "published data" and you can use it directly in the "Start Maintenance Mode" Activity.
This only works if the runbook is running on a SCOM management server as it requires the SCOM Powershell Module. But at least it somehow shows the syntax.
Best Regards
Klaus
Austria

Similar Messages

  • OM2012 – Putting a Monitor in maintenance mode

    Hi there,
    I need to write a powershell script to put a Monitor in Maintenance mode. This is easily doable manually on the console whenever an alert comes up by putting the alert in Maintenance Mode.
    So far I managed to make my script to put the class of the Monitor into maintenance, as per bellow
    i.e. if the monitor is “Total CPU Utilization Percentage”, it would put  Microsoft Windows Server 2012 R2 Datacenter in maintenance mode for the computer $ComputerName.
    $ComputerName = Read-Host “Enter computer name”
    $MonitorName = “Total CPU Utilization Percentage”
    $Monitors=Get-SCOMMonitor -ComputerName $strComputerName | where {$_.DisplayName -eq $MonitorName}
    $Time = ((Get-Date).AddMinutes(6))
    foreach ($Monitor in $Monitors) {
    $Instance = Get-SCOMclass -name $Monitor.target.identifier.path | Get-SCOMClassInstance #| where {$_.Path -eq $ComputerName}
    Start-SCOMMaintenanceMode -Instance $Instance -EndTime $Time -Comment: “Server maintenance”
    I can’t figure our how to simply put “Total CPU Utilization Percentage” (or any other Monitor) in maintenance mode
    Thanks for your help !

    Yes, use the "Start Maintenance Mode" Activtiy of the Integration Pack for OpsMgr.
    www.sc-orchestrator.eu ,
    Blog sc-orchestrator.eu

  • Optimize Hosts and Start Maintenance Mode Not working with warning (23756)

    I have  a new 2012 Hyper-V3 cluster, with SCVMM 2012 SP1.
    Putting a Server into maintenance mode used to work, it would live migrate all the virtual servers off the host and pause in the cluster.
    Also the new Optimise Host Feature also used to work.
    Now all I get is this :-
    Warning (23756)
    Changes have been made which should be verified by running placement again.
    Recommended Action
    Use the Refresh Preview action to run placement again.
    you can manually live migrate all the VM's of the host then put it into maintenance mode and all works fine !.
    I do not understand what this "use the Refresh Preview Action" is. I cannot find any reference to this anywhere.
    hope someone can help
    many thanks
    Mark Green

    Hi Mark
    Firstly, the error text for this event is wrong, which is why it has a confusing recommended action. This error indicates that while planning an evacuation, something unexpected occurred when reading the underlying hosts and VMs.  It may be something
    transient, in which case you can attempt to manually the VMs off the host, and then see if this error resolves itself.
    If there is something more fundamentally wrong, you can find what the underlying error is by collecting traces. Search the traces for the error text, and you should see the underlying problem embedded in the trace right next to this error.
    Details of how to collect traces: http://blogs.technet.com/b/chengw/archive/2008/05/08/how-to-collect-scvmm.traces.aspx
    Apologies, this error is very confusing and does indicate an unanticipated problem in our product. We are working to improve this experience in future versions.
    I hope this helps!
    Cheers, Hilton

  • Host getting exit from Maintenance mode automatically

    Hi all,
    I have placed a ESXi 5.1 update 2 host into maintenance mode for host upgrade.
    After sometime, the host got exit from maintenance mode automatically ( Exit maintenance mode initiated by System).
    Have anyone faced this issue??
    Any solution/fix for this ...
    Please let me know.

    In order to uninstall a possibly unwanted extension, please do the following:
    #From the Firefox window click the Firefox button at the top left and select ''Add-ons'', or, if the Firefox button is not shown, click the ''Tools'' menu and click ''Add-ons''.
    #Once the Add-on Manager has opened in a new tab, click the ''Extensions'' button on the left side of the window.
    #You should now see a list of your installed extensions on the right side together with buttons on the right side of each extension.
    #To remove an extension from Firefox, simply click the ''Remove'' button. You should see a message that informs you about the successful removal of the add-on.
    #Note that some add-ons require a Firefox restart to be removed completely. To perform a Firefox restart after the add-on removal, click the ''Restart now'' link in the message.
    You can find further information about uninstalling extensions in the following articles:
    [[Disable or remove Add-ons]]
    [[Remove a toolbar that has taken over your Firefox search or home page]]

  • Maintenance Mode For One Monitor

    Is it possible to place one monitor in maintenance mode? Not the entire computer or object, but just that one monitor? I don't want other monitors for that object to be silenced though.

    Hi,
    A Windows Schedule task,
    http://technet.microsoft.com/en-us/library/cc748993.aspx
    Please read this one:
    Management Pack for the SCOM 2012 Maintenance Mode Scheduler
    http://blog.tyang.org/2014/05/22/management-pack-scom-2012-maintenance-mode-scheduler/
    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.

  • Another SCOM Maintenance Mode query/advice...

    Hi,
    Just looking some advice on setting SCOM Maintenance Mode (using SCOM/SCO 2012R2)...
    I want to be able to set a server entirely into MaintMode, ie similar to choosing "Selected object AND ALL their contained objects" from SCOM console.
    I had asked similar question back in SCOM 2007/Opalis days, but the solution then (placing server and health server watchers separately into maintenance as per Anders blog http://contoso.se/blog/?p=2164 I'm not sure is appropriate now as I believe MaintMode
    is handled differently in 2012.
    I have seen some pretty complex solutions where using custom built DBs to hold MaintMode status etc.  Was hoping theres a neater/simpler soultion using the Orchestrator Activities these days.
    If not possible using Native Orchestrator then the fallback would be to try use powershell commandlet.  Looking at the Commandlet Examples if I used the following example solution, will that effectively put the server object (and all contained objects
    into maintenance which is what I'm trying to achieve.
    Windows PowerShell
    PS C:\> $Instance = Get-SCOMClassInstance -Name "Server01.Contoso.com"
    PS C:\> $Time = ((Get-Date).AddMinutes(10))
    PS C:\> Start-SCOMMaintenanceMode -Instance $Instance -EndTime $Time -Comment "Applyin
    Any advice to this recurring pain point of SCOM much appreciated.
    PS. Not sure if this post is better placed here or in SCOM/Powershell forum so can move if necessary...

    Hi Michael,
    thanks for your reply confirming the powershell command will work.
    I have actually just tried using the native Start Maintenance Mode Activity which actually seems to do as required - if the monitor selected is the relevant <servername> : Microsoft.Windows.Computer: <servername> object then it seems to put the
    entire server into maintenance.  I tested against a server which happened to also host SQL role, so when I placed in Maint via the runbook  I then stopped the SQL service and no alerts generated from SQL MP and I could see the spanner Icon against
    the server in relevant SQL node views aswell.
    I had though maybe that only windows MP stuff might be supressed - so again when I came across all the very complex solutions to apply Maint mode properly I wasnt sure if it was still relevant in 2012 (even though some of those solutions indicated for use
    on SCOM/SCO 2012?)
    Anyway if the simple solution work - as it appears to do so, then I'll run with that - unless someone can tell me why not?...
    Cheers

  • SCOM 2012 - Use Powershell to put specific server and contained objects into Maintenance Mode

    I am still trying to develop what I thought was going to be an easy script, to put a specific server and all it's contained objects into maintenance mode in SCOM 2012.   Not a group, but just one specific server and all it's stuff.
    My script to START maintenance mode has two parameters:
    1.  The FQDN.  So for example: server1.contoso.com
    2.  The amount of minutes to put into maintenance mode
    Then it does the following to START maintenance mode:
    Import-Module OperationsManager
    $Instance = Get-SCOMClassInstance -Name $FQDN
    If ($Instance)
    $newEnd = ((Get-Date).AddMinutes($minutes))
    Start-SCOMMaintenanceMode -Instance $Instance -end $newEnd -Reason "PlannedOther" -Comment "Comments here"
    This seems to work from what I can tell.  I know that when you schedule maintenance mode manually in SCOM, there is an option to apply to "Selected objects and all their contained objects".  I do not know if that is occurring based on
    my code above.   But I think that is what I want to happen.   I just want all monitoring and alerting for the specified server to stop.   So if you think I need to change the above code so that it gets all the "contained
    objects" please let me know.
    The second part, which I know for a fact isn't fully working, is intended to stop maintenance mode for a server.
    My script to STOP maintenance mode has only one parameter:
    1.  The FQDN.  So for example: server1.contoso.com
    Then it does the following to STOP maintenance mode:
    Import-Module OperationsManager
    $Instance = Get-SCOMClassInstance -Name $FQDN
    If ($Instance)
    $MMEntry = Get-SCOMMaintenanceMode -Instance $Instance
    If ($MMentry)
    #basically sends an end time of 1 minute from when the script is run
    $newEnd = ((Get-Date).AddMinutes(1))
    Set-SCOMMaintenanceMode -MaintenanceModeEntry $MMEntry -EndTime $NewEnd -Comment "Removing from Maintenance Mode"
    This part does seem to work partially.   It does remove the server from maintenance mode.  However, I suspect that it's not removing all the "contained objects" from maintenance mode because when I run the script to stop maintenance
    mode on a server, the little maintenance mode icon in SCOM does go away but the overall light for the server stays set to "Not Monitored".   It never turns back to the green checkbox and says "Healthy".   When I start
    and stop maintenance mode manually I can see that the green Healthy checkbox comes back.  But when I try to run my above code to do it via script, it stays at "Not Monitored" instead.
    Can someone help me out here?  Looking for answers to two questions:
    1.  Does my Start maintenance mode code look ok? Will that put a server and all it's contained objects into maintenance mode?
    2.  What do I need to hadd to my Stop maintenance mode code, so that it correctly stops maintenance mode on the server and all its objects and everything starts to be monitored again?
    Thanks in advance!  Please let me know if you need any more information in order to be able to help me!

    Hello, thanks for your response.  Unfortunately, it does not appear that the link you provided works.
    As far as not including "selected objects and all their contained objects" I am wondering if there is a way for me to tell for sure. One thing I found was that if I run this script and put the server into maintenance mode, then I go into
    SCOM and click on Edit Maintenance Mode for that server, it shows me the details.   It has some comment, and my selected reason, based on the code I posted above.   It also DOES have "selected objects and all their contained objects"
    selected at top.  So it seems to me like it is working correctly, and does contain all the objects.   If you think that 'Edit' screen would be inaccurate for some reason, please let me know.  Or if you know of a way for me to check and
    confirm, please let me know that as well.
    As for REMOVING it from maintenance mode, I did eventually find a line of code that I think works.  Here's what my code looks like now:
    Import-Module OperationsManager
    $Instance = Get-SCOMClassInstance -Name $FQDN
    If ($Instance)
    $MMEntry = Get-SCOMMaintenanceMode -Instance $Instance If ($MMentry)
    $Instance.StopMaintenanceMode([DateTime]::Now.ToUniversalTime(),[Microsoft.EnterpriseManagement.Common.TraversalDepth]::Recursive);
    When I use the above code to STOP maintenance mode, the green checkmark does reappear for the server, and everything seems to be being monitored again.   Unlike before, where the maintenance mode icon would go away, but it would never change back
    to saying 'Monitored' again.  So I think that changing that one line to stop maintenance mode seems to have done the trick.
    So I guess my last concern now is just putting in maintenance mode initially, as I was talking about above.  If you still think the 'Edit Maintenance Mode' screen is not a good indicator of what my code does, please let me know.

  • Maintenance Mode for Synthetic Transactions

    Hi,
    I'm looking for some guidance on how to apply Maintenance Mode to specific Synthetic Transactions correctly via Orchestrator.  My setup is Orchestrator 2012 R2 (and SCOM 2012 R2)
    I have an existing runbook which seems to run fine for placing a group of windows computers into maintenance mode - I 'think' it is ok, in 2012 there seems to be a single start maintenance mode activity targeting the windows computer object for this, wereas
    in 2007 there were 3 objects to target - the windows computer, health service and health service watcher.
    So now I'm trying to apply maintenance mode to specific Synthetic Transactions if possible - ie web application transaction monitors which run on 2 servers which are dedicated as watcher nodes for many other ST's aswell.  I had thought I had the issue
    solved when I created the runbook to set Maintenance Mode targeting the specific Web monitors - when I execute the runbook I can see the spanner maintenance icon appearing against all the 'Closed' alerts from these monitors in the scom console - so I assumed
    I was targeting the correct objects.
    I've scheduled the runbook to trigger for the time when I know these monitors create alerts (ie when the web services are restarted nightly on the particular server web server and the site will be down) however I am still seeing the alerts come in to the
    console (log history shows the runbook started OK on schedule) so I am wondering if there are other objects to put into maintenance - I assume I can't put the watcher node windows computer object into Maintenance Mode as this would be suspending the monitoring
    of other Stnthetic transactions running on the watcher node servers?...
    Any advice much appreciated...

    Sure, no worries.
    The authentication types can support 4 tyes of authentication from ntlm to basic.  If the site does not require authentication all the better, as the monitor will use less resourses and its easier to configure.
    R2 supports something like 10000 transactions to be monitored.
    Paulpaulk

  • Create alert when management server is in maintenance mode

    has anyone setup alerting, such that, an alert is generated when a gateway or a management server is put into maintenance mode? (we are assuming there are multiple management servers and gateways)
    if so, how did you achieve this?

    1) You may create a time script monitor to get any server in maintenance mode. Using powershell script get-scommaintenancemode to get server in maintenance mode information.
    2) How to create a powershell script monitor
    http://scug.be/dieter/2014/04/24/scom-creating-a-powershell-script-monitor-with-silect-mpauthor/
    http://www.code4ward.net/main/Blog/tabid/70/EntryId/51/How-to-create-a-Two-State-PowerShell-Script-Monitor-using-the-Authoring-Console-Part-1.aspx
    3) For powershell get-scommaintenancemode, pls refer to
    http://technet.microsoft.com/en-us/library/hh920235(v=sc.20).aspx
    Roger

  • Maintenance mode is cancelled for no reason by the system

    Hi, very unusual and sporadic problem.
    Let's say we put a URL monitor into maintenance mode for 4 hours.
    After 2 hours we reboot the URL hosting server.
    The maintenance mode has been cancelled and the URL will alert again while we continue to work on it.
    Should this happen ? The version is SCOM 2012 SP1 UR6.
    Thanks in anticipation.

    If there is lot of data, Then add this string and userid like '%User name who silenced the URL%'
    so this will totally filter the report to only all the servers / items silenced by a specific user.
    So it will come like this
    USE OperationsManagerDW
    SELECT ManagedEntity.DisplayName, MaintenanceModeHistory.*
    FROM ManagedEntity WITH (NOLOCK) 
    INNER JOIN
    MaintenanceMode ON ManagedEntity.ManagedEntityRowId = MaintenanceMode.ManagedEntityRowId 
    INNER JOIN
    MaintenanceModeHistory ON MaintenanceMode.MaintenanceModeRowId = MaintenanceModeHistory.MaintenanceModeRowId
    where DisplayName Like '%%' and userid like '%User name who silenced the URL%'
    Gautam.75801

  • Get out of safe mode in windows 8.1

    How do I get out of safe mode in windows 8.1

    Hi, 
    To get out of Safe Mode, you can try this: 
    Control Panel > icon view > Administrative Tools> System Configuration >
    Boot Tab > UNCHECK Safe Boot
    Then Restart. 
    If the you still fail to get out of safe mode, considering that corrupted drivers cause your issue: 
    Please open Device manager, and remove drivers about Video, audio, Network adapter, Bluetooth and additional USB device and try to reboot to see what's going on.
    Kate Li
    TechNet Community Support

  • Cairo-dock starts in "maintenance mode"

    Hi,
    I've recently upgraded the cairo-dock, but since then it starts along with the <maintenance mode window>... When I try to close it, it reappears until the wifi connection settles down. I suspect that weather-dock is making troubles when it does not have connection to the internet.
    I've looked through the cairo-dock options, and it has an option to force maintenance mode, but it does not have one to force disabling it unfortunately.
    Anyone has any idea how to get rid of this?

    probably an issue with your configuration. had this once, deleted my .config/cairo-doc ( at least i think thats where it was) folder and it worked again - with default settings.

  • VDI 3.1 cloning fail if one esx from a cluster is in maintenance mode

    hi
    i have a vsphere cluster with 2 esx included and ha and drm enabled
    if one of the esx is in maintenance mode the cloning job failes but with a misleading error message
    INFO: Datastore 'Sun Storage 1' is not available for cloning, it is disconnected or in maintenance mode
    i see here 2 bugs
    1) the wrong error message cause the datastore is neither disconnected nor in maintenance mode
    2) cloning should still possible if one esx server is not available
    br
    Andre

    Hi login,
    It should be possible. You will need to route the output of the counter to a specific RTSI line and then use that line as the sample clock by the MIO board. The function you will want to use to route the counter output to the RTSI bus is the Route Signal.vi in LabVIEW or the Select_Signal() in NI-DAQ function calls. You will want to use constants such as ND_GPCTR[x]_OUTPUT where [x] is the counter number and ND_RTSI_[x] where [x] is the RTSI line number. Your source is the counter output and your signal is the RTSI line of choice.
    Similarly, for the MIO card, you will want to route the RTSI line to the AI Scan Start to route to your scan clock. The constant for this should be ND_IN_SCAN_START and it should be the signal value while your RTSI s
    hould be the source.
    The point is you will need to route the signal for both cards which amounts to 2 calls (or 2 VIs). Anyway, hope that helps. Have a good day.
    Ron
    Applications Engineering
    National Instruments

  • Getting 34208 Events in IIS server after come out from Maintenance mode

    Hi Experts,
    We are monitoring .Net application(APM) in our environment(SCOM 2012 SP1).  We are putting all the servers in Maintenance mode on every sunday(Weekly Maintenance), after come out from MMode  getting 34208 events in OPSMGR Logs, particularly from
    IIS servers(APM). 
    Do we have any fix for that like cumulative update?
    Can we put IIS server into Maintenance mode? If we put in MMode, Will it affect monitoring??
    Expecting your reply.. Thanks in advance!!!
    Regards
    Karthick

    Thanks for reply Agrawal!
    I know that we won't get alerts if the servers are in Maintenance mode.  But we are getting 34208 events particularly from IIS servers(.Net Application Performance Monitoring - APM) as the result we are receiving warning alerts in SCOM console stating
    that " Restart IIS service" which will affect other monitoring in the servers.
    Is anyone getting this issue in your environment?  Generally we will get 34208 events while we adding new application in to IIS server.  But here we are getting this events after the server come out from MMode.
    Kindly provide your valuable suggestions.  Thanks!
    Regards
    Karthick

  • I wanted to trouble shoot, put comupter in safe mode , now its stuck , closed FF 3 times, re-started computer, still in safe mode.how do i get out of safe mode

    i wanted to do trouble shooting, i put computer in safe mode & now i can not get out of safe mode. I've closed FF & re-started computer 3 times, even shut down computer, still in safe mode. What do i need to do to get out of safe mode?

    Hi,
    Please see this article: [[Firefox is stuck in Safe Mode]]
    I hope that helps. Post back if not.
    --Edward
    EDIT: Just noticed that you already rebooted. You say that you "put computer in safe mode". Is firefox in safe mode or your whole computer?
    If '''Firefox''' is stuck in safe mode despite reboot
    * Check that the shift keys on your keyboard are not stuck down.
    * Uninstall firefox and install again (your settings will not be lost as they are stored in your profile folder).
    Let me know if neither of those works.

Maybe you are looking for

  • Going from a G4 12" powerbook to a new iMac

    hi there, we bought a new iMac for family use a few months ago. we did not have a firewire cable when we first started it so i was not able to migrate all of the stuff on my 12" G4 powerbook to the new computer. for a while i thought i just wanted to

  • Adobe Application Manager Keeps Asking For Serial Number

    I bought CS6 Design Standard a few days ago, and although I have already validated the software, these last couple of days every time I open Photoshop, Adobe Application Manager thinks I am using a trial version and asks me to choose between continui

  • PATCH SET 11.1.0.6 11.1.0.7

    Hi, This is my error while running runinstaller in putty ......... please help [oracle@db Disk1]$ ./runInstaller Starting Oracle Universal Installer... Checking Temp space: must be greater than 80 MB. Actual 4595 MB Passed Checking swap space: must b

  • In Box Mail -- Where is it?

    I have gone back to Mail 1.3.11 recently after TB 1.5 kept crashing my Mac and I want to "Bounce" tons of SPAM that all of a sudden started coming in. I left Mail originally because my InBox messages disappeared. The Junk and Trash boxes worked fine,

  • I have downloaded several new fonts. They appear in the Font Book.  Why are they not in Word?

    I have downloaded several new fonts. They appear in the Font Book.  Why are they not in Word so that I can use them?