Configuring Skylar One and Skylar OneSkylar Automation

Download this manual as a PDF file 

This section describes how to install and configure the "Cherwell Integration" PowerPack in Skylar One. This section also covers how to configure the applications in the "Cherwell" SyncPack to properly authenticate Skylar One Skylar Automation with CSM and Skylar One.

Follow the procedures in this chapter only after you have configured the settings in CSM from the previous chapters.

Configuring the Cherwell Integration PowerPack

The "Cherwell Integration" PowerPack includes:

  • A Sample Skylar One credential, "Skylar One IS4 API Creds"

    "IS4" is a now-deprecated name for Skylar OneSkylar Automation.

  • The "Cherwell Event IS4 Integration" run book action policy, which you can use to automate adding, updating, and clearing Skylar One events
  • The following run book automation policies to automate adding, updating, and clearing events:
  • Cherwell Create Event IS4
  • Cherwell Update Ticket on Acknowledge
  • Cherwell Clear Event IS4

After you have configured CSM to work with the SyncPack, you will need to install and configure the "Cherwell Integration" PowerPack in Skylar One.

Downloading and Installing the PowerPack in Skylar One

To download and install the PowerPack:

  1. Search for and download the PowerPack from the PowerPacks page at the ScienceLogic Support Center (Skylar One > PowerPacks, login required).
  2. In Skylar One, go to the PowerPack Manager page (System > Manage > PowerPacks).
  3. In the PowerPack Manager page, click the Actions button, then select Import PowerPack. The Import PowerPack dialog box appears.
  4. Click the [Browse] button and navigate to the PowerPack file.
  5. When the PowerPack Installer modal appears, click the Install button to install the PowerPack.

If you exit the PowerPack Installer modal without installing the imported PowerPack, the imported PowerPack will not appear in the PowerPack Manager page. However, the imported PowerPack will appear in the Imported PowerPacks modal. This page appears when you click the Actions menu and select Install PowerPack.

Creating a SOAP/XML Credential for Cherwell Integration

You will need to create a credential in Skylar One that allows Skylar One to communicate with CSM. The "Cherwell Integration" PowerPack includes the Skylar One IS4 API Creds credential, which you can use as a template to create this credential.

To create the Skylar One credential:

  1. Go to the Credential Management page (System > Manage > Credentials).
  2. Click the wrench icon for the Skylar One IS4 API Creds credential. The Credential Editor modal window appears:

  1. Supply values in the following fields, and the leave the remaining fields at their default settings:
  • URL. Type the URL for the Skylar Automation API, which is the same URL that you used to create the Skylar Automation Credential in the Federation Registration record. You will need to add "/api" to the end of this URL.
  • HTTP Auth User. Type the Skylar Automation username that will authenticate to the Skylar Automation API. This is the same username that you created and configured in the Federation Registration credential.
  • HTTP Auth Password. Type the Skylar Automation password for the Skylar Automation user that will authenticate to the Skylar Automation API. This is the same username that you created and configured in the Federation Registration credential.
  1. Click the Save As button and type a new name for this credential.
  2. When the confirmation message appears, click OK.

Enabling the Run Book Automation Policies

Before you can run the "Cherwell Event IS4 Integration" run book action, you must enable the three related run book automation policies in Skylar One:

  • Cherwell Create Event IS4
  • Cherwell Update Ticket on Acknowledged IS4
  • Cherwell Clear Event IS4

"IS4" is a now-deprecated name for Skylar One Skylar Automation.

To enable the three Cherwell Run Book Automation policies:

  1. In Skylar One, go to the Automation Policy Manager page (Registry > Run Book > Automation).

  1. Locate the "Cherwell Create Event IS4" automation policy and click its wrench icon. The Automation Policy Editor page appears.

  1. Update the following fields:
  • Policy State. Select Enabled.
  • Policy Priority. Select High to ensure that this automation policy is added to the top of the queue.
  • Available Actions. If it is not already selected, select the corresponding Cherwell Run Book Action policy.

By default, the "Cherwell Create Event IS4" automation policy will create Cherwell incidents for all devices. You can limit the devices affected by making changes to the Organization, Severity, Match Logic, Aligned Devices, and/or Aligned Events fields.

ScienceLogic highly recommends that you do not make changes to the Policy Type, Repeat Time, or Align With fields or the And event is NOT acknowledged setting.

  1. Click Save.
  2. Repeat steps 2-4 for the "Cherwell Update Ticket on Acknowledge" and "Cherwell Clear Event IS4" run book automation policies.

Enabling and Customizing the Run Book Action Policy

To enable the run book action:

  1. In Skylar One, go to the Action Policy Manager page (Registry > Run Book > Actions).
  2. Locate the Cherwell Event IS4 Integration policy and click its wrench icon. The Action Policy Editor page appears.

  1. For the Action State filed select Enabled.
  2. Click Save. Skylar One events are now synced with CSM incidents.

Aligning a Configuration Object with Skylar Automation Applications

The "Cherwell" SyncPack includes the "Cherwell Integration Settings" (cherwell_config) configuration object, which you can access in the Skylar Automation user interface.

This configuration file contains default name-value pairs for the CSM and Skylar One hosts, the CSM and Skylar One users and passwords, the Skylar Automation host, user, and password, and other keys and values. You can use this configuration file as a template for the configuration objects you need to create and align with the relevant Cherwell applications.

To view the contents of the "Cherwell Integration Settings" (cherwell_config) configuration object, go to the Configurations page of the Skylar Automation user interface and click the Actions button next to the "Cherwell Integration Settings" configuration. The Configuration pane appears:

Adding and Editing Credentials in a Configuration Object

From the Configurations page of the Skylar Automation user interface, you can edit an existing configuration object or create a new configuration object.

For example, you can edit the variables in the "Cherwell Integration Settings" configuration object that came with the SyncPack and then align that configuration object with one or more CSM-related applications. You can also use the Copy As button to make a copy of that configuration object so you can align it with other applications.

The following configuration object variables are required for the "Cherwell" SyncPack:

  • cherwell_host. Type the URL you use to access the Cherwell host. This is the same URL that you used in Creating the Cherwell API Credential.
  • cherwell_user. Type the CSM Login ID that will be used to authenticate to the CSM API. This is the same username that you created in Creating a New User.

Aligning a Configuration Object with a Skylar Automation Application

For every application in Skylar Automation, you will need to "align" a configuration object to that application to ensure that the application can properly authenticate to CSM. You can align the same configuration object with multiple applications.

To align a configuration object with an application:

  1. In the Skylar Automation user interface, go to the Applications page.
  2. Select the application that you want to align with the configuration object, such as "Add ScienceLogic Skylar One Devices to Cherwell". The Application page for that application appears.
  3. Click Configure. The Configuration pane opens on the right side of the Application page:

    To view a pop-up description of a field on the Configuration pane for an application, hover over the label name for that field.

  4. Select a configuration from the Configuration drop-down to "align" to this application. This step is required for all applications.

    Click Show JSON Configs to view the JSON configuration data for the configuration object. Click Hide JSON Editor again to view the fields instead.

  5. As needed, edit the other configuration values for the application. Press Enter after editing an item to make sure your changes are saved.

    To prevent potential issues with security and configuration, any fields that are encrypted and any configuration-specific fields containing a padlock icon on the Configuration pane cannot be edited.

  6. When you are finished, click Save at the bottom of the Configuration pane.

Sending Additional Metadata for Incident Records

You can pass additional information from Skylar One to Skylar Automation and populate any additional field on the Incident record. This process uses the "Cherwell Event IS4 Integration" run book action from the "Cherwell Integration" PowerPack.

The "Cherwell Event IS4 Integration" run book action collects information about the event and sends it to Skylar Automation to create an incident.

To pass additional information from Skylar One to Skylar Automation:

  1. In Skylar One, navigate to the Action Policy Manager page (Registry > Run Book > Action ) and edit the "Cherwell Event IS4 Integration" run book action to enable it to collect the data from Skylar One using the API or some other source.
  2. In the snippet section, update the em7_data dictionary with the key you want the value to be addressed by and the value. For example: "ClassName": EM7_VALUES[%_class_name]:

  3. In the Skylar Automation user interface, navigate to the SyncPacks page, select Cherwell SyncPack, and on the Steps tab select the "Collect and Transform Skylar One RBA Data" step. This step collects the data sent by the run book action and passes it to the "Cherwell: Create Event" step, which processes the Skylar One Event into a Cherwell Event.
  4. Update the payload dictionary in the step with the key and value you added. For example: "ClassName": event_details["ClassName"]

  5. Log in to the CSM Administrator client as an administrator, select Blueprints in the Categories sub-menu on the left, and select Create a new Blueprint:

  6. In the New Blueprint window, select the Managers > One-Step . The One-Step Action Manager window appears:

  7. In the Association drop-down, select Event.
  8. Navigate to the "Blueprint/Federation/Content/IS" folder, right-click the "IS: Create and Update Incidents" One-Step file, and select Edit. The One-Step Editor page appears:

  9. Select the "Setup Event to Incident JSON Data" step so you can append the value you added to the dictionary in step 4 as a key-value pair at the end of the dictionary on this step. For example: "ClassName": event_details["ClassName"]
  10. To append the value, type the key for the new value in the New Value field, such as "ClassName".
  11. To add a value to associate with the new key, right-click between the two quotation marks in the entry you made in step 10 in the New Value field and select Message from the pop-up dialog. 
  12. Type the value after the new key, such as "ClassName":"Event.Message":

    Event.Message is a reference to the Cherwell Message field in the event. The Message field holds all the information about the Skylar One event in it via the payload you modified in step 4.

  13. To get the field you want in the payload for ClassName, you need to apply a filter by right-clicking Event.Message and selecting Modifiers. The Modify/Format Value window appears, where you can apply filters to assign a value for ClassName:

  14. Click + at top left and select As JSON from the Modifier drop-down.
  15. Click + again, select String from Element from the Modifier drop-down, and type the name of the key for the new value you put in the dictionary in step 4, such as ClassName.
  16. Click OK. The relevant value in the dictionary contains the variable next to ClassName.
  17. On the One-Step Editor page, select the "Create a new Incident" step and click the Fields tab:

  18. Make sure that the pencil icon is unchecked so you can assign the ClassName variable to any of the fields available in the incident:

  19. For example, if you wanted to add ClassName to the Description field, select Description in the list of fields, select Template, and right-click on the empty text area below to bring up the variable selector.
  20. From the variable selector, scroll down to the Variables drop-down and select EventData as this is the variable we assigned to the payload in the "Setup Event to Incident JSON Data" step:

  21. Apply filters to the EventData" variable to assign the relevant value to it from the payload by right-clicking EventData and selecting Modifiers. The Modify/Format Value window appears.
  22. Click +, select String from Element from the Modifier drop-down, and type the name of the key for the new value you appended in the dictionary in the step "Setup Event to Incident JSON Data".
  23. Click OK. The Manage objects page appears.
  24. Accept the changes you made to the One-Step and save the Blueprint by clicking Save Blueprint to disk.
  25. Publish the Blueprint by clicking Publish Blueprint. The Publish Options dialog appears.
  26. Use the default settings and click Publish. When the publish process is complete, the next time an event occurs, you will see the enriched data in the field you selected on the form.