Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
opEvents Programmable Button Actions
Updated Dec 12, 2024

    opEvents Programmable Button Actions

    Dec 12, 2024

      Available in opEvents-3.2.2 and opEvents-2.6.1

      opEvents programmable buttons allow scripts to be run against events to give operators  greater flexibility in the use of opEvents in troubleshooting and triaging of events.

      It uses the same pipeline as scripts in EventActions but now operators have the ability to manually kick off a action for an event.

      Example use Cases

      Create a Jira ticket

      Configuration

      Create a file in omk/conf/table_schemas/opEvents_action-buttons.json

      This must be valid JSON schema or the buttons will fail to render. You should see an error in opEvents.log if this is the case.

      [ { "description": "Example Events Button Action", "label": "Ping Node", "fa_icon": "fas fa-table-tennis", "script": "ping_node", "tags": ["ping"] } ]

      Add a policy in omk/conf/EventActions.json|.nmis that triggers show_button.tag()

      EventActions.json
      "policy": { "5": { "IF": "event.any", "THEN": "show_button.ping()", "BREAK": "true" }, }
      EventActions.nmis
      %hash = ( 'policy' => { '5' => { IF => 'event.any', THEN => 'show_button.ping()', BREAK => 'true' }, } );

      These are the supported keys and how the change operation and look of the button.

      Key

      Type

      Required

      Description

      script

      string

      Yes

      Name of the script defined in EventActions.json

      label

      string

      Yes

      Label which the button will display to the user

      description

      string

      optional

      Tool-tip help text to be displayed when you mouse over the button

      tags

      array[string]

      optional

      If no tags are defined the button will show on all events, if tags are defined the button will only show on events which have been tagged with show_button.tag_name()

      run_once

      boolean

      optional

      If set to true the button will look for script.script_name key on the event, if found the button will disable itself. This allows manual actions to only be triggered once. Will not influence any defined EventActions.json operations.

      fa_icon

      string

      optional

      Icon to be displayed from the Font Awesome library shipped with opEvents example: "fas fa-table-tennis" Icons here https://fontawesome.com/icons?d=gallery

      class

      string

      optional

      Define a css class to colour the button, see Notes on Button Classes below to see a list of supported types

      order

      number

      optional

      Order in which the button should be displayed (available from opEvents 4.5.0)

      Note on Button Classes

      Class

      btn-default

      btn-primary

      btn-success

      btn-info

      btn-warning

      btn-danger

      btn-link

      Note on Font Awesome

      In opEvents-3.2.2 we are shipping the library 5.12.1

      In opEvents-2.6.1 we are shipping the library 5.8.2

       

        Community Home

        opEvents
        • Downloads
          Downloads
        Results will update as you type.
        • API
        • Archive Logging
        • Configuration
        • FAQ
        • Features
        • How-To Guides
          • Changing event colors based on priority level in opEvents
          • Create remote event
          • Creating custom Policies and Actions
          • How To - opEvents - Manually Purge Events From OMK Database
          • opEvents Customising Table Columns
          • opEvents Programmable Button Actions
          • opEvents - Solution Guide - Event Consolidation Based on Location
          • opEvents - Solution Guide - Sending Events to a Central Event Management Server
          • opEvents - Solution Guide - Setup Email Notifications and Other Actions
          • opEvents - Solution Guide - System Configuration for a Production Environment
          • opEvents - Syslog Handling - Adding a New Format
          • Opmantek Synergy - opEvents Triggers opConfig to Collect Targeted Diagnostic Data
          • Opsgenie Integration
          • Slack Integration
          • Enrich WAN Circuit Events
        • Introduction & Setup
        • opEvents Create filters for Current Events
        • opEvents Realtime Events
        • Parser Plugins using the opEvents object
        • Release Notes
        • opEvents Event Panels
          Questions
          Calendars

        You‘re viewing this with anonymous access, so some content might be blocked.
        {"serverDuration": 12, "requestCorrelationId": "ba41626043174914a8b622bed247fab1"}