question

SaiyadRahim-8697 avatar image
0 Votes"
SaiyadRahim-8697 asked SaiyadRahim-8697 commented

SCOM 2019 - Registry Attributes Question

Hi Team,

I am trying to show Custom Registry Keys on SCOM Console.
Have Created RegKeys for:
Environment
Application
Priority

Steps I followed:
1 - Created RegKeys on my Servers
2 - In Authoring created new Attribute> Discovery Type: Registry
3 - Target Class > using Windows Computer...so using this makes it a Windows Computer_Extended so I added Windows Computer_Extended for Regkey Attributes
4 - Management Pack: Custom Regkey Attributes
5 - Path: HKLM:\Software\SCOMKeys\xxxxx

Issue:
I go to Discovered Inventory, change Target Type to my new Class: Windows Computer_Extended for RegKey Attributes
I can see my RegKey values have populated for my Servers but 2 of the Column Headers are missing.
Only 1 Header is showing: Environment
Application and Priority headers are missing but their Data is populated as below:

194597-image.png




Question:
1 - is it ok to put all my custom Attributes into one Target Class or should I have 1 Attribute into its Individual Target Class?
(I fear if i put each Attribute into its own Class, then i will not be able to see all these Data together in one Window).

Can someone help me out with this please.





msc-operations-manager
image.png (45.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StoyanChalakov avatar image
0 Votes"
StoyanChalakov answered SaiyadRahim-8697 commented

Hi SaiyadRahim-8697,

in my humble opinion you need one class, extended with 3 attributes. It makes abolsutely no sense to have the same class extended 3 times with 3 different attributes. You will create big mess, depending on how you plan to use this customization

Now to the display problem: I am not quite sure what the exact cause could be, but I would chnage the names of the custome Attriibutes and would not use just "Application" or "Severiity", but something custom instead...just an Example "CustomApp" instead of Application or "CustomSev" instead of just "Severity". Also compare all the related configurations to the other attriibute, which gets populated just fine.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Stoyan Chalakov

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the advice Stoyan.
Now when looking a bit closely, i see there are Default Attributes using the same names.
I will rectify my names and give it another go.

0 Votes 0 ·
CyrAz avatar image
0 Votes"
CyrAz answered CyrAz commented

SCOM console is badly limited for anything in the lines of authoring anyway, including creating an extended class. You could have a look at more advanced tools such as Silect MP Author, or even VSAE (but that's a steep learning slope)

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi CyrAz,

Funny enough, I already purchased MP Author Pro just a week ago.
Plan was to get my Custom Attributes done first and then start using Kevin's Fragments with MP Author to play with Attributes.

Questions:
- Is my understanding correct that I need to create my custom Attributes in SCOM first before I can start using them in MP Author?

Have a specific question regarding MP Author if you can assist with:

I see in the MP Author video examples that Kevin is using one “Service" to be discovered using one Service monitor etc – is it possible to keep adding multiple Service Monitor and Process Monitor fragments in this one MP?

Reason for asking is because I have 3 Servers (and more for other Apps) that comprise an Application:

Server 1 runs 3 Service named as below:
Apple Blue
Apple Red
Apple Green

Server 2:
Apple White
Apple Black
Apple Pink

Server 3:
Apple Purple
Apple Orange
Apple Yellow

Or is it possible to use Wildcard in these Fragments, like the name Apple* or is there RegEx to be used to achieve this?

Regards
Saiyad

0 Votes 0 ·
CyrAz avatar image CyrAz SaiyadRahim-8697 ·
  • Not at all, you can absolutely create classes and their properties (=attributes) in MP Author and I would actually encourage you to do so.

  • I don't see why you couldn't add multiple monitors inside a single MP

  • The best way to achieve this in my opinion would be to :

  • Create a "Application Class" based on a registry discovery, to discover all servers running that application regardless of the actual service name

  • Create a Service class and discover its instances using a WMI query like "select * from Win32_Service where Name like '%Apple%'", targetting the discovery only at the Application Class and not all Windows Servers

  • Create a service unitmonitor targeted at the Service Class


Kevin has various fragments that do more or less these stuffs but you will probably have to adjust them to fit that specific scenario.










0 Votes 0 ·