Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behaviour of inventory and error in Apache2 #511

Open
vollkommenIrrelevant opened this issue May 15, 2024 · 8 comments
Open

Strange behaviour of inventory and error in Apache2 #511

vollkommenIrrelevant opened this issue May 15, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@vollkommenIrrelevant
Copy link

vollkommenIrrelevant commented May 15, 2024

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 vollkommenIrrelevant added the bug Something isn't working label May 15, 2024
@vollkommenIrrelevant
Copy link
Author

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=-/[email protected]', Cert-Subject: '/C=-/ST=-/L=-/O=-/OU=-/CN=glpi.-.-/[email protected]', 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
Copy link
Author

Somebody having a Idea?

@vollkommenIrrelevant
Copy link
Author

nobody?

@vollkommenIrrelevant
Copy link
Author

:-(

@stonebuzz
Copy link
Collaborator

Hi @vollkommenIrrelevant

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

@vollkommenIrrelevant
Copy link
Author

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
Copy link
Author

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
Copy link
Author

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants