You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-01-30 15:38:06

am90
Member
Registered: 2023-01-30
Posts: 2

GLPI Network Discovery

Hello
I'm struggling with getting the agent to run automaticly and discovery newly found devices.
I've installed the server and the agent on the same machine und when running the glpi-netdiscovery command like this: "glpi-netdiscovery --first 192.168.40.1 --last 192.168.40.10 --credentials version:2c,community:public --debug" it will find the machines but no upload is being done.

The installation of the glpi and the agent are running on a CentOS Stream Release server, installed version of the agent is 1.4. and the server 10.0.5. I've installed the plugin from the marketplace as there were much more options to configure with this plugin.

First I've installed GLPI, the invetorplugin, installed the agent with perl, created a netdiscovery task to run it. The agent is visible inside glpi, running as a daemon. But the task never run, even when I press force start inside GLPI...
I'm suspecting that the problem is due to my import rules or my task configuration. I've disabled the rule "No creation on partial import" and enabled "Computer import (by MAC)" but still no success.

Even when I let glpi-netdiscovery run and put the results inside an folder and upload it manually I can't see any machines.
Do you have a hint for me what I'm doing wrong?

Offline

#2 2023-01-30 17:07:02

Chico008
Member
Registered: 2022-12-14
Posts: 429

Re: GLPI Network Discovery

I struggle a lot of time too

first, if you run glpi-netdiscovery, it will make a local discovery, generating inventory on your local drive, you have to manually import the data in glpi inventory after

if you want Glpi to automatically run the task, you have to use glpi-inventory plugin.
in this plugin, you'll have to set your ip range, set the task, etc
when you forcerun a task, it will go in "Prepared" state
then, next time your agent contact the server, the task will run, and you inventory will be populated.

Offline

#3 2023-02-01 12:32:16

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: GLPI Network Discovery

To complete Chico008 answer, don't also forget to associate snmp credentials on ip range in GlpiInventory plugin.
You should check if you see your devices are seen in "Unmanaged devices".
Don't expect computers to be imported as this is not supported, only network devices & printers which supports snmp will be.
In GlpiInventory, the "Permit to re-prepare task after run" checkbox should always be checked. For GlpiInventory to handle tasks, you also need to configure automatic actions


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#4 2023-02-02 17:28:09

am90
Member
Registered: 2023-01-30
Posts: 2

Re: GLPI Network Discovery

Thank you for your responses.

Maybe I am imagining the discovery wrong.
My goal would be instead of adding all the computers/devices on the network one at a time, to find them via discovery and then add them and populate the needed attributes either via the agent or manually.
The inventory with the agent works flawlessly, as soon as I run it, the computer gets added in the GLPI with all installed software and hardware.
Once the Discovery was even run and 45 Devices were found on the network, but not imported. However, under "unmanaged devices" I see no devices at all. Also I could not run the job successfully anymore.
In the meantime I activated some rules, which I think were the reason why nothing was imported.
Now I have the suspicion that it could be the configuration of the time slot. I have defined a timeslot from Monday 0000 to Friday 2345 as well as for the preparation and the execution.
The scheudle start is set to 2023-02-02 1200 and scheudle end is set to 23-02-28 1200 and I don't know if that is correct. I wanted to run them as soon as possible, but somehow it never worked sad.
Ranges including SNMP credentials are created, even though probably none of the devices in our lab will respond to them as it consists only of virtual machines. Also a rule to assign the devices to an entity has been done.

Offline

Board footer

Powered by FluxBB