Showing posts with label sdk. Show all posts
Showing posts with label sdk. Show all posts

Monday, June 7, 2010

Displaying a Percent Sign (%) in a SCOM Event Description

I googled around a bit and discovered that the SCOM's "Description" field in the "Details" pane is actually rendered in HTML. Handy info, that, but it didn't help me get a percent sign rendered.

I ended up trying every contrivance you can imagine to try to make it happen -- all to no avail.

Ultimately, the magic that worked: "%%". Go figure.

Microsoft OpsMgr 2007 SDK Severity Levels

Documented here as much for my future reference as yours...

If you're using the SDK and are instantiating a CustomMonitoringEvent class, it comes with a LevelID property which holds an int. The value of that property determines the severity level the event is assigned, with the following mapping:
  • 1-Error
  • 2-Warning
  • 4-Information
  • 8-Success Audit
  • 16-Failure Audit
I found this via Google on the MSDN SDK web site, embedded in sample code. I didn't want to have to try to do that again.

Curious, see the original site here: http://msdn.microsoft.com/en-us/library/bb437567.aspx