You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2019-09-27 14:42:45

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Scripts through API

Hello,

About this topic https://forum.glpi-project.org/viewtopic.php?id=172606, script stopped close tickets.

I try to use in other scenario, and don't working.

When run php /etc/zabbix/zabbix-fecha-chamado.php the response stopping after obtain session_id.

{"session_token":"an session_token"}

I did try remake all steps, but still in there.

Offline

#2 2019-09-27 15:01:58

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,167

Re: Scripts through API

check if there is only 1 ticket with title  that contains {event.id}  ( using GUI)


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#3 2019-09-27 15:46:27

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: Scripts through API

LaDenrée wrote:

check if there is only 1 ticket with title  that contains {event.id}  ( using GUI)

I found what causing the problem.

I did a search and found in this topic https://forum.glpi-project.org/viewtopic.php?id=169938 in the comment #11.

I have here the plugin My-Dashboard version 1.7.4, and when I did tests yesterday that plugin still was disabled.

Since that got ready work opening and closing tickets by API's, I've enabled the plugin.

So I notice that this plugin crashing GLPI-API, I don't know why. As mentioned in the post.

Have the plugin enabled it's sufficient to get the crash. I disabled him and test again, and it's working.

What can I do or how to warn the plugin developer (Infotel) to check this problem?

Last edited by mecmav (2019-09-27 15:46:49)

Offline

#4 2019-09-27 15:51:41

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: Scripts through API

LaDenrée wrote:

check if there is only 1 ticket with title  that contains {event.id}  ( using GUI)

when i run the request isolated /search/Ticket?criteria[0][field]=1&criteria[0][searchtype]=contains&criteria[0][value]=26895&forcedisplay[0]=2 Get a unique response to correct ticket_id.

That's working only when the plugin are disabled. When it's enabled, at running php /etc/zabbix/zabbix-fecha-chamado.php {EVENT.ID} get a response till the session_token.

If I could to upload an printscreen, I have one here to show how it is.

Last edited by mecmav (2019-09-27 15:51:56)

Offline

Board footer

Powered by FluxBB