Giter VIP home page Giter VIP logo

Comments (7)

Robertolw avatar Robertolw commented on July 30, 2024

Estou enfrentando o mesmo problema.
I got the same issue.

from zabbix-glpi.

babelattke avatar babelattke commented on July 30, 2024

Robertolw, try it with an Admin user, I'm using "glpi".

from zabbix-glpi.

Robertolw avatar Robertolw commented on July 30, 2024

I created a zabbix user with super-admin rights, tested with glpi user aswell and got the same error with both accounts, i can create tickets just fine with command lines and automaticaly, but i always get xmlrpc error(14): Bad parameter (ticket) when i try closing it.

from zabbix-glpi.

babelattke avatar babelattke commented on July 30, 2024

So your problem is only closing the ticket? if opening the ticket is working well it has to work well closing it. Check again the actions in Zabbix Server, there must be an error.

Find below the commands I'm using in each case.

Open

php /usr/lib/zabbix/externalscripts/zabbix/tickets_zabbix_glpi.php eventhost="{HOST.HOST}" event="DOWN" state="{TRIGGER.STATUS}" hostproblemid=0 lasthostproblemid=0 servico="{TRIGGER.NAME}" triggerid="{TRIGGER.ID}" eventzabbix="{EVENT.ID}"

Close

php /usr/lib/zabbix/externalscripts/zabbix/tickets_zabbix_glpi.php eventhost="{HOST.HOST}" event="UP" state="{TRIGGER.STATUS}" hostproblemid=1 lasthostproblemid=1 servico="{TRIGGER.NAME}" triggerid="{TRIGGER.ID}" eventzabbix="{EVENT.ID}"

Both actions are configured with this parameters

Operation Type: Remote Command
Target List: Host:ZabbixServer
Type: Custom Script
Excecute on: Zabbix Agent

Hope it helps.

from zabbix-glpi.

Robertolw avatar Robertolw commented on July 30, 2024

Hi i double checked my actions config, no luck...

root@Monitoramento:/home/cogeti# php /usr/lib/zabbix/externalscripts/zabbix-glpi/tickets_zabbix_glpi.php eventhost="E09 BR1 SW1" event="UP" state="OK" hostproblemid=1 lasthostproblemid=1 servico="Disponibilidade" triggerid="1512" eventzabbix="845906"
+ Calling 'glpi.test' on http://200.xxx.xxx.xxx/.../glpi/plugins/webservices/xmlrpc.php
+ Calling 'glpi.doLogin' on http://200.xxx.xxx.xxx/.../glpi/plugins/webservices/xmlrpc.php
+ Calling 'glpi.addTicketFollowup' on http://200.xxx.xxx.xxx/.../glpi/plugins/webservices/xmlrpc.php?session=96qsurhfq2oe648uuuivuh8rk1
xmlrpc error(14): Bad parameter (ticket)
+ Calling 'glpi.doLogout' on http://200.xxx.xxx.xxx/.../glpi/plugins/webservices/xmlrpc.php?session=96qsurhfq2oe648uuuivuh8rk1

I'm using exactly the same actions as you, the only big difference is I'm using 2 servers zabbix and glpi are running on different machines.

from zabbix-glpi.

prcamargo avatar prcamargo commented on July 30, 2024

I have the same problem, I'm using 2 servers.

from zabbix-glpi.

alexandremundim avatar alexandremundim commented on July 30, 2024

Consegui colocar pra executar o comando remoto, me retorna executado, porém o GLPI não recebe o chamado, já está com API REST habilitado, sabem me dizer se exite algum outro detalhe?

Abrir chamado - Comando:Zabbix server:php /opt/zabbix/externalscripts/tickets_zabbix_glpi.php eventhost="BEATRIZ" event="DOWN" state="PROBLEM" hostproblemid=0 lasthostproblemid=0 servico="WSUS" triggerid="23349" eventzabbix="1902421" - Executado

RESOLVIDO - Era o apontamento de diretório dentro de Tickets_zabbix_glpi.php estava para /opt/zabbix/externalscripts quando deveria ser /usr/lib/zabbix/externalscripts


Cenário:

GLPI 9.2.1 e Plugin Web Services 1.8.0 em Debian 8
Maria DB em Debian 8
Zabbix 3.4 em Debian 8

from zabbix-glpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.