Strange behaviour of inventory and error in Apache2
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
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
Somebody having a Idea?
nobody?
:-(
Hi @vollkommenIrrelevant
can you retry with the latest version of the GLPI inventory agent and GLPI ?
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?
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?
bump
I think you can use "Force start" on the "Task management" tab to force a task to start. I've also face some issues when tasks fails, I have to manually force them start again, but I believe that enabling "Delete tasks logs after" on Administration > GLPI Inventory > General > General Configuration > General Setup tab may help.
This issue has been closed as we only track bugs here.
You can open a topic to discuss with community about this enhancement on suggestion website. You can also contact GLPI editor team directly if you are willing to sponsor this feature.