How to guide on how to create alarm issues from Nodinite.
Use Nodinites excellent webhook to POST data to Jira and map that to issues using iHub.
Step 1. Webhook in Nodinite
- Set up a webhook in Nodinite, see doc https://documentation.nodinite.com/Documentation/Administration?doc=/5.%20Settings/1.%20Alarm%20Plugins/Features/HTTP%20Webhook
- Enter the Inbound URL for Integrations hub for Jira found on the Inbound Integrations page in the blue info box. (baseUrl/rest/restfulintegrator/1.0/incoming)
Use basic auth as auth. - This will send the alarms to iHub inbound rule engine.
- You can test sending an alarm using the webhook and view the Logs tab on the Inbound Integrations section. This will show how the data looks like.
- An example payload exists here:
- https://documentation.nodinite.com/Documentation/Administration?doc=/5.%20Settings/1.%20Alarm%20Plugins/Features/HTTP%20Webhook
Step 2. Setup Outbound Integration to create the issues
- Click create and select a Group called Nodinite
- Click create and select an Iteration called Nodinite - Iterate monitors
- Set Json Path to array: $.MonitorViews
This will tell iHub to go through each Monitor View in Nodinite.
- Next is to add the the Action that creates the issues
- Click create and select Action
- Choose template category Jira Core
- Choose template Create Issue
- Click Create
- Make sure the action has Auto-generate 1st level as variables from parent response selected
- Select the credential
- Modify this body to fit your instance
{ "fields": { "project": { "key": "ITSUP" }, "summary": "Monitor: {{Name}}", "issuetype": { "name": "Task" }, "description":"{{Description}} has Status {{StatusCode.Name}} for resources: {{#ChangedResources}} * {{Name}}{{/ChangedResources}}", "reporter": { "name": "kg" }, "labels": [ "nodinite", "alarm" ] } }