Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glpi-agent: Task ESX: "Can't decode JSON content" #16822

Closed
2 tasks done
mathieumd opened this issue Mar 21, 2024 · 2 comments
Closed
2 tasks done

glpi-agent: Task ESX: "Can't decode JSON content" #16822

mathieumd opened this issue Mar 21, 2024 · 2 comments
Labels

Comments

@mathieumd
Copy link
Contributor

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.14

Bug description

From a machine with GLPI Agent (1.7.1-1) and ESX task installed, while standard default inventory works well, that's not the case of ESX inventory:

sudo glpi-agent --tasks ESX
[info] target server0: server https://glpi.example.com/plugins/glpiinventory/
[info] sending contact request to server0
[info] sending prolog request to server0
[info] running task ESX
[error] [http client] Can't decode JSON content, starting with:


<!DOCTYPE html>
<html lang="fr"       >
<head>
   <title>Authentification - GLPI</title>

   <meta charset="utf-8" />
...
[info] ESX task not supported by server0

GLPI (server) is configured with ESX Inventory enabled for this agent, credential and credentialip are set for VMware.

What could be missing on the server?

BTW, running glpi-esx directly does works:

glpi-esx --host vcenter.esxi.example --user glpiinventory@esxi.example.com --password 'XXX'
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <CONTENT>
    <BIOS>
      <ASSETTAG></ASSETTAG>
      <BDATE>2023-10-19T00:00:00Z</BDATE>
      <BVERSION>U32</BVERSION>
<!-- [...] -->
      <VCPU>1</VCPU>
      <VMTYPE>VMware</VMTYPE>
    </VIRTUALMACHINES>
  </CONTENT>
  <DEVICEID>esxi01.esxi.example.com-2024-03-21-11-19-22</DEVICEID>
  <QUERY>INVENTORY</QUERY>
</REQUEST>

Relevant log output

No response

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

Copy link
Contributor

This issue has been closed as we only track bugs here.

You can get community support on forums or you can consider taking a subscription to get professional support.
You can also contact GLPI editor team directly.

@mathieumd
Copy link
Contributor Author

I guess it's at least a documentation bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants