FusionInventory::Agent::HTTP::Server::Inventory - An embedded HTTP server plugin providing remote inventory
This is a server plugin to listen for inventory requests.
It listens on port 62354 by default and can answer with a full inventory XML if authorized.
The following default requests are accepted:
Authentication is firstly based on connection source address: trusted requests can access the API. But a shared secret must be known to use the API.
A client must request a session before being able to request an inventory.
A 'X-Request-ID' header must be provided for a session creation:
The session permits to control access with a shared secret or token so an inventory can only be provided if the returned payload matches the expected one.
The server answers with a nonce set in the 'X-Auth-Nonce' header.
For the /get call, the client must still provide a 'X-Request-ID' header but it also must provide a 'X-Auth-Payload' one computed from 'X-Auth-Nonce' provided value and the shared secret.
yes
/inventory
0
60
30
3600
no
Defaults can be overrided in inventory-server-plugin.cfg file or better in the inventory-server-plugin.local if included from inventory-server-plugin.cfg.
inventory-server-plugin.cfg
inventory-server-plugin.local
To install FusionInventory::Agent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FusionInventory::Agent
CPAN shell
perl -MCPAN -e shell install FusionInventory::Agent
For more information on module installation, please visit the detailed CPAN module installation guide.