glpi-project / glpi-inventory-plugin

GLPI Inventory plugin
GNU Affero General Public License v3.0
46 stars 27 forks source link

Strange behaviour of inventory and error in Apache2 #511

Open vollkommenIrrelevant opened 4 months ago

vollkommenIrrelevant commented 4 months ago

Describe the bug

I'm analysing a strange behaviour of glpi inventory. From one day to the next i got a lot errors in the jobs and the task didn't run like it should. Not sure what happened...

In the error-log of apache 2 I found the following errors: [Wed May 15 10:19:36.054120 2024] [php:warn] [pid 31856] [client 10.10.111.3:31550] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/timeslot.php [Wed May 15 10:19:40.421645 2024] [php:warn] [pid 31856] [client 10.10.111.3:31550] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/timeslot.php [Wed May 15 10:20:14.247376 2024] [php:warn] [pid 31856] [client 10.10.111.3:31550] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/stateinventory.php [Wed May 15 10:26:39.970525 2024] [php:warn] [pid 30675] [client 10.10.111.3:31615] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/statediscovery.php [Wed May 15 10:26:47.634972 2024] [php:warn] [pid 30650] [client 10.10.111.3:31626] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/statediscovery.php [Wed May 15 10:26:59.876461 2024] [php:warn] [pid 23076] [client 10.10.111.3:31631] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/statediscovery.php [Wed May 15 10:27:30.916434 2024] [php:warn] [pid 23075] [client 10.10.111.3:31639] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/statediscovery.php [Wed May 15 10:27:32.768254 2024] [php:warn] [pid 23071] [client 10.10.111.3:31645] PHP Warning: Trying to access array offset on value of type null in /var/www/glpi/marketplace/glpiinventory/inc/statediscovery.class.php on line 168, referer: https://glpi.-/marketplace/glpiinventory/front/timeslot.php

Any Ideas?

To reproduce

-

Expected behavior

-

Operating system

Linux

GLPI Agent version

Other (See additional context below)

GLPI version

Other (See additional context below)

GLPIInventory plugin

No response

Additional context

GLPI-Agent: 1.7.3 GLPI: 10.0.14

vollkommenIrrelevant commented 4 months ago

Logfile of the agent is showing:

[Tue May 21 17:59:33 2024][debug] #017, full snmp scan of 10.30.120.1 with credentials 1
[Tue May 21 17:59:33 2024][info] [http client] SSL Client warning: Peer certificate not verified
[Tue May 21 17:59:33 2024][info] [http client] SSL Client info: Cert-Issuer: 'NO X509_NAME', Cert-Subject: 'NO X509_NAME', Cipher: '(NONE)'
[Tue May 21 17:59:33 2024][info] [http client] SSL server certificate fingerprint: sha256$-
[Tue May 21 17:59:33 2024][info] [http client] You can set it in conf as 'ssl-fingerprint' and disable 'no-ssl-check' option to trust that server certificate
[Tue May 21 17:59:33 2024][debug] #017, full match for sysobjectID .1.3.6.1.4.1.1347.41 in database
[Tue May 21 17:59:33 2024][debug] #017, sysobjectID match: kyocera mib support enabled
[Tue May 21 17:59:36 2024][info] #017, [http client] SSL Client warning: Peer certificate not verified
[Tue May 21 17:59:36 2024][info] #017, [http client] SSL Client info: Cert-Issuer: '/C=-/ST=-/L=-/O=-/OU=-/CN=-/emailAddress=-@-.-', Cert-Subject: '/C=-/ST=-/L=-/O=-/OU=-/CN=glpi.-.-/emailAddress=-@-.-', Version: 'TLSv1_3', Cipher: 'TLS_AES_256_GCM_SHA384'
[Tue May 21 17:59:36 2024][info] #017, [http client] SSL server certificate fingerprint: sha256$-
[Tue May 21 17:59:36 2024][info] #017, [http client] You can set it in conf as 'ssl-fingerprint' and disable 'no-ssl-check' option to trust that server certificate
[Tue May 21 18:00:39 2024][debug] Logger backend File initialized

grafik

vollkommenIrrelevant commented 4 months ago

Somebody having a Idea?

vollkommenIrrelevant commented 3 months ago

nobody?

vollkommenIrrelevant commented 3 months ago

:-(

stonebuzz commented 3 months ago

Hi @vollkommenIrrelevant

can you retry with the latest version of the GLPI inventory agent and GLPI ?

vollkommenIrrelevant commented 3 months ago

Looks better as before, the error messages in Apache changed.... I have to wait until tomorrow to be sure. Unfornately it seems that I have to restart the job for a few hundreds of devices because than it seems running fine. For every Device I need 4 clicks - is there a way to restart all jobs? grafik

vollkommenIrrelevant commented 2 months ago

After try and error some things I belive that Agent Start-Intervall (in Minuten) in the task configuration is the problem... I can only enter 100 Minutes what^s not enough. I need something like 24h or so.... Can you please check if you can change this?

vollkommenIrrelevant commented 2 months ago

bump