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-08-07 15:36:30

fvilaca
Member
Registered: 2023-03-31
Posts: 3

Struggling to configure remote agent

Good morning gentlemen,
I've been trying to configure network discovery and SNMP inventory done by a remote agent for a long time, but without success.
As you can see, my remote agent can connect via SNMP to network devices, but the results are not sent to the GLPI server.
Here's the summary of my environment, and what I've tried so far:
I have a server with Ubuntu 22.04.2 running GLPI in version 10.0.8, in a DMZ, I want to use my zabbix server that already has its ip and community configured as read only for all my network devices.

GLPI Server config:

root@glpi:/home/administrator# glpi-remote list targets
id        type      url/path                                     maxdelay  Next run date
listener  listener                                               3600      Fri Jul 28 17:48:28 2023
local0    local     inventory                                    3600      Fri Jul 28 11:04:20 2023
server0   server    https://glpi/front/inventory.php  7200      Mon Aug  7 10:56:00 2023
root@glpi:/home/administrator# glpi-remote list
index  deviceid                        url                       target   Next run date
1  srv-zabbix-2023-08-02-09-36-00  ssh://root@172.16.100.47  server0  on next agent run

Remote Agent Config:

[debug] Available tasks:
[debug] - Collect: 2.9
[debug] - Deploy: 3.0
[debug] - ESX: 2.8
[debug] - Inventory: 1.13
[debug] - NetDiscovery: 5.1
[debug] - NetInventory: 5.1
[debug] - RemoteInventory: 1.2
[debug] - WakeOnLan: 2.2
[debug] target server0: server https://glpi/front/inventory.php
[debug] Planned tasks for server0: Inventory,Deploy,Inventory
[debug] Built by Debian
[debug] Source time: 2023-07-27 02:05
[debug2] getAvailableTasks() : add of task Collect version 2.9
[debug2] getAvailableTasks() : add of task Deploy version 3.0
[debug2] getAvailableTasks() : add of task ESX version 2.8
[debug2] getAvailableTasks() : add of task Inventory version 1.13
[debug2] getAvailableTasks() : add of task NetDiscovery version 5.1
[debug2] getAvailableTasks() : add of task NetInventory version 5.1
[debug2] getAvailableTasks() : add of task RemoteInventory version 1.2
[debug2] getAvailableTasks() : add of task WakeOnLan version 2.2

Available tasks :
- WakeOnLan (v2.2)
- Deploy (v3.0)
- NetInventory (v5.1)
- Inventory (v1.13)
- NetDiscovery (v5.1)
- Collect (v2.9)
- RemoteInventory (v1.2)
- ESX (v2.8)

target server0: server https://glpi/front/inventory.php
Planned tasks: Inventory,Deploy,Inventory

root@srv-zabbix:~#

[Mon Aug  7 09:36:52 2023][debug] [thread 1] #203, partial match for sysobjectID .1.3.6.1.4.1.674.10895.3075 on manufacturer ID
[Mon Aug  7 09:36:53 2023][debug] [thread 1] #203, - scanning 172.16.253.203 with SNMP, credentials [SNMP Zabbix V2C]: success
[Mon Aug  7 09:36:53 2023][debug] [thread 1] #203, - scanning 172.16.253.203 with netbios: no result
[Mon Aug  7 09:36:53 2023][debug] [thread 1] #203, - scanning 172.16.253.203 with echo ping: success
[Mon Aug  7 09:36:53 2023][debug2] [thread 1] #203, executing arp -a 172.16.253.203
[Mon Aug  7 09:36:53 2023][debug] [thread 1] #203, - scanning 172.16.253.203 in arp table: no result
[Mon Aug  7 09:36:53 2023][info] [thread 1] #203, Saving 172.16.253.203 discovery infos as XML...
[Mon Aug  7 09:36:53 2023][debug] [thread 1] #203, Current run expiration timeout: 1.0 hour
[Mon Aug  7 09:36:53 2023][debug] [thread 1] #203, creating 1 worker threads
[Mon Aug  7 09:36:53 2023][debug] [thread 1] #203, [thread 67] creation
[Mon Aug  7 09:36:53 2023][debug] [thread 1] #203, 2 really running: [1 67]
[Mon Aug  7 09:36:53 2023][debug] [thread 1] #203, 1 started: [67]
[Mon Aug  7 09:36:53 2023][debug] [thread 67] #1, scanning 0: 172.16.253.203
[Mon Aug  7 09:36:53 2023][debug] [thread 67] #1, partial match for sysobjectID .1.3.6.1.4.1.674.10895.3075 on manufacturer ID
root@srv-zabbix:~#

Offline

#2 2023-08-08 08:30:56

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

Re: Struggling to configure remote agent

Hello fvilaca,

I see few problems in your setup:
1. you need glpi-inventory plugin installed in glpi to create netdiscovery & netinventory tasks
2. when using glpi-inventory plugin, you need to update the defined "server" parameter following the documentation here: https://glpi-agent.readthedocs.io/en/la … tml#server
     Formerly, you'll have to use as url something like:

https://glpi/marketplace/glpiinventory/

3. It seems you're defined "tasks" parameter with "inventory,deploy,inventory"... "netdiscovery" & "netinventory" are missing. If you want to enable the tasks add them or add ",..." to enable all remaining available tasks as explained in documentation: https://glpi-agent.readthedocs.io/en/la … html#tasks


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

Offline

Board footer

Powered by FluxBB