In Chapter 5, Working with Management Packs we discussed the different types of tasks available in OpsMgr and with the help of some customized console tasks, you will simplify your alert tuning process, quickly identify the root cause of problems and implement resolutions with ease.
Three custom tasks that I always deploy with OpsMgr are—Google It!, Run Remote Desktop, and Run PuTTY. Using these tasks (shown in Figure 8.30), I can lookup information about an alert on the Internet and then pivot to remotely log on to the computer or device to manage it and resolve the issue if required.
In the following sections, we'll walk you through creating these three custom console tasks and we'll save the tasks into a new unsealed management pack for easy management.
This task gives us the ability to click on an alert from the console and then open a Google search with the display name of the alert appended into the search. Using this task, you can quickly get more information about an alert from the Internet when you find that the built-in knowledge from the monitor or rule isn't as comprehensive as it should be.
Follow these steps to get your first custom task deployed:
It's important to understand at this point that when you're creating any Console Task, these tasks will only be presented to the Operations console (the Web console can't see them) and the computer that you run the console from must have the ability to run the task from a command line.
A couple of other things to be mindful of are proxy settings and user account permissions. If you're running a task that needs to open an Internet or remote desktop session, then the user account you're using to launch the task must have the relevant permissions in the first place to connect to the Internet or run a remote desktop or PuTTY instance.
http://www.google.com/#hl=com&source=hp&q=$Name$
into the Parameters field as shown in Figure 8.34.When you've configured this task, you can use it to create a remote desktop protocol (RDP) connection directly from the computer you launch the task from to the Windows computer that's firing alerts into the console.
Here's what you need to do to get it configured:
Run Remote Desktop
for the name) and add a description. Click on Next to move on.%windir%system32mstsc.exe
on Windows computers into the Application field./v: $NetbiosComputerName$
into the Parameters field, make sure that you type this exactly as shown in Figure 8.35.This is the final custom task that we'll create here and when you have this configured, it will give operators the ability to launch a PuTTY session to help manage UNIX/Linux computers, network devices, SAN's and other devices remotely. PuTTY is an open source terminal emulator and you will need to first download the Windows installer (not the stand-alone executable) from the following website: http://tinyurl.com/puttydownload.
When using custom console tasks, OpsMgr needs to have a consistent location for the application path and as such, for this task to work properly, it's imperative that you use the Windows installer version of PuTTY to deploy it as a fixed path application on the computer you've deployed your OpsMgr console to.
When you've downloaded and deployed the PuTTY installer, follow these steps to get the custom task created:
C:Program Files (x86)PuTTYputty.exe
into the Application field.$NetbiosComputerName$
into the Parameters field and make sure that you type this exactly as shown in Figure 8.36.Now that you've learnt how to create custom console tasks, you can experiment with creating additional tasks that might be more specific to your own IT environment. In the next section, we'll put the three tasks we've just created to good use when we perform some alert tuning using distributed applications.
18.226.4.239