fusioninventory / fusioninventory-agent

FusionInventory Agent

Home Page:http://fusioninventory.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when using autonomous mode instructions for direct upload

thbar opened this issue · comments

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!