You are not logged in.
I'm trying to get GLPI to scan a subnet with SNMP creds to import the servers it finds.
When I run the scan from GLPI nothing gets imported into computers.
I notice it does import into unmanaged stuff it can SNMPWalk and show them as their host name, I assume it gets this from ARP or Nslookup.
But those servers that are up and can be SNMPWalked do not get entered anywhere.
So I run glpi-netdiscovery from the command line on a server I knew would respond and saved the XML files to a directory.
The netdiscovery folder had an xml file with these contents (I have changed the server name and domain on the details.
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<CONTENT>
<DEVICE>
<AUTHSNMP>1</AUTHSNMP>
<CONTACT>Infrastructure</CONTACT>
<DESCRIPTION>Linux server1 5.4.0-208-generic #228-Ubuntu SMP Fri Feb 7 19:41:33 UTC 2025 x86_64</DESCRIPTION>
<DNSHOSTNAME>server1.mydomain.co.uk</DNSHOSTNAME>
<IP>10.51.1.39</IP>
<IPS>
<IP>10.50.225.43</IP>
<IP>10.51.1.39</IP>
<IP>127.0.0.1</IP>
</IPS>
<LOCATION>Data Centre 1l</LOCATION>
<MAC>00:50:56:88:52:7b</MAC>
<MANUFACTURER>Net-SNMP</MANUFACTURER>
<MODEL>Linux</MODEL>
<SERIAL>80745938a71cb26600000000</SERIAL>
<SNMPHOSTNAME>server1</SNMPHOSTNAME>
<TYPE>COMPUTER</TYPE>
<UPTIME>1 hour, 03:25.28</UPTIME>
</DEVICE>
<MODULEVERSION>6.6</MODULEVERSION>
<PROCESSNUMBER>1</PROCESSNUMBER>
</CONTENT>
<DEVICEID>foo</DEVICEID>
<QUERY>NETDISCOVERY</QUERY>
</REQUEST>
When I come to use glpi-injector to inject it, the message I get is
Loading /tmp/netdiscovery//10.51.1.35.xml...[69C99C03] DEBUG: Uncompressing received content
OK
DEBUG: <?xml version="1.0"?>
<REPLY><RESPONSE>SEND</RESPONSE></REPLY>
Loading /tmp/netdiscovery//10.51.1.39.xml...[914087C3] DEBUG: Uncompressing received content
OK
DEBUG: <?xml version="1.0"?>
<REPLY><RESPONSE>SEND</RESPONSE></REPLY>
But it never appears.
Obviously something is wrong with the XML contents, because it works ok with Network devices.
Does anyone have any ideas?
Offline