glpi-project / glpi-inventory-plugin

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

GLPI-Agents displays 0 if they cannot obtain the ITEM #434

Closed andsong88 closed 11 months ago

andsong88 commented 1 year ago

Describe the bug

GLPI-Agents displays 0 if they cannot obtain the ITEM

To reproduce

GLPI-Agents displays 0 if they cannot obtain the ITEM

Expected behavior

GLPI-Agents displays 0 if they cannot obtain the ITEM

Operating system

Windows

GLPI Agent version

1.5

GLPI version

10.0.9

GLPIInventory plugin

1.2.3

Additional context

image

trasher commented 1 year ago

Please provide details to reproduce.

steph461 commented 1 year ago

@trasher I'm following up on the post maybe in my log plugin : Glpiinventory 1.3.3

Maybe When I start a task I get this error message ( ITEM) my stack example : image and The task no longer works image

[2023-11-06 12:29:02] glpiphplog.WARNING: *** PHP User Warning (512): Invalid item "Agent" (1009). in /var/www/html/glpi/marketplace/glpiinventory/inc/taskview.class.php at line 1000 Backtrace : ...place/glpiinventory/inc/taskview.class.php:1000 trigger_error() ...tplace/glpiinventory/inc/taskview.class.php:832 PluginGlpiinventoryTaskView->getAgentsFromActors() marketplace/glpiinventory/inc/task.class.php:622 PluginGlpiinventoryTaskView->prepareTaskjobs() src/CronTask.php:1018 PluginGlpiinventoryTask::cronTaskscheduler() front/cron.php:84 CronTask::launch()

stonebuzz commented 1 year ago

Agent with ID 1009 no longer exist from your GLPI (can you check it ?)

Then fix task (update related agent) and rerun job

steph461 commented 1 year ago

Agent with ID 1009 no longer exist from your GLPI (can you check it ?)

Then fix task (update related agent) and rerun job

I saw the name of the agent to change its was good

I have on SQL error message in the 1.3.2 , I upgraded to version 1.3.3 its was ok. I must have made a mistake when I changed my name :)

thx stonebuzz