-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Duplicated entries in "Computer - Antiviruses" #17598
Comments
Issue probably comes from "partial" stuff. Could you confirm all is OK with a "full" inventory? |
No, the "partial" inventory is only for debugging. But this issue exists for all our computers with the daily standard (full) inventory. Edit: And I also confirm that a full inventory |
I still don't understand why you think that "partial" inventory is causing this issue knowing that the partial inventory is also only reporting the latest version. I don't see in the agents logs any traces of old antiviruses versions beeing reported. @g-bougard Maybe you have a better way to help me troubleshooting if it is an issue caused by the agent ? |
Hi @MarcSamD @trasher is speaking about this recent glpi-agent new feature: glpi-project/glpi-agent#592 By default, glpi-agent 1.10 won't always send a full inventory: it starts by one full and after it will send 14 partial ones, than one full, etc... The number can be configured and you can also disable the feature. |
Thank you for the explanation. However I can confirm that until April 11, the update of the antiviruses were simultaneous:
But since May 20th, I always first have a "Add an item: Antivirus" followed 7~9 days later by a "Delete an item: Antivirus". @g-bougard Does it makes sense with your new partial inventory logic ? I still find it surprising since if there is a new antivirus version, then the digest for this category (whatever it is antivirus or software) should be different and then the agent should send the result of this category. How comes only the "add" could be sent without "delete" being done ? |
Hi @MarcSamD to make a try you can simulate a submission very easily. Just open an administrative console, go into the glpi-agent installation folder and run the following:
Check the result in GLPI.
And check what happened in GLPI
|
I guess that test won't really help, since there will be no change between both runs. Anyways, problem is partial inventory probably does not remove old antiviruses; while full inventory does. We're back to my first comment. |
@g-bougard I did another full run of tests but I can only confirm what @trasher said:
Maybe this ticket should be moved to GLPI-Agent, tests result below:
|
No, it's a GLPI inventory issue; will be fixed. |
Ensure no antivirus from full inventory removes all known antiviruses closes glpi-project#17598
Please test #17665 (ignore tests files when applying patch). |
It seems that it didn't work.
|
Please provide inventory file. |
|
I'm a bit surprised that does not work, you also may have made a mistake editing source files; please double check. 1- no idea. What I need the partial inventory file you used to reproduce the fail on my side. All test I made were OK, and new added tests validates that work - it's still possible you have a "specific" case. |
I already provided the partial inventory in my initial post and it is not going to help knowing there are only the new antiviruses versions in it but not the old versions (that are just not removed). Anyway, maybe I'm on a specific case indeed as no one else seem concerned by this issue. |
Code of Conduct
Is there an existing issue for this?
Version
10.0.16
Bug description
Computer antiviruses page is displaying outdated entries (old antivirus version).
For example:
Despite running the command
glpi-inventory --partial antivirus --debug --debug
will only return the latest antivirus version (see log below), and despite only the latest antivirus version is displayed in "Software")Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
GLPI Agent 1.10
Anything else?
No response
The text was updated successfully, but these errors were encountered: