Inline tasks in SCOM
Since I can’t find any documentation on how to create inline tasks in knowledge I did a small reverse engineering on a SCOM MP.
Here is a summary of how to do it:
First you need to create a task that you can refer to. Take a note of your Task ID.
<Task ID="snowland_ServiceMonitor_ConsoleTask" Accessibility="Internal" Enabled="true" Target="snowland_ServiceMonitor_Class" Timeout="300" Remotable="true">
<Category>Alert</Category>
<WriteAction ID="PA" TypeID="System!System.CommandExecuter">
<ApplicationName>%SystemRoot%\System32\net.exe</ApplicationName>
<WorkingDirectory>%SystemRoot%\System32</WorkingDirectory>
<CommandLine>START MyService</CommandLine>
<TimeoutSeconds>20</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
</WriteAction>
</Task>
</Tasks>
And when you have the Task ID of your task you can create an inline task (or a link to a view or a website)
<maml:title>Resolutions</maml:title>
<maml:para>Mumbo jumbo text…</maml:para>
<maml:para>
<maml:navigationLink>
<maml:linkText>My Task</maml:linkText>
<maml:uri condition="Task" href="snowland_ServiceMonitor_ConsoleTask&tasktarget={$TARGET$}" uri="MOM.Console.Exe" />
</maml:navigationLink>
</maml:para>
<maml:para>
<maml:navigationLink>
<maml:linkText>My View</maml:linkText>
<maml:uri condition="View" href="snowland_ServiceMonitor_MyView&viewtarget={$TARGET$}" uri="MOM.Console.Exe" />
</maml:navigationLink>
</maml:para>
<maml:navigationLink>
<maml:linkText>My WebLink</maml:linkText>
<maml:uri href="http://www.snowland.se/" />
</maml:navigationLink>
</maml:section>
Tip: Use Authoring Console and a XML-editor.