Does anyone know how to access the web console URL of an alert using C# and
the SCOM SDK?
The value I am looking for can be seen in the SCOM GUI console under the
screen where you set up a message for a notification subscription. If you
inset the “WebConsole Link” into your message you the following expression:
"$Target/Property[Type="Notification!Microsoft.SystemCenter.AlertNotificationSubscriptionServer"]/WebConsoleUrl$
I am trying to figure out how to get this same value from the SDK using C#.
There appears to be a Settings.NotificationServer.WebAddresses class with a
WebConsole property but I haven’t figured out to get the string value out of
it. When looking at the class in the debugger there appears to be a guid
based property, but no string value is obvious.
Thanks
--
Jakub Oleksy
Developer
Blog: http://blogs.msdn.com/jakuboleksy/
Log a bug or Feature Request directly to the SCOM Product Team by going to
http://connect.microsoft.com/site/sitehome.aspx?SiteID=209. This posting is
provided "AS IS" with
no warranties, and confers no rights.
"Rex" <R...@discussions.microsoft.com> wrote in message
news:0C203458-4C7A-42E0...@microsoft.com...
On the Settings class, accessible in the administration space.
http://msdn2.microsoft.com/en-us/library/bb438586.aspx
--
Jakub Oleksy
Developer
Blog: http://blogs.msdn.com/jakuboleksy/
Log a bug or Feature Request directly to the SCOM Product Team by going to
http://connect.microsoft.com/site/sitehome.aspx?SiteID=209. This posting is
provided "AS IS" with
no warranties, and confers no rights.
"Rex" <R...@discussions.microsoft.com> wrote in message
news:59361F81-FC0D-42EA...@microsoft.com...
ManagementGroup mg = new ManagementGroup("localhost");
string url =
mg.GetAdministration().Settings.GetDefaultValue(Settings.NotificationServer.WebAddresses.WebConsole)