Integration with Zenoss

This scenario is applicable when the ITSM tools is not available in the client environment and event management tool and iAutomate are tightly integrated directly. The event data or the probable root cause identified flows to iAutomate which then performs the appropriate action for resolution.

To create a data source, perform the following steps:

  1. On the left menu bar, click Configuration 🡪 Manage Data Source.
  2. The Create Data Source page appears with the following tabs:
    1. Organization
    2. Fetch Data
    3. Release Rules
    4. Close Rules (Optional – applicable only when the issue closure status update is managed by iAutomate directly instead of RBA tool)
    5. InProgress Rules (Optional – applicable only when the issues in progress status updates are managed by iAutomate directly instead of RBA tool)
    Figure 1. Create Data Source
  3. On the Organization tab,
    1. Select the Module as Event Management, since we are configuring this data source for pulling the event data.
    2. Select the Service as Zenoss Tool as we are configuring the data source for Zenoss
    3. Select the Integration Type as REST, since we will be integrating through REST APIs.
    4. Check Is Ticket Closure Managed by iAutomate job if you want iAutomate to manage the issue closure updates instead of the RBA tool. In this scenario, an additional tab Close Rules Configuration will be activated to provide further details, steps for which are mentioned later.
    5. Check “Is ticket InProgress Managed by iAutomate job” if you want iAutomate to manage the issues in progress status updates instead of the RBA tool. In this scenario, an additional tab “InProgress Rules Configuration” will be activated for providing further details, steps for which are mentioned later.
    6. Select the Timezone to specify the time zone of the selected data source.
    7. Select Timestamp to view the present data with date and time.
    8. Click Next.
    Figure 2. Create Data Source (Cont.)
    Figure 3. Create Data Source (Cont.)
  4. On the Fetch Data tab, type in the details as per the environment.
  5. In the Connection Details section, enter the following details:
    1. URL – Type the URL which contains the placeholders that display the parameters based on the applied clause such as the number of records to be fetched, query type, date on which the data is fetched, and the order by and so on. It depends on the URL or API provided by the tool.

      Sample URL - https://url.servicenow.com/api/now/v1/table/sc_request?sysparm_fields=#Columns

    2. Authentication Type - Select one of the Authentication Types from NoAuth / Basic / Windows
      1. Selection of Basic / Windows requires you to enter -
        • User Id
        • Password
    3. Request Method - Select Request Method as POST from the drop-down.
    4. Proxy Required - Check Proxy Required, if the environment needs access to content from data sources outside the firewall.
    5. Click on Test Connection to check accessibility of URL from service. Testing the connection is not mandatory, you can still create Data source.
    Figure 4. Create Data Source (Connection Details)
    A screenshot of a computer Description automatically generated
  6. Request Header Parameters – Please enter the request header parameters as required.
  7. Request Body - As request method selected earlier is POST, please enter the body of URL. A sample response is mentioned below -
    Request Body –
    {"action": "EventsRouter","method": "query",
    "data": [{
    "keys": ["evid", "summary", "eventState", "severity", "eventClass", "ownerid", "firstTime", "lastTime", "count", "eventClassKey", "message"],
    "params": {
    "eventState": [0, 1], "severity": [5],
    "excludeNonActionables": false,
    "firstTime": "#firstTime# TO #lastTime#","eventClass": []},
    "limit": 200,
    "sort": "firstTime",
    "dir": "ASC",
    "start": 0,
    "uid": "/cz0/zport/dmd"
    }],
    "type": "rpc",
    "tid": 2
    }
    Figure 5. Create Data Source (Connection Details)
    A screenshot of a computer Description automatically generated
  8. Response Body – In this section, please enter the output of URL query for one of the incidents in JSON format. A sample response is mentioned below -
    Response Body –
    {
    "result": {
    "totalCount": 1,
    "events": [
    {
    "count": 1,
    "firstTime": 1600874287.072,
    "severity": 5,
    "evid": "0242ac11-000c-b913-11ea-fdaffba5ea6f",
    "eventClassKey": "",
    "summary": "xxxxxxxx | manageIP: xxxxxxxx",
    "eventState": "New",
    "ownerid": null,
    "eventClass": {
    "text": "/App",
    "uid": "/zport/dmd/Events/App"
    },
    "lastTime": 1600874287.072,
    "message": "xxxxxxxx"
    }
    ],
    "success": true,
    "asof": 1601266658.118566
    }
    }
  9. After entering the response, click Extract Keys to add the parameters in the Mandatory Parameter Mapping section.
  10. Mandatory Parameter Mapping – Please map the mandatory parameters to the respective values as mentioned in the screenshot below:

    Sample Mandatory Parameter Mapping

    Key Value Type Value
    TicketNumber JSON.Keys result.0.evid
    Summary JSON.Keys result.events.0.summary
    Description JSON.Keys result.events.0.message
    CreationDate JSON.Keys result.events.0.firstTime
    StatusCode JSON.Keys result.events.0.eventState
    ResolvedDate JSON.Keys result.events.0.lastTime
    LastModifiedDate JSON.Keys result.events.0.lastTime
    Figure 6. Mandatory Parameter Mapping
    A screenshot of a computer Description automatically generated
  11. If you need to add Optional parameters, click Add Response Parameter to add more parameters. For our purpose, we will be adding a couple of extra parameters, as mentioned below, as we need them in the later section.

    Sample Optional Parameters

    Key Value Type Value
    Col1 JSON.Keys result.0.evid
    Figure 7. Optional Parameter Mapping
    A screenshot of a computer Description automatically generated
  12. Click Next to proceed to Release Rules.
  13. On the Release Rules tab, type in the details as per the requirement.
  14. In the Connection Details section, enter the following details:
    1. URL – Type the URL of the selected service type to release the ticket. It contains the placeholders that display the parameters based on the applied clause and is dependent on the URL or API provided by the tool.

      Sample URL https://url.servicenow.com/api/now/v1/table/sc_request?sysparm_fields=#Columns

    2. Authentication Type – Please enter the information in line with the Authentication type configured for fetching data configuration previously.
    3. Request Method – Select Request Method as POST from the drop-down.
    4. Proxy Required – Check Proxy Required, if the environment needs access to content from data sources outside the firewall.
    5. Click on Test Connection to check accessibility of URL from service. Testing the connection is not mandatory, you can still create Data source.
    Figure 8. Release Rules Configuration (Connection Details)
  15. Request Header Parameters – Please enter the request header parameters as required.
  16. Request Body – In this section, please enter the request body in JSON format. A sample request is mentioned below -
    Request Body –
    {
    "action": "EventsRouter",
    "method": "write_log",
    "data": [{
    "evid": "#evid#",
    "message": "#message#"
    }],"tid":2
    }
    Figure 9. Release Rules (Request Body)
    A screenshot of a computer Description automatically generated
  17. Response Body – In this section, please enter the response body in JSON format. A sample response is mentioned below -
    Response Body –
    {
    "uuid": "xxxxxxxx",
    "action": "EventsRouter",
    "result": {
    "success": true
    },
    "tid": 2,
    "type": "rpc",
    "method": "write_log"
    }
    Figure 10. Release Rules Configuration (Response Body)
    A screenshot of a computer Description automatically generated
  18. On Close Rules tab, type in the details as per the requirement. Check Same as Release if similar configurations as mentioned in “Release Rules Configuration” are required, else proceed ahead.
  19. In the Connection Details section, enter the following details:
    1. URL – Type the URL of the selected service type to release the ticket. It contains the placeholders that display the parameters based on the applied clause and is dependent on the URL or API provided by the tool.

      Sample URL - https://<url>

    2. Authentication Type – Please enter the information in line with the Authentication type configured for fetching data configuration previously.
    3. Request Method – Select Request Method as POST from the drop-down.
    4. Proxy Required – Check Proxy Required, if the environment needs access to content from data sources outside the firewall.
    5. Click on Test Connection to check accessibility of URL from service. Testing the connection is not mandatory, you can still create Data source.
    Figure 11. Release Rules Configuration (Connection Details)
  20. Request Header Parameters – Please enter the request header parameters as required.
  21. Request Body – In this section, please enter the request body in JSON format. A sample request is mentioned below.
    Request Body –
    {
    "action": "EventsRouter",
    "method": "close",
    "data": [{
    "evids": "#evids#"
    }],"tid":2
    }
    Figure 12. Release Rules (Request Body)
    A close-up of a computer screen Description automatically generated
  22. Response Body – In this section, please enter the response body in JSON format. A sample response is mentioned below -
    Response Body –
    {
    "uuid": "xxxxxxxx",
    "action": "EventsRouter",
    "result": {
    "data": {
    "updated": 31,
    "total": 3670
    },
    "success": true
    },
    "tid": 2,
    "type": "rpc",
    "method": "acknowledge"
    }
    Figure 13. Release Rules Configuration (Response Body)
    A screenshot of a computer Description automatically generated
  23. On InProgress Rules tab, type in the details as per the requirement. Check Same as Release if similar configurations as mentioned in “Release Rules Configuration” are required, else proceed ahead.
  24. In the Connection Details section, enter the following details:
    1. URL – Type the URL of the selected service type to release the ticket. It contains the placeholders that display the parameters based on the applied clause and is dependent on the URL or API provided by the tool.

      Sample URL https://url.servicenow.com/api/now/v1/table/sc_request?sysparm_fields=#Columns

    2. Authentication Type – Please enter the information in line with the Authentication type configured for fetching data configuration previously.
    3. Request Method – Select Request Method as POST from the drop-down.
    4. Proxy Required – Check Proxy Required, if the environment needs access to content from data sources outside the firewall.
    5. Click on Test Connection to check accessibility of URL from service. Testing the connection is not mandatory, you can still create Data source.
    Figure 14. Release Rules (Connection Details)
    A screenshot of a computer Description automatically generated
  25. Request Header Parameters – Please enter the request header parameters as required.
  26. Request Body – In this section, please enter the request body in JSON format. A sample request is mentioned below -
    Request Body –
    {
    "action": "EventsRouter",
    "method": "acknowledge",
    "data": [{
    "evids": "#evids#"
    }],"tid":2
    }
    Figure 15. Release Rules Configuration (Request Body)
    A white rectangular object with black letters Description automatically generated with medium confidence
  27. Response Body – In this section, please enter the response body in JSON format. A sample response is mentioned below -
    Response Body –
    {
    "uuid": "xxxxxxxx",
    "action": "EventsRouter",
    "result": {
    "data": {
    "updated": 31,
    "total": 3670
    },
    "success": true
    },
    "tid": 2,
    "type": "rpc",
    "method": "acknowledge"
    }
    Figure 16. Release Rules Configuration (Response Body)
    A screenshot of a computer Description automatically generated
  28. Click Save to add the data source.