A listener that will ingest from a Webhook (POST).
Configure a webhook in your external system that will forward to your Moogsoft AIOps instance.
Configuring the Webhook
- Create the webhook by selecting webhooks integrations.
Add the URL for this Moogsoft AIOps instance as shown above.
Generate the basic auth string, take the username and password provided above and use a base64 encode, 'username:password'.
Use this JSON as the body of the Webhook event, adding local event data as appropriate by replacing the <xxx> example field placeholders.
Add the headers field where xxx is the value created in step 3:
Connect the webhook as required in the source system and turn on.
The signature you choose uniquely identifies the alert, it should contain at least identifiers for the source host and an indication of the type of event, it can be a concatenated string. Eg. 'HOST0010:MEMFREE' or 'HOST0020:DB123:Connection'
Test the endpoint
To test that this endpoint is working you can use a curl command as shown.
This command should return:
See REST LAM response codes for testing and troubleshooting.
Moogsoft AIOps Sample
The default Webhook cookbook will show all alerts that impact the same or similar hosts (source).