How to Create Monitor with Uninitialized state in SCOM
hi., i want to show moitnor with uninialized state(like healtly,warning,critical,uninitialized).i am alredy usinng three state unitmonitor and show healtly,warning,critical states. Now i want to show uninitialized state with those states. its possible or not? how to display monitor state as uninitialized ? Any one can explain about monitor uninitialized state and how to create through Management Pack in SCOM. Explain with sample code. help me; regards satheesh
September 9th, 2011 1:04am

Hi Satheesh. There is no such definable state. Unmonitored state is just wat is says... the monitor is targetted at an entity somehow and it does not apply to this one (either because the monitor is disabled or set to ignore this entity through override for instance). Also we can not create a grey state through a management pack. Grey is just generated by the agent being unavailable. You could create the monitor as diasabled and target it and create a view. You would see that this monitor is in an unmonitored state, I guess. But that doesnt say anything. The white and grey states and just created by circumstances and not because an MP writer wanted to include that as a possible state.Bob Cornelissen - BICTT (My BICTT Blog) - Microsoft Community Contributor 2011 Recipient
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2011 6:58am

Bob's right. There is no way to do this. When a monitor is enabled, it goes green until its conditions make it change states. it is in the uninitialized state only briefly.Microsoft Corporation
September 9th, 2011 11:47am

thnks Bob , Manually disable that paricular monitor and got it as in "not monitored" state. but progamatically(c# code) how to disable the paricular monitor and change the state like above. help me with link and sample code regards; satheesh
Free Windows Admin Tool Kit Click here and download it now
September 12th, 2011 3:50am

There is only one way to disable monitors Satish - that is to create an override MP and then import it. In C# this means you have to create a management pack and then add all of the elements in an override for that particular monitor. You will need to know the monitor ID, because the override will need to refer to that monitor by ID GUID value. One way to get started is to use the console, create the override on the right monitor, and save that override in a separate .xml file. Then have your devs take a look at that XML file - it is the guide to the SDK calls (create individual XML elements). This can be done via the SCOM SDK, or with an XML dom. Then you have to use the SDK to import your file. There is no way to do this without creating a file and importing it. Microsoft Corporation
September 12th, 2011 12:09pm

I agree, if you want to have an unmonitored state you can disable the monitor through override. If it is already there. If you are talking about your own MP if you are developing you can also set it to disabled from the start and explain how somebody (the user of that mp) can override the monitor or discovery and preferrably what target they can best use for this. O and if you disable it, it will automatically go to unmonitored state. I have no idea what you would be doing this for and why you would use programming code to disable a monitor, but this is as far as I can answer the question I guess. Just create an override in an mp for existing monitors or in your own mp just disable the monitor by default and have somebody enable it through overrides if they want to. All through xml and import.Bob Cornelissen - BICTT (My BICTT Blog) - Microsoft Community Contributor 2011 Recipient
Free Windows Admin Tool Kit Click here and download it now
September 13th, 2011 2:08am

thanks Dan, am using following link code to override the monitor. http://msdn.microsoft.com:80/en-us/library/bb960482.aspx In this code they overide monitor for all objects. but i want code to override monitor for specific object to disable it. help me regards satheesh.
September 13th, 2011 3:07am

Hello, could you let us know if this question is answered or if you have found a solution? -------------------------------------------------------------------------------- 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. Bob Cornelissen - BICTT (My BICTT Blog) - Microsoft Community Contributor 2011 Recipient
Free Windows Admin Tool Kit Click here and download it now
September 27th, 2011 6:54am

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

Other recent topics Other recent topics