Hello everyone,
Since updating our server to version 2.6, the data transfer to GLPI is no longer working correctly.
Oddly, only 36 machines out of our 240 are transferring correctly. The vast majority are servers running Debian/Ubuntu.
Can anyone help me with this?
Thanks in advance
, Thomas
[SOLVED] glpi-plugin-export-to-glpi10
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Hi Bertrand,
Has the way things work changed with version 2.6? I'd like to avoid deploying an agent on my machines.
Letting the server handle it seemed like a good idea, though.
Has the way things work changed with version 2.6? I'd like to avoid deploying an agent on my machines.
Letting the server handle it seemed like a good idea, though.
WAPT version: 2.6.0.17392 (Enterprise Edition)
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
On the machines in WAPT that aren't reporting correctly, do you have any information in the audit data tab?
Are you using the latest version of the GLPI audit export package?
Are you using the latest version of the GLPI audit export package?
Hello Simon,
Yes, I am indeed using the latest version. However, I do have audit data, but there are errors on some workstations that are not being reported
Yes, I am indeed using the latest version. However, I do have audit data, but there are errors on some workstations that are not being reported
Code: Select all
{"status":"error","message":"JSON does not validate. Violations:\nString expected, 2022 received at #->properties:content->properties:monitors->items[0]:0->properties:description\n","expiration":24}WAPT version: 2.6.0.17392 (Enterprise Edition)
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
From what I understand, it's not working because this part of the export package code isn't functioning:
And from what I understand, it's the value of "manufactured" that's the problem.
in the inventory of equipment:
host_info->monitors->[*]->manufactured
It must be formatted incorrectly...
As Bertrand indicated above
You can install this package on the machine:
https://wapt.tranquil.it/store/fr/tis-a ... -inventory
It allows you to retrieve the GLPI inventory in the machine audit data tab.
This allows sending the exact same inventory from GLPI to GLPI (in this case, the GLPI inventory is not rebuilt from the Wapt inventory; it actually uses the GLPI inventory, so Wapt acts as a gateway)
When the glpi-plugin-export-to-glpi10 package runs, if it sees that an audit record "audit-glpi-inventory" is available, then it directly uses that record
Code: Select all
# MONITOR
for monitor in self.data["host_info"].get("monitors", {}):
newmonitor = {
"base64": monitor.get("b64_edid", ""),
"caption": monitor.get("name", "") if monitor.get("name", "") else "Not Found",
"description": monitor.get("manufactured", ""),
"manufacturer": monitor.get("manufacturer", ""),
"port": monitor.get("port", ""),
"serial": str(monitor.get("serialno", "")),
}
jsondata["content"]["monitors"].append(delete_empty_entry_in_dict(newmonitor))
in the inventory of equipment:
host_info->monitors->[*]->manufactured
It must be formatted incorrectly...
As Bertrand indicated above
You can install this package on the machine:
https://wapt.tranquil.it/store/fr/tis-a ... -inventory
It allows you to retrieve the GLPI inventory in the machine audit data tab.
This allows sending the exact same inventory from GLPI to GLPI (in this case, the GLPI inventory is not rebuilt from the Wapt inventory; it actually uses the GLPI inventory, so Wapt acts as a gateway)
When the glpi-plugin-export-to-glpi10 package runs, if it sees that an audit record "audit-glpi-inventory" is available, then it directly uses that record
Thanks Simon for the explanations, I'm starting to understand the workings of this GLPI audit package a bit better.
Indeed, after deploying it, my machines are once again uploading their inventory to GLPI. Great!
Another question: why does the audit-glpi package for Linux have a dependency? Can it be deployed without it?
Indeed, after deploying it, my machines are once again uploading their inventory to GLPI. Great!
Another question: why does the audit-glpi package for Linux have a dependency? Can it be deployed without it?
Last edited by TomTom on Dec 18, 2024 - 3:32 PM, edited 1 time.
WAPT version: 2.6.0.17392 (Enterprise Edition)
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Indeed, the tis-audit-glpi-inventory package has a dependency on tis-glpi-agent because it really needs the GLPI agent to build the inventory
The GLPI agent is only used to generate the inventory; it is not connected to a server
The inventory of Linux machines is now up to date.
Thank you very much, Simon and Bertrand. I'm closing this!
Thank you very much, Simon and Bertrand. I'm closing this!
WAPT version: 2.6.0.17392 (Enterprise Edition)
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
