Use NetEye 4.15 JWT Built-in Authentication to use Fusion Inventory and GLPI
Use Case
Suppose we want to trigger Fusion Inventory execution in a GLPI installation, where we can then use the Autonomous mode to import data into GLPI via a CURL request. Let’s see how JWT (JSON Web Token) can help us in NetEye 4.15.
Prerequisites
A NetEye 4.15 (or later) installation with the Asset module enabled
Paste the following JSON* in the payload field: { "sub": "glpi_fusion_inventory", "exp": 2516239022 }
Copy the generated token to a file in a safe folder onto the host that runs the inventory: echo "TOKEN" > /safe-jwt-tokens-folder/glpi_fusion_inventory.jwt
Remember to give the file that contains the JWT token only minimum permissions since this will allow someone to log in to NetEye as the glpi_fusion_inventory user
Please remember that this is just an example of how to properly send data from Fusion Inventory to GLPI. If you’re going to use this approach often, take care to have an automatic process to refresh the JWT token periodically, and to always set a proper expiration time.
Full Stack Developer at Wuerth Phoenix. I love questioning myself, find new challenges to learn and new adventures to grow up. PHP lover trying to expand my skills studying new languages and tools to improve my professional life.
Author
Gianluca Piccolo
Full Stack Developer at Wuerth Phoenix. I love questioning myself, find new challenges to learn and new adventures to grow up. PHP lover trying to expand my skills studying new languages and tools to improve my professional life.
In the context of IT management, migrating data between different environments can be a critical activity. GLPI is a widely used open-source platform for IT asset and help desk management. When transitioning from an on-premise instance to a cloud version Read More
Preamble:A use case from one of our clients required scanning several subnets to locate all the printers that should be imported into GLPI. Their infrastructure features a cloud-based NetEye Master and a Satellite within their farm. The connection between the Read More
After updating to NetEye version 4.38 and activating authentication via Keycloak, the Icinga Director Self Service API no longer works. For instance if you install the Icinga agents using a Powershell script that automatically creates the host objects in the Read More
GLPI agents have various additional functionalities, from network discovery to remote inventory and ESX inventory. These can be controlled either directly from the command line (see my colleague’s blog https://www.neteye-blog.com/2024/07/glpi-device-discovery/ for some practical examples) or in a centralized way from Read More
GLPI agents not only perform a local inventory of the computer where they were installed, but also include several tools for discovering and inventorying other devices in their network: A network discovery task that scans an IP range (ping, arp Read More