what is your custom group membership?
It is strong recommend that your custom group membership should include HealthService Watcher instance.
Roger
Hi
There are a number of blogs on this:
http://blogs.technet.com/b/manageabilityguys/archive/2015/08/14/dasnippet.aspx
You won't be able to do this from the SCOM console. You'll either need to export your MP and hack the xml or, better still, use Visual Studio. I have an authoring series here which hopefully helps:
http://blogs.technet.com/b/manageabilityguys/archive/2015/08/14/dasnippet.aspx
Cheers
OK, that sounds like that would be what I am looking for, but I am not sure how to add a Health Service Watcher instance. Below is my query to create the Group and I have the Health Service Watcher Class selected but I don't know what that query would look like. I am sorry if this is an easy dumb question, I am on the upside of a learning curve for SCOM, and very much appreciate the assistance.
When I started to setup this notification I thought it would be really easy. One of the most basic functions for a tool that would predominately monitor Windows Servers would be an easy method of being notified of when a given server is down. I can be notified of ANY server, but that is a bit of overkill as Dev and Test servers go down all the time for various reasons. We have all of our Production servers in one of two OU's and I would just like to be able to target those. It seems like that should be very easy to do. Maybe it is and I am a tard and just thinking about this wrong. If so, please say so, I am happy to learn from anyone. Thanks again!
Hi Larry
As per my response below - you won't be able to do this from the SCOM console. You'll either need to export your MP and hack the xml or, better still, use Visual Studio.
There are a number of blogs on this:
http://blogs.technet.com/b/manageabilityguys/archive/2015/08/14/dasnippet.aspx
I agree it should be simpler but when the product was first designed (current version with regard to authoring about 8 years ago) the computer object and the health service watcher object were separated at birth. This is causing the issue you are facing.
What precisely do you want in this instance? If I understand correctly:
1. A computer group based on OU contains Prod
2. A Health Service Watcher group containing the health service watcher objects of computers in group 1?
I can do up some sample xml for this if that is what you require.
Regards
Graham
Graham,
Thank you very much for the info, and what you described is exactly what I am looking for, but will need to repeat this potentially a few dozen times depending on the servers and who should be notified, so I would LOVE a example if you could. That would save me a lot of time I think. Thank
Hi Larry
If you are going to try and do this via the SCOM Console along with exporting the management pack and manually updating the XML then it could be a long job and error prone due to the way the coding works.
I'd suggest considering using Visual Studio to create the groups in one management pack that you then seal. This MP can then be referenced elsewhere and you could also use the health service watcher groups for availability reports.
I've done a set of intro articles which walk through Visual Studio: http://blogs.technet.com/b/manageabilityguys/archive/2015/08/24/visual-studio-management-pack-authoring-series-part-1-download-pre_2d00_requisites.aspx
What I'll need to do is provide an alternative set of code for you to plug into part 5 and part 6. I'll probably not get time to this until Friday but will try to post something up sooner.
It does look complicated but honestly, it isn't. Once you've done a few you'll be able to fly through them with just a find \ replace on the group name details.
Regards
Graham
Hi Larry
Hopefully this helps:
http://blogs.technet.com/b/manageabilityguys/archive/2015/09/04/groups-based-upon-ou-membership.aspx
If you let me know what other groups you want to create then I'll see if I can do up some more fragments.
Regards