Ad Widget

Collapse

Zabbix + GLPI Integração para abertura de chamados ERRO PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeanbezbatti
    Junior Member
    • Jan 2019
    • 3

    #1

    Zabbix + GLPI Integração para abertura de chamados ERRO PHP

    Bom dia,

    Estou tentando a integração entre zabbix e GLPI para abertura de chamados de alguns grupos de Hosts
    estou utilizando o Script do Vitor Mazuco :
    https://github.com/…/za…/blob/master/tickets_zabbix_glpi.php

    Versoes:
    Glpi 9.2.2
    Webservices 1.8.0

    Porém estou travado no seguinte erro

    Comando:
    [root@zabbixserver ~]# php /etc/zabbix/scripts/tickets_zabbix_glpi.php eventhost="Impressora_152" event="DOWN" state="PROBLEM" hostproblemid=0 lasthostproblemid=0 servico="Toner yellow low on printer Impressora_152" triggerid="15152" eventzabbix="1418239"
    + Calling 'glpi.test' on http://192.168.0.150/glpi_ho…/plugins/webservices/xmlrpc.php
    + Calling 'glpi.doLogin' on http://192.168.0.150/glpi_ho…/plugins/webservices/xmlrpc.php

    PHP Warning: file_get_contents(http://192.168.0.150/glpi_ho…/plugins/webservices/xmlrpc.php): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error
    in /etc/zabbix/scripts/tickets_zabbix_glpi.php on line 68
    + No response

    Linha 68: $file = file_get_contents("http://$host/$url", false, $context);
  • Jefte
    Senior Member
    • Oct 2015
    • 207

    #2
    Olá Jean, seu problema parece está relacionado com alguma permissão(do zabbix para executar o script ou de acesso) ou até mesmo com alguma funcionalidade/modulo do PHP instalado em seu servidor.

    Ou até mesmo alguma passagem de parâmetro incorreta.
    Code:
    Linha 68: $file = file_get_contents("http://$host/$url", false, $context);
    PS: Já tentou entrar em contato direto com desenvolvedor do script (Vitor Mazuco)?

    Comment

    • jeanbezbatti
      Junior Member
      • Jan 2019
      • 3

      #3
      Olá Jefte, então eu tenho muito pouco conhecimento em PHP, referente ao erro acredita que possa ser uma permissão do apache ou algo do gênero ao endereço "http://192.168.0.150/glpi_ho…/plugins/webservices/xmlrpc.php" ?

      Sobre o autor do Script sem sucesso o contato.

      Comment

      • jeanbezbatti
        Junior Member
        • Jan 2019
        • 3

        #4
        segue o Log do webservice dentro do GLPI
        Attached Files

        Comment

        Working...