[ZBX-23216] Need App-Token in GLPI media for GLPI 10.0.9 support Created: 2023 Aug 07 Updated: 2025 Jul 03 |
|
Status: | Needs documenting |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Templates (T) |
Affects Version/s: | 6.0.20 |
Fix Version/s: | 7.0.17rc1, 7.4.1rc1, 8.0.0alpha1 (master) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Romain RN | Assignee: | Marianna Zvaigzne |
Resolution: | Unresolved | Votes: | 3 |
Labels: | None | ||
Remaining Estimate: | 1h | ||
Time Spent: | 19.5h | ||
Original Estimate: | 20h | ||
Environment: |
Debian 11 |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Team: | |
Story Points: | 2 |
Description |
Steps to reproduce:
Result: No created ticket in our GLPI instance. Expected:
To have a working media I needed to add this in getAuthToken function (after line 32) : request.addHeader('App-Token: ' + 'The GLPI app token');
I also needed to add this to request function (after line 80) : request.addHeader('App-Token: ' + 'The GLPI app token');
Could you please add a macro and modify the script for this ?
Best regards, |
Comments |
Comment by Romain RN [ 2023 Aug 07 ] |
As attachments you can find the error message, GLPI needed configuration and modified media_glpi file that need to be reviewed and modified by dev team.
Best regards. |
Comment by Elina Kuzyutkina (Inactive) [ 2023 Aug 14 ] |
Hi, Regards, Elina |
Comment by Romain RN [ 2023 Aug 14 ] |
Hi Elina,
Please find in attachments the glpi version of our instance, the configuration of Zabbix user and the webhook configuration page.
Best regards. |
Comment by Romain RN [ 2023 Aug 14 ] |
Elina,
I have also added a screenshot of the api documentation that can be accessed thru GLPI. I can notice app-token marked as optional.
Perhaps the best thing to do is to add a non mandatory macro in the glpi_media template and use it only if it's set to a value ?
Best regards, |
Comment by Renan Redel [ 2023 Sep 02 ] |
Hi all,
I facing the same issue. Romain, could you please, share some screen shot from the workaround ?
Regards. |
Comment by Romain RN [ 2023 Sep 08 ] |
Hello Renan Redel,
All the screenshots and modified media_glpi.yaml are as attachment of the ticket. You need to import the modified media and fill the macros. On GLPI side you need to create an application api token. (you can see it in the screenshots)
I hope a new version of the media from Zabbix developpers because I'm not
Best regards, |
Comment by David RUBIO [ 2023 Nov 05 ] |
On my side, it's reporting that SESSION_TOKEN_MISSING{}
|