[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: PNG File GLPI_apptoken.png     PNG File GLPI_documentation.png     File GLPi webhook_7.0_Edit 2025.md     PNG File glpi_version.png     PNG File image-2023-11-05-22-28-18-422.png     File media_glpi.yaml     PNG File without_apptoken.png     PNG File zabbix_api1.png     PNG File zabbix_api2.png     PNG File zabbix_supervision_profile_rights.png     PNG File zabbix_user1.png     PNG File zabbix_user2.png     PNG File zabbix_user3.png     PNG File zabbix_webhook.png    
Team: Team INT
Story Points: 2

 Description   

Steps to reproduce:

  1. Install the media GLPI using notes provided by Zabbix : https://www.zabbix.com/integrations/glpi
  2. Create a GLPI user as described in the documentation

Result:
When a problem appear we have an error message that tell missing app-token.

No created ticket in our GLPI instance.

Expected:
A ticket created in GLPI.

 

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,
Please confirm version of your GLPI instance and attach screenshot for Webhook configuration page when you get this error message

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{}

 

 

Generated at Sat Jul 05 08:31:49 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.