Импортировать пользовательский XML с FusionInventory в GLPI - не работает - PullRequest
0 голосов
/ 19 июня 2020

Я делаю пользовательский XML с NMAP:

<?xml version='1.0' encoding='utf-8'?>
<NMAP>
<HOSTNAME>agent-bsd.Home (192.168.1.69)</HOSTNAME>
<MAC_ADDRESS>08:00:27:0d:a5:d0</MAC_ADDRESS>
<CLOSED_PORTS>998 closed ports</CLOSED_PORTS>
<PORT_SERVICE>| fingerprint-strings:</PORT_SERVICE>
<PORT_SERVICE>| GetRequest, HTTPOptions:</PORT_SERVICE>
<PORT_SERVICE>| HTTP/1.1 400 Bad Request</PORT_SERVICE>
<PORT_SERVICE>| Date: Tue, 09 Jun 2020 16:48:00 GMT</PORT_SERVICE>
<PORT_SERVICE>| Server: WSGIServer/0.2 CPython/3.7.4</PORT_SERVICE>
<PORT_SERVICE>| Content-Type: text/html</PORT_SERVICE>
<PORT_SERVICE>| X-Content-Type-Options: nosniff</PORT_SERVICE>
<PORT_SERVICE>| Connection: close</PORT_SERVICE>
<PORT_SERVICE>| &lt;!DOCTYPE html&gt;</PORT_SERVICE>
<PORT_SERVICE>| &lt;html lang="en"&gt;</PORT_SERVICE>
<PORT_SERVICE>| &lt;head&gt;</PORT_SERVICE>
<PORT_SERVICE>| &lt;meta http-equiv="content-type" content="text/html; charset=utf-8"&gt;</PORT_SERVICE>
<PORT_SERVICE>| &lt;meta name="robots" content="NONE,NOARCHIVE"&gt;</PORT_SERVICE>
<PORT_SERVICE>| &lt;title&gt;DisallowedHost</PORT_SERVICE>
<PORT_SERVICE>| /&lt;/title&gt;</PORT_SERVICE>
<PORT_SERVICE>| &lt;style type="text/css"&gt;</PORT_SERVICE>
<PORT_SERVICE>| html * { padding:0; margin:0; }</PORT_SERVICE>
<PORT_SERVICE>| body * { padding:10px 20px; }</PORT_SERVICE>
<PORT_SERVICE>| body * * { padding:0; }</PORT_SERVICE>
<PORT_SERVICE>| body { font:small sans-serif; background-color:#fff; color:#000; }</PORT_SERVICE>
<PORT_SERVICE>| body&gt;div { border-bottom:1px solid #ddd; }</PORT_SERVICE>
<PORT_SERVICE>| font-weight:normal; }</PORT_SERVICE>
<PORT_SERVICE>| margin-bottom:.8em; }</PORT_SERVICE>
<PORT_SERVICE>| margin:1em 0 .5em 0; }</PORT_SERVICE>
<PORT_SERVICE>| margin:0 0 .5em 0; font-weight: normal; }</PORT_SERVICE>
<PORT_SERVICE>| code, pre { font-size: 100%; white-space: pre-wrap; }</PORT_SERVICE>
<PORT_SERVICE>|_ table { border:1px solid #ccc; border-collapse: collapse; width:10</PORT_SERVICE>
<PORT_SERVICE>|_http-server-header: WSGIServer/0.2 CPython/3.7.4</PORT_SERVICE>
<DEVICE_TYPE>general purpose</DEVICE_TYPE>
<OS>OpenBSD 5.6 - 5.8</OS>
</NMAP>

Я следую документации «http://fusioninventory.org/documentation/agent/additional_content.html», но не работает, и я не знаю почему: /.

Подробнее о моей проблеме: "https://github.com/fusioninventory/fusioninventory-for-glpi/issues/2985"

Кто-нибудь может помочь? : /

...