Collaborative tools

Requirements (on-premise)

GLPI Version
Minimum PHP
Recommended

10.0.x

8.1

8.2

11.0.0

8.2

8.4

A GLPI Network BASIC subscription (or higher) is required. This plugin is also available for all GLPI Network Cloud instances.

Install the plugin

  • Go to the marketplace. Download and install the plugin Collaborative tools.

images/Webhook-1.png

Activate webhooks

  • In the tab Setup > Notifications activate Webhooks notifications

images/Webhook-2.png

Mattermost

  • From a Mattermost administrator account, go to the menu at the top left,

  • Then Integrations

images/Webhook-3.png
  • Select Incoming Webhooks

  • Then Add a new incoming webhook.

images/Webhook-4.png
images/Webhook-5.png
  • Fill in the necessary fields and select the channel that will receive the notifications

  • Then click on Save.

images/Webhook-15.png
  • You will then be sent the link to your Webhook:

images/Webhook-16.png
  • Go to setup the webhook in GLPI <setup_glpi>{.interpreted-text role="doc"}

Telegram

  • From Telegram, start a new chat with the bot @BotFather and run the following command /newbot

  • Answer the few questions you will be asked to set up your bot

  • Once finished, a token will be sent to you:

images/Webhook-17.png
  • If you have already created a dedicated channel to receive GLPI notifications, add your bot to it.

  • Otherwise, create your own channel

  • add the newly created bot

  • Send a message in the channel created to initiate a conversation and generate the various IDs we will need.

  • From your browser, enter the following URL:

    [https://api.telegram.org/botmytoken/getupdates\](https://api.telegram.org/botmytoken/getupdates)

Replace mytoken with the value of the token generated above

Telegram bot URLs take the form https://api.telegram.org/bot{mytoken}

  • You should see a similar result:

"ok": true,
"result": [
    {
        "update_id": 816584684,
        "my_chat_member": {
            "chat": {
                "id": -541684658463,
                "title": "GLPI Ticket",
                "type": "channel"
            },
            "from": {
                "id": 1546610935,
                "is_bot": false,
                "first_name": "xxxxxxx",
                "last_name": "xxxxxxx"


           },
            "new_chat_member": {
                "user": {
                    "id": 7468746847,
                    "is_bot": true,
                    "first_name": "glpi",
                    "username": "xxxxxx_bot"
  • In the my_chat_member copy the ID value of the chat.

  • Go to setup the webhook in GLPI

Teams

The channel used must be public. Microsoft does not currently allow webhooks with Workflows from a private channel.

  • From Teams, go to Apps

  • In the search box, enter Workflows

  • In the list of applications, click on Add

images/Webhook-21.png

Some information may take a while to appear, so please be patient between each step and wait for the information to appear on the screen before moving on to the next step.

  • From the desired Teams channel, click on the ··· menu

images/Webhook-22.png
  • Click on Workflows

  • Choose "Post to a channel when a webhook request is received"

  • In the new window, make sure that the current account has a sufficient licence to send webhooks

images/Webhook-23.png
  • Teams will give you a summary of the selected channel. If you've got it right, click on Add Workflows

images/Webhook-24.png
  • The URL of your workflow appears. Copy it and keep it, it will be used to configure GLPI.

images/Webhook-25.png
  • Go to setup the webhook in GLPI

Rocket

  • You need to add an application to your team (the link is present in the bottom of the left sidebar) and select incoming-webhook

  • Add a new configuration, select the channel where you want notifications and you will get the webhook url.

  • You can optionally setup a name and a logo for your hook.

  • Go to setup the webhook in GLPI

Slack

  • As a logged team administrator, go to the administration menu

  • click on Integrations menu item

  • Click on the New integration button

  • Select incoming webhooks, and define webhook parameters

  • After save, you will get the url of the webhook.

  • Go to setup the webhook in GLPI

Set up the webhook in GLPI

  • Fill in the requested information and select the channel on which you want the notifications to be sent.

  • Once registered, a link will be sent to you. Copy this link and transfer it to Setup > Notifications > Configuration of notifications by webhooks

  • Click on + and enter :

    • Webhook name,

    • the type,

    • the URL.

images/Webhook-7.png
  • Click on Add

  • You can test how it works by selecting your webhook and clicking on Send notification

images/Webhook-8.png

Recipients

  • You now need to determine which notifications will be affected by the sending of a Webhook and assign them a template.

  • Go to Setup > Notifications > Notifications

  • Select the 1st notification concerned by Webhooks (here New ticket)

  • In the Recipients tab, add your Webhook then Update.

images/Webhook-19.png

Templates

  • In the tab Templates click Add a template

  • Choose Webook in the Notification method and New in the Notification template

Your Webhook is ready to use. You can customise the template by clicking on New so that it matches your requirements.

images/Webhook-20.png

FAQ

If you have any questions about using the plugin, please consult our FAQ

Last updated

Was this helpful?