I am not able to execute netinventory through glpi-agent, to a network device (switch) on different network. I am able to execute snmpwalk and succesfully gather the SNMP information, but not with the glpi-agent.
The GLPI server, with the given agent is located on a different network, it means is not in L2 with the network devices, but it can reach them though VPN access, through a host that is directly connected to this network, and is masquerading all traffic from tun0 (OpenVPN tunnel). Once garanteed this communication, the snmpwalk it works from the GLPI server to the network device, on the isolated network, but through the glpi-netinventory is not working. It only works through the host that is at the edge (the VPN server that is in L2 with the network devices).
Does this means that glpi-netinventory cant be execute from a host on a different network?
It only created the file 10.7.100.3.xml on your root directory, not inside the agent folder as expected (it can be fixed specifying the complete path, but you still have to create the netinventory folder first)
Anyway, the output of the previous command is as follow:
[debug] Current netinventory run expiration timeout: 1.0 hour
[debug] using 1 netinventory worker
[debug] #1, full snmp scan of 10.7.100.3 with credentials 1
[debug] #1, full match for sysobjectID .1.3.6.1.4.1.2011.10.1.43 in database
The output show error communication via SNMP using the agent:
[error] #1, SNMP communication error: no response from host 10.7.100.3
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<CONTENT>
<DEVICE>
<ERROR>
<ID>0</ID>
<MESSAGE>SNMP communication error: no response from host 10.7.100.3</MESSAGE>
</ERROR>
</DEVICE>
<MODULEVERSION>6.0</MODULEVERSION>
<PROCESSNUMBER>1</PROCESSNUMBER>
</CONTENT>
<DEVICEID>foo</DEVICEID>
<QUERY>SNMPQUERY</QUERY>
</REQUEST>
Why is not working the netinventory using the agent, when snmpwalk is able to query the remote network device, using SNMP protocol?
Expected behavior
The glpi-netinventory being able to gather SNMP information from the network device, on a different network.
Operating system
Linux
GLPI Agent version
1.6.1
GLPI version
10.0.10
GLPIInventory plugin or FusionInventory for GLPI plugin version
GLPI Inventory v1.x.x (See additional context below)
Additional context
OS: Ubuntu 20.04
GLPI Inventory: v1.3.1
The agent is installed on same GLPI server and the server has access to isolated network for network devices, through VPN. Network devices are under 10.7.100.0/24, while GLPI server is glpi.ecasa.avianet.cu. The agent config is as follow:
Bug reporting acknowledgment
Yes, I read it
Professional support
None
Describe the bug
I am not able to execute
netinventory
through glpi-agent, to a network device (switch) on different network. I am able to executesnmpwalk
and succesfully gather the SNMP information, but not with the glpi-agent.The GLPI server, with the given agent is located on a different network, it means is not in L2 with the network devices, but it can reach them though VPN access, through a host that is directly connected to this network, and is masquerading all traffic from tun0 (OpenVPN tunnel). Once garanteed this communication, the
snmpwalk
it works from the GLPI server to the network device, on the isolated network, but through theglpi-netinventory
is not working. It only works through the host that is at the edge (the VPN server that is in L2 with the network devices).Does this means that
glpi-netinventory
cant be execute from a host on a different network?To reproduce
Execute a netdiscovery:
Created the file
10.7.100.3.xml
Its contents is as follow:
But when used glpi-netinventory command:
It only created the file 10.7.100.3.xml on your root directory, not inside the agent folder as expected (it can be fixed specifying the complete path, but you still have to create the netinventory folder first)
Anyway, the output of the previous command is as follow:
When you check the file
10.7.100.3.xml
, is empty.I can execute an snmpwalk to the network device:
The output is as follow:
Trying again with
glpi-netinventory
command, this time with less options:The output show error communication via SNMP using the agent:
Why is not working the
netinventory
using the agent, whensnmpwalk
is able to query the remote network device, using SNMP protocol?Expected behavior
The
glpi-netinventory
being able to gather SNMP information from the network device, on a different network.Operating system
Linux
GLPI Agent version
1.6.1
GLPI version
10.0.10
GLPIInventory plugin or FusionInventory for GLPI plugin version
GLPI Inventory v1.x.x (See additional context below)
Additional context
Ubuntu 20.04
v1.3.1
The agent is installed on same GLPI server and the server has access to isolated network for network devices, through VPN. Network devices are under
10.7.100.0/24
, while GLPI server is glpi.ecasa.avianet.cu. The agent config is as follow: