nagioshost $(echo $HOSTNAME) (used to build the nagios link URLs. To use the Mattermost integration you must create an incoming webhook integration in Mattermost: Sign in. Go to the Integrations -> Incoming Webhooks -> Add incoming Webhook section. webhookchannel '' (must use single quotes or escape the #) Configure Mattermost to receive GitLab notifications. * Set up the command like the examples below.Ĭommand_line $USER1$/nagios-mattermost-webhook.sh -nagioshost $(echo $HOSTNAME) -hostalias "$HOSTNAME$" -servicedesc "$SERVICEDESC$" -servicestate "$SERVICESTATE$" -serviceoutput "$SERVICEOUTPUT$" -servicenotes "$SERVICENOTES$" -notificationtype "$NOTIFICATIONTYPE$" -serviceorhost service -webhookusername Nagios -webhookchannel '#alerts' -webhookurl ''Ĭommand_line $USER1$/nagios-mattermost-webhook.sh -nagioshost $(echo $HOSTNAME) -hostalias "$HOSTNAME$" -hoststate "$HOSTSTATE$" -hostoutput "$HOSTOUTPUT$" -hostnotes "$HOSTNOTES$" -notificationtype "$NOTIFICATIONTYPE$" -serviceorhost host -webhookusername Nagios -webhookchannel '#alerts' -webhookurl '' Use outgoing webhooks to post automated responses to posts made by your users. Typically `/usr/local/nagios/libexec/` (if you've compiled from source). Mattermost supports webhooks to easily integrate external applications into the server. * I'm assuming that you already have a good understanding of how nagios works, that won't be covered here. All of this is accomplished in this webhook integration. First, we talked about how to set up your developer environment. Also, I wanted links to the alert and to nagios in each alert. JPlatform The web app side lets your plugins change the layout and user experience of Mattermost ( Originally published at controlaltdieliet.be) This is the fourth installment in a series of articles on Mattermost plugins. One of my complaints with the existing slack Nagios integration was the limited number of variables I could pass to slack. 3 Answers Sorted by: 7 You cant currently attach files using the Incoming Webhooks API. The goal of this mattermost/slack webhook integration is to make alerts more customizable and prettier. This can be achieved by using the Incoming Webhooks from Mattermost and the Webhook Notifications from Endtest.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |