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 2022-06-09 13:21:28

Musician82
Member
Registered: 2022-06-09
Posts: 11

GLPI Agent and disappearing Switch Network Ports

Hello There,

I'm are using GLPI 10 with GLPI Agent 1.2 (on Windows Server 2016). I have the following problem. I'm using the GLPI Inventory Plugin for getting all the information of our 11 network-switches (HP Aruba 48 Ports) via snmp , especially the network ports. The problem is, that in irregular intervalls, the network-ports, which has been already recognized at each switch, are not visible anymore. After an unspecific time, they appear again, but all the changes I made to specific ports, are away.

I did the following steps to setup all this:

1. Create new SNMP Credentials for our switches at "Administration" - "Inventory" - "SNMP Credentials"
2. Set the IP-Adressrange at "Administration"  - "Inventory" - "GLPI Inventory" - "Network" - "IP Adress Range" and set the SNMP Credentials for that ip-adress-Range
3. Create new task at "Administration" - "Inventory" - "GLPI Inventory" - "Tasks" - "Taskmanagement" for Networkdiscovery of that IP Range
  -> here I'm using the setting "start intervall: 30 minutes" and "number of agents: 1"
4. Create another new task for Networkdiscovery of that IP Range by using "Networkinventory SNMP"
  -> here I'm using the setting "start intervall: 30 minutes" and "number of agents: 1"

Can anybody give me some advice, what I'm may doing wrong or how to solve this problem?

Thanks a lot!

Samuel

Last edited by Musician82 (2022-06-09 13:24:29)

Offline

#2 2022-06-09 14:21:28

WebGreg
Member
Registered: 2020-02-27
Posts: 740

Re: GLPI Agent and disappearing Switch Network Ports

Hi.

I don't quite understand your problem. If you don't see switch ports in assets - most likely switch was added by fusioninventory. Delete it and allow GLPI Inventory to add it - the ports should be visible.


--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS

Offline

#3 2022-06-09 15:34:20

Musician82
Member
Registered: 2022-06-09
Posts: 11

Re: GLPI Agent and disappearing Switch Network Ports

Hi,

for better understanding. The switches and also their Network Ports are being added as they should by the GLPI Inventory Plugin. The fusioninventory Plugin is not beeing used! The switchports appear correctly, but after an unspecific time, they disappear. After a while, they are beeing visible again. Whenever they disappeared, all changes I made to the ports are gone next time the ports appear again.

Offline

#4 2022-06-09 16:37:05

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

Re: GLPI Agent and disappearing Switch Network Ports

Hi Musician82,

what do you see in "Import information" and "Historical" tab for one device ?


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

Offline

#5 2022-06-10 09:22:17

Musician82
Member
Registered: 2022-06-09
Posts: 11

Re: GLPI Agent and disappearing Switch Network Ports

Hi gbougard,

thanks for responding! I catched one switch (here with 8 ports) and in "Historical", it shows the following (this repeats regulary):

ID             DATE                    USER    FIELD            UPDATE
137595    10-06-2022 09:10    inventory    Network Port    Delete an Item: Network Port ()
137594    10-06-2022 09:10    inventory    Network Port    Delete an Item: Network Port ()
137593    10-06-2022 09:10    inventory    Network Port    Delete an Item: Network Port ()
137592    10-06-2022 09:10    inventory    Network Port    Delete an Item: Network Port ()
137591    10-06-2022 09:10    inventory    Network Port    Delete an Item: Network Port ()
137590    10-06-2022 09:10    inventory    Network Port    Delete an Item: Network Port ()
137589    10-06-2022 09:10    inventory    Network Port    Delete an Item: Network Port ()
137588    10-06-2022 09:10    inventory    Network Port    Delete an Item: Network Port ()
137587    10-06-2022 09:10    inventory    Last inventory date    Change 10-06-2022 09:07 to 10-06-2022 09:10
136451    10-06-2022 09:07    inventory    Last inventory date    Change 10-06-2022 09:05 to 10-06-2022 09:07
135555    10-06-2022 09:05    inventory    Network Port    Delete an Item: Network Port ()
135554    10-06-2022 09:05    inventory    Network Port    Delete an Item: Network Port ()
135553    10-06-2022 09:05    inventory    Network Port    Delete an Item: Network Port ()
135552    10-06-2022 09:05    inventory    Network Port    Delete an Item: Network Port ()
135551    10-06-2022 09:05    inventory    Network Port    Delete an Item: Network Port ()
135550    10-06-2022 09:05    inventory    Network Port    Delete an Item: Network Port ()
135549    10-06-2022 09:05    inventory    Network Port    Delete an Item: Network Port ()
135548    10-06-2022 09:05    inventory    Network Port    Delete an Item: Network Port ()
135547    10-06-2022 09:05    inventory    Last inventory date    Change 10-06-2022 09:01 to 10-06-2022 09:05

under "import information" it shows:

Date                            Rule Name        
10-06-2022 09:10    NetworkEquipment update (by serial)       
10-06-2022 09:10    NetworkEquipment update (by serial)       
10-06-2022 09:07    Device update (by mac+ifnumber restricted port)       
10-06-2022 09:07    NetworkEquipment update (by serial)       
10-06-2022 09:07    NetworkEquipment update (by serial)       
10-06-2022 09:05    NetworkEquipment update (by serial)       
10-06-2022 09:05    NetworkEquipment update (by serial)       



It seeams, that the Plugin creates all ports and five minutes later, it completely deletes all ports. Why? Can this behavior be changed? Shouldn't GLPI better just update the port-entries?

Thanks a lot!

Offline

#6 2022-06-10 09:51:18

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

Re: GLPI Agent and disappearing Switch Network Ports

Hi Musician82,

I'm not sure, but maybe NetInventory task is run 5 minutes before the NetDiscovery one. Maybe the agent log can clarify what's happen there. Can you check it and see what task were run at 9:05, 9:07 & 9:10 ? This is even odd you have so much "Last inventory date" updates in 5 minutes. I suspect a wrong task scheduling generating confusion.


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

Offline

#7 2022-06-10 10:02:41

Musician82
Member
Registered: 2022-06-09
Posts: 11

Re: GLPI Agent and disappearing Switch Network Ports

Hi gbougard,

I think I might made a mistake, when configuring the agent. I actived modules "esx", "Collect" and "deploy", which are not being used - they all bring an error in the log. I will uninstall them. What I additionally recognized is, that the task "netinventory" runs into an error at 09:07:04. How can I avoid it and could this be the root of my problem?

[Fri Jun 10 09:05:02 2022][info] target server0: server http://<servername-fqdn>/glpi/front/inventory.php
[Fri Jun 10 09:05:02 2022][info] sending contact request to server0
[Fri Jun 10 09:05:02 2022][info] sending prolog request to server0
[Fri Jun 10 09:05:03 2022][info] running task NetDiscovery
[Fri Jun 10 09:06:05 2022][info] running task Deploy
[Fri Jun 10 09:06:05 2022][error] [http client] communication error: 400 Bad Request, Protocol not supported
[Fri Jun 10 09:06:05 2022][info] Deploy task not supported by server0
[Fri Jun 10 09:06:07 2022][info] running task ESX
[Fri Jun 10 09:06:07 2022][error] [http client] communication error: 400 Bad Request, Protocol not supported
[Fri Jun 10 09:06:07 2022][info] ESX task not supported by server0
[Fri Jun 10 09:06:09 2022][info] running task Collect
[Fri Jun 10 09:06:09 2022][error] [http client] communication error: 400 Bad Request, Protocol not supported
[Fri Jun 10 09:06:10 2022][info] Collect task not supported by server0
[Fri Jun 10 09:06:12 2022][info] running task Inventory
[Fri Jun 10 09:06:12 2022][info] New inventory from ELO.mh-luebeck.de-2022-06-01-15-18-33 for server0
[Fri Jun 10 09:06:33 2022][info] running task NetInventory
[Fri Jun 10 09:07:04 2022][error] [thread 904] #28, [http client] communication error: 500 Internal Server Error
[Fri Jun 10 09:07:15 2022][info] target server0: next run: Sat Jun 11 08:31:43 2022 - http://<servername-fqdn>/glpi/front/inventory.php
[Fri Jun 10 09:07:17 2022][info] GLPI Agent memory usage: WSS=3796992 PFU=773795840
[Fri Jun 10 09:10:02 2022][info] target server0: server http://<servername-fqdn>/glpi/front/inventory.php
[Fri Jun 10 09:10:02 2022][info] sending contact request to server0
[Fri Jun 10 09:10:03 2022][info] sending prolog request to server0
[Fri Jun 10 09:10:03 2022][info] running task NetDiscovery
[Fri Jun 10 09:11:05 2022][info] running task Deploy
[Fri Jun 10 09:11:05 2022][error] [http client] communication error: 400 Bad Request, Protocol not supported
[Fri Jun 10 09:11:05 2022][info] Deploy task not supported by server0
[Fri Jun 10 09:11:07 2022][info] running task ESX
[Fri Jun 10 09:11:07 2022][error] [http client] communication error: 400 Bad Request, Protocol not supported
[Fri Jun 10 09:11:07 2022][info] ESX task not supported by server0
[Fri Jun 10 09:11:09 2022][info] running task Collect

Thanks a lot!

Last edited by Musician82 (2022-06-10 10:20:00)

Offline

#8 2022-06-10 14:40:30

Musician82
Member
Registered: 2022-06-09
Posts: 11

Re: GLPI Agent and disappearing Switch Network Ports

I deleted the modules "esx", "collect" and "deploy" in the agent installation. Also, I disabled the task for Networkdiscovery for that IP-Range in GLPI Inventory Plugin-Tasks on glpi server. Now, the ports are not being deleted.
But the message "communication error: 500 Internal Server Error" when running the NetInventory, still turns up in logfile.

[Fri Jun 10 14:30:03 2022][info] New inventory from <Agent-Hostname>-2022-06-01-15-18-33 for server0
[Fri Jun 10 14:30:25 2022][info] running task NetInventory
[Fri Jun 10 14:30:43 2022][error] [thread 739] #07, [http client] communication error: 500 Internal Server Error
[Fri Jun 10 14:30:43 2022][error] [thread 733] #01, [http client] communication error: 500 Internal Server Error
[Fri Jun 10 14:30:44 2022][error] [thread 738] #06, [http client] communication error: 500 Internal Server Error
[Fri Jun 10 14:31:04 2022][error] [thread 737] #27, [http client] communication error: 500 Internal Server Error
[Fri Jun 10 14:31:11 2022][info] target server0: next run: Sat Jun 11 13:55:35 2022 - http://<servername-fqdn>/glpi/front/inventory.php
[Fri Jun 10 14:31:12 2022][info] GLPI Agent memory usage: WSS=3473408 PFU=641581056
[Fri Jun 10 14:35:02 2022][info] target server0: server http://<servername-fqdn>/glpi/front/inventory.php
[Fri Jun 10 14:35:02 2022][info] sending contact request to server0
[Fri Jun 10 14:35:02 2022][info] sending prolog request to server0
[Fri Jun 10 14:35:03 2022][info] running task Inventory
[Fri Jun 10 14:35:03 2022][info] New inventory from <Agent-Hostname>-2022-06-01-15-18-33 for server0
[Fri Jun 10 14:35:24 2022][info] running task NetInventory
[Fri Jun 10 14:35:40 2022][error] [thread 753] #06, [http client] communication error: 500 Internal Server Error
[Fri Jun 10 14:35:44 2022][error] [thread 752] #07, [http client] communication error: 500 Internal Server Error
[Fri Jun 10 14:35:44 2022][error] [thread 748] #01, [http client] communication error: 500 Internal Server Error
[Fri Jun 10 14:35:54 2022][error] [thread 751] #27, [http client] communication error: 500 Internal Server Error


I couldn't find why.
Any ideas?

Thanks a lot!

Offline

#9 2022-06-10 18:09:53

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

Re: GLPI Agent and disappearing Switch Network Ports

Hi Musician82,

this seems to be an error on server side. You should first check GLPI php-errors.log in case something goes wrong directly in glpi. Otherwise you'll have to verify you server configuration. Does it respect the requirements ?


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

Offline

#10 2022-06-13 15:12:33

Musician82
Member
Registered: 2022-06-09
Posts: 11

Re: GLPI Agent and disappearing Switch Network Ports

Hi gbougard,

my glpi-server operating system is Cent OS 7, has 64 GB hdd, 8gb ram and 2 CPUs - so it should respect the requirements. But there are some errors on the php-errors logfile:


[Mon Jun 13 08:50:15.878221 2022] [php7:notice] [pid 12877] [client <ip-address-glpi-agent>:56939] PHP Notice:  Undefined property: stdClass::$ipaddress in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 408
[Mon Jun 13 08:50:15.878335 2022] [php7:warn] [pid 12877] [client <ip-address-glpi-agent>:56939] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 409
[Mon Jun 13 08:50:15.879412 2022] [php7:error] [pid 12877] [client <ip-address-glpi-agent>:56939] PHP Fatal error:  Duplicate entry '87134-10' for key 'unicity' in /var/www/html/glpi/src/DBmysql.php on line 1951


Do you know, what they mean and what I could do?

Thanks a lot!

Offline

#11 2022-06-13 18:41:14

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

Re: GLPI Agent and disappearing Switch Network Ports

Have you upgraded to GLPI 10.0.1 & GlpiInventory plugin 1.0.1 ?


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

Offline

#12 2022-06-14 09:12:21

Musician82
Member
Registered: 2022-06-09
Posts: 11

Re: GLPI Agent and disappearing Switch Network Ports

I upgraded from GLPI 9.5.6 to GLPI 10.0.0 and GLPI Inventory 1.01.

Should I upgrade to GLPI 10.0.1?

Offline

#13 2022-06-14 10:21:00

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

Re: GLPI Agent and disappearing Switch Network Ports

Yes you should.


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

Offline

#14 2022-06-14 11:43:36

Musician82
Member
Registered: 2022-06-09
Posts: 11

Re: GLPI Agent and disappearing Switch Network Ports

Hi gbougard,

I now successfully updated my glpi server to 10.0.1 and the errors in glpi-agent logfile are still there:

[Tue Jun 14 11:25:03 2022][info] New inventory from <glpi-agent-FQDN>-2022-06-01-15-18-33 for server0
[Tue Jun 14 11:25:24 2022][info] running task NetInventory
[Tue Jun 14 11:25:33 2022][error] [thread 13] #08, [http client] communication error: 500 Internal Server Error
[Tue Jun 14 11:25:36 2022][error] [thread 15] #09, [http client] communication error: 500 Internal Server Error
[Tue Jun 14 11:25:41 2022][error] [thread 11] #06, [http client] communication error: 500 Internal Server Error
[Tue Jun 14 11:25:44 2022][error] [thread 15] #13, [http client] communication error: 500 Internal Server Error
[Tue Jun 14 11:25:44 2022][error] [thread 16] #10, [http client] communication error: 500 Internal Server Error
[Tue Jun 14 11:25:45 2022][error] [thread 9] #07, [http client] communication error: 500 Internal Server Error
[Tue Jun 14 11:25:46 2022][error] [thread 8] #01, [http client] communication error: 500 Internal Server Error
[Tue Jun 14 11:25:46 2022][error] [thread 13] #12, [http client] communication error: 500 Internal Server Error
[Tue Jun 14 11:25:56 2022][error] [thread 8] #27, [http client] communication error: 500 Internal Server Error


The php-error-log on my glpi-server says:

[Tue Jun 14 11:25:33.993577 2022] [php7:error] [pid 19183] [client <glpi-agent-ip>:56788] PHP Fatal error:  Duplicate entry '87134-10' for key 'unicity' in /var/www/html/glpi/src/DBmysql.php on line 1953
[Tue Jun 14 11:25:36.463932 2022] [php7:error] [pid 19028] [client <glpi-agent-ip>:56789] PHP Fatal error:  Duplicate entry '87163-66' for key 'unicity' in /var/www/html/glpi/src/DBmysql.php on line 1953
[Tue Jun 14 11:25:41.620817 2022] [php7:error] [pid 18535] [client <glpi-agent-ip>:56791] PHP Fatal error:  Duplicate entry '87215-40' for key 'unicity' in /var/www/html/glpi/src/DBmysql.php on line 1953
[Tue Jun 14 11:25:44.227706 2022] [php7:error] [pid 16373] [client <glpi-agent-ip>:56793] PHP Fatal error:  Duplicate entry '87362-40' for key 'unicity' in /var/www/html/glpi/src/DBmysql.php on line 1953
[Tue Jun 14 11:25:44.947642 2022] [php7:error] [pid 19113] [client <glpi-agent-ip>:56792] PHP Fatal error:  Duplicate entry '87593-37' for key 'unicity' in /var/www/html/glpi/src/DBmysql.php on line 1953
[Tue Jun 14 11:25:45.600403 2022] [php7:error] [pid 19180] [client <glpi-agent-ip>:56794] PHP Fatal error:  Duplicate entry '87302-56' for key 'unicity' in /var/www/html/glpi/src/DBmysql.php on line 1953
[Tue Jun 14 11:25:46.465718 2022] [php7:error] [pid 19183] [client <glpi-agent-ip>:56796] PHP Fatal error:  Duplicate entry '87367-37' for key 'unicity' in /var/www/html/glpi/src/DBmysql.php on line 1953
[Tue Jun 14 11:25:46.873292 2022] [php7:error] [pid 19028] [client <glpi-agent-ip>:56797] PHP Fatal error:  Duplicate entry '87544-10' for key 'unicity' in /var/www/html/glpi/src/DBmysql.php on line 1953
[Tue Jun 14 11:25:51.980849 2022] [php7:notice] [pid 19028] [client <glpi-agent-ip>:56805] PHP Notice:  Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 166
[Tue Jun 14 11:25:56.026635 2022] [php7:warn] [pid 19679] [client <glpi-agent-ip>:56807] PHP Warning:  array_map(): Expected parameter 2 to be an array, string given in /var/www/html/glpi/vendor/glpi-project/inventory_format/lib/php/Converter.php on line 1387
[Tue Jun 14 11:25:57.172391 2022] [php7:notice] [pid 19680] [client <glpi-agent-ip>:56808] PHP Notice:  Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 166


What could I do now?
Thanks a lot!

Offline

Board footer

Powered by FluxBB