【问题标题】:glpi webservice call returns No response and Bad responseglpi webservice 调用返回无响应和错误响应
【发布时间】:2015-01-19 06:02:35
【问题描述】:

几周以来,我一直在研究 glpi。每当我尝试使用命令调用 webservice 时

/var/www/html/glpi0.84/glpi/plugins/webservices/scripts$ php testxmlrpc.php --host=127.0.0.1 --url=/glpi0.84/glpi/plugins/webservices/scripts/testxmlrpc.php

返回

+ Calling 'glpi.test' on    http://127.0.0.1//glpi0.84/glpi/plugins/webservices/scripts/testxmlrpc.php
+ Calling 'glpi.test' on  http://localhost//glpi/plugins/webservices/xmlrpc.php
+ No response
+ Bad response

我该如何解决这个问题?还有没有办法使用 ocs 和 glpi 来实现网络发现?我参考了ocs documentation。我已经安装了 ocsinventory-agent,但是使用 sudo ocsinventory-agent 和 sudo ocsinventory-agent --server=localhost 调用 ocs 代理没有返回任何结果。

【问题讨论】:

    标签: inventory


    【解决方案1】:

    我自己修好了。问题是我必须提供在 glpi webservice 插件中设置的凭据,而不是用于登录 glpi web 界面的凭据。这可以从

    访问

    plugins-->webservices-->local-->username/password

    【讨论】:

      猜你喜欢
      • 2012-01-25
      • 1970-01-01
      • 2019-05-26
      • 1970-01-01
      • 2021-12-20
      • 1970-01-01
      • 2016-05-23
      • 2012-08-29
      • 2019-01-01
      相关资源
      最近更新 更多