fusioninventory / fusioninventory-for-glpi

FusionInventory plugin for GLPI
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
362 stars 149 forks source link

Software dublicates #3215

Open ChintsovAV opened 3 years ago

ChintsovAV commented 3 years ago

Version: GLPI 9.5.4, FusionInventory 9.5+3.0 OS: RHEL 7.9 DB: sqlite.x86_64 3.7.17-8.el7_7.1 Etc: Cron Job is running

Problem: Hello! With each inventory, instead of being consolidated, a new software record is added to assets. The problem is observed only with "kesl" and "itcs-pkicmd".

Is there a solution to this problem?


glpi-01

glpi-02

vollkommenIrrelevant commented 3 years ago

I have this sometimes to, depending on software. I think it's a little buggy...

ChintsovAV commented 3 years ago

I have this sometimes to, depending on software. I think it's a little buggy...

Hello, How do you fix this and which version of Fusioninventory are you using?

vollkommenIrrelevant commented 3 years ago

[this was a mistake, please ignore]

WebGregGit commented 3 years ago

Maybe try with Administration > Dictionaries > Software > add a merge rule

vollkommenIrrelevant commented 3 years ago

I think it would be great if it will work automatic...

ChintsovAV commented 3 years ago

Maybe try with Administration > Dictionaries > Software > add a merge rule

Hello, Thanks, but this isn't work for me =\

ChintsovAV commented 3 years ago

Hmm... The problem seems to be that Plugin_FusionInventory is constantly uninstalling and installing these programs (why exactly these are not clear). I should have started with this ... = \

3493383 | 2021-10-11 09:34 | Plugin_FusionInventory | Software | Install a software: itcs-pkicmd - 4.3.0.42-1 (309726) 3493381 | 2021-10-11 09:34 | Plugin_FusionInventory | Software | Install a software: kesl - 10.1.1-6421 (309725) 3493375 | 2021-10-11 09:34 | Plugin_FusionInventory | Software | Uninstall a software: itcs-pkicmd - 4.3.0.42-1 (309616) 3493373 | 2021-10-11 09:34 | Plugin_FusionInventory | Software | Uninstall a software: kesl - 10.1.1-6421 (309615)

ddurieux commented 3 years ago

can you see in the XML (sent by agent) if the software name has de special character? I have seens something with special or non printable character, and it's complex to debug and fix

ChintsovAV commented 3 years ago

can you see in the XML (sent by agent) if the software name has de special character? I have seens something with special or non printable character, and it's complex to debug and fix

Hello, To get the xml file I need to execute fusioninventory-agent --local /dir ? If "yes", then according to kesl and itcs-pkicmd there is this:

<SOFTWARES>
      <ARCH>x86_64</ARCH>
      <COMMENTS>Kaspersky Endpoint Security 11.1.0 for Linux</COMMENTS>
      <FILESIZE>254883611</FILESIZE>
      <FROM>rpm</FROM>
      <INSTALLDATE>20/08/2021</INSTALLDATE>
      <NAME>kesl</NAME>
      <PUBLISHER>&quot;AO Kaspersky Lab&quot; &lt;info@kaspersky.com&gt;</PUBLISHER>
      <SYSTEM_CATEGORY>Applications</SYSTEM_CATEGORY>
      <VERSION>11.1.0-3013</VERSION>
    </SOFTWARES>
...
    <SOFTWARES>
      <ARCH>x86_64</ARCH>
      <COMMENTS>Sign/verify and some other tool</COMMENTS>
      <FILESIZE>1029761</FILESIZE>
      <FROM>rpm</FROM>
      <INSTALLDATE>20/08/2021</INSTALLDATE>
      <NAME>itcs-pkicmd</NAME>
      <PUBLISHER>InfoTeCS &lt;hotline@infotecs.ru&gt;</PUBLISHER>
      <SYSTEM_CATEGORY>default</SYSTEM_CATEGORY>
      <VERSION>4.4.0.120-1</VERSION>
    </SOFTWARES>
ddurieux commented 3 years ago

ok, in GLPI, do you have dictionnary rewrite one of both softwares name?

ChintsovAV commented 3 years ago

ok, in GLPI, do you have dictionnary rewrite one of both softwares name?

No