fusioninventory / fusioninventory-agent

FusionInventory Agent
http://fusioninventory.org/
GNU General Public License v2.0
251 stars 125 forks source link

Error when using autonomous mode instructions for direct upload #1011

Closed thbar closed 4 weeks ago

thbar commented 2 years ago

I've been following the instructions over there for autonomous mode:

https://fusioninventory.org/documentation/agent/usage#autonomous-mode

The deferred upload example appears to be working:

$ sudo fusioninventory-inventory > inventory.xml
$ sudo fusioninventory-injector --verbose --file inventory.xml --url https://glpi.REDACTED.fr/plugins/fusioninventory/
Loading inventory.xml...OK

On the other hand, the immediate upload example gives a different output:

$ sudo fusioninventory-inventory | curl --data @- https://glpi.REDACTED.fr/plugins/fusioninventory/

This seems to return a HTML containing GLPI - Accès refusé.

I will write a wrapper script to do the two steps that appear to work, but it would be great to have this work without a temporary file.

Is there a way to diagnose/understand what's happening here? Thanks!

ddurieux commented 4 weeks ago

Hi, it's because the protocol is not standard. The next version will be the version 3.0 and is fully rewritten and protocol changed to be standard.