jackburton79 / ocs-agent

Lite inventory agent (compatibile with ocsinventory-ng and glpi)
GNU General Public License v3.0
15 stars 6 forks source link

Problems with 1.5.1 #24

Closed trentasis closed 6 years ago

trentasis commented 6 years ago

Hi,

I'm testing 1.5.1 and I have detected some problems:

1.- version tag is not updated appears 1.5 and should be 1.5.1 --> required to modify in main.cpp "const char* version = "1.5";"

2.- in ram inventory is not correct, for example this machines Not Specified 1024 System Memory DDR3 1333 MHz 0 01BD3629

Not Specified 0 DDR3 Unknown 1

Not Specified 1024 DDR3 1333 MHz 2 CDBC3629

Not Specified 0 DDR3 Unknown 3

Not Specified 4096 Flash Unknown 4 Not Specified

show as it has 6GB RAM, when really has 2GB RAM

3.- in ram appears 1025 mb ram, when really has to be 1024

4.- If you have a machine with one ethernet and then you have to replace with another ethernet (different mac address) then machine is not inventoried with new changes (new ethernet), only if you remove the computer from ocs, then is inventoried with new ethernet. IT seems that is since this commit https://github.com/jackburton79/agent/commit/9f81b9fcc4418fcb282a8476b23e0413a6601aa6

Thanks

jackburton79 commented 6 years ago

1 I realized this after tagging the release, too late. 2 & 3. I will have a look. 4 If I understood the problem correctly, I suspect this is a bug in ocs server, since I had the same problem with the Windows agent.

trentasis commented 6 years ago

Ok, about last question, do you have solved? With previous version, before this commit was working, can you recovert device id based in time to recover this feature?

It would be great to recover device id based on time, for example adding an option to command line to allow to change default system used in last version.

Thanks

jackburton79 commented 6 years ago

Ok, about last question, do you have solved? With previous version, before this commit was working, can you recovert device id based in time to recover this feature?

Not like that, since it caused duplicated entries for me. I'll try to reproduce your problem and fix it in another way.

trentasis commented 6 years ago

Hi,

About 4, I have tested with windows agent (official) and result is the same with latest ocs 1.5.1, I think that could be a bug in ocs server, and in the futur I'll try to upgrade to latest ocs, for me It is correct If you need I can make test about other issues.

Thanks

trentasis commented 6 years ago

Hi About memory with dmidecode and lshw we receive:

dmidecode -t memory dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.6 present.

Handle 0x0038, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 4 GB Error Information Handle: Not Provided Number Of Devices: 4

Handle 0x0039, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: Flash Memory Error Correction Type: None Maximum Capacity: 4 MB Error Information Handle: Not Provided Number Of Devices: 1

Handle 0x003A, DMI type 17, 28 bytes Memory Device Array Handle: 0x0038 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 1024 MB Form Factor: DIMM Set: 1 Locator: XMM1 Bank Locator: Not Specified Type: DDR3 Type Detail: Synchronous Speed: 1333 MHz Manufacturer: JEDEC ID:80 2C Serial Number: 01BD3629 Asset Tag: Not Specified Part Number: 4JTF12864AZ-1G4D1 Rank: 1

Handle 0x003B, DMI type 17, 28 bytes Memory Device Array Handle: 0x0038 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: 1 Locator: XMM2 Bank Locator: Not Specified Type: DDR3 Type Detail: Synchronous Speed: Unknown Manufacturer: JEDEC ID: Serial Number: Asset Tag: Not Specified Part Number: Rank: Unknown

Handle 0x003C, DMI type 17, 28 bytes Memory Device Array Handle: 0x0038 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 1024 MB Form Factor: DIMM Set: 2 Locator: XMM3 Bank Locator: Not Specified Type: DDR3 Type Detail: Synchronous Speed: 1333 MHz Manufacturer: JEDEC ID:80 2C Serial Number: CDBC3629 Asset Tag: Not Specified Part Number: 4JTF12864AZ-1G4D1 Rank: 1

Handle 0x003D, DMI type 17, 28 bytes Memory Device Array Handle: 0x0038 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: 2 Locator: XMM4 Bank Locator: Not Specified Type: DDR3 Type Detail: Synchronous Speed: Unknown Manufacturer: JEDEC ID: Serial Number: Asset Tag: Not Specified Part Number: Rank: Unknown

Handle 0x003F, DMI type 17, 28 bytes Memory Device Array Handle: 0x0039 Error Information Handle: Not Provided Total Width: 2 bits Data Width: 2 bits Size: 4096 kB Form Factor: Chip Set: None Locator: SYSTEM ROM Bank Locator: Not Specified Type: Flash Type Detail: Non-Volatile Speed: Unknown Manufacturer: Not Specified Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Rank: Unknown

lshw -memory:0 description: System Memory physical id: 38 slot: System board or motherboard -bank:0 description: DIMM DDR3 Synchronous 1333 MHz (0,8 ns) product: 4JTF12864AZ-1G4D1 vendor: JEDEC ID:80 2C physical id: 0 serial: 01BD3629 slot: XMM1 size: 1GiB width: 64 bits clock: 1333MHz (0.8ns) -bank:1 description: DIMM DDR3 Synchronous [empty] vendor: JEDEC ID: physical id: 1 slot: XMM2 -bank:2 description: DIMM DDR3 Synchronous 1333 MHz (0,8 ns) product: 4JTF12864AZ-1G4D1 vendor: JEDEC ID:80 2C physical id: 2 serial: CDBC3629 slot: XMM3 size: 1GiB width: 64 bits clock: 1333MHz (0.8ns) -bank:3 description: DIMM DDR3 Synchronous [empty] vendor: JEDEC ID: physical id: 3 slot: XMM4 -memory:1 UNCLAIMED description: Flash Memory physical id: 39 slot: System board or motherboard capacity: 4MiB *-bank UNCLAIMED description: Chip FLASH Non-volatile physical id: 0 slot: SYSTEM ROM size: 4MiB width: 2 bits

and I think that the problem is Handle 0x0039, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: Flash Memory Error Correction Type: None Maximum Capacity: 4 MB Error Information Handle: Not Provided Number Of Devices: 1

Caption | Description | Capacity (MB) | Purpose | Type | Speed | Slot number | Serial number

  | Not Specified | 1024 | System Memory | DDR3 | 1333 MHz | 0 | 01BD3629

  | Not Specified | 0 |   | DDR3 | Unknown | 1 |  

  | Not Specified | 1024 |   | DDR3 | 1333 MHz | 2 | CDBC3629

  | Not Specified | 0 |   | DDR3 | Unknown | 3 |  

  | Not Specified | 4096 |   | Flash | Unknown | 4 | Not Specified

I hope that this can help

If it is possible, wil lbe interesting to release 1.5.2 with 1, 2 and 3. About 4 can be ignored, I'll try to test in the future ocs server 2.3.1, now I'm using 2.1.2.

Thanks!

trentasis commented 6 years ago

Any scheduled date?

Thanks

jackburton79 commented 6 years ago

Sorry, I'm out of town. Next week will have a look.

Il 31 lug 2017 1:31 PM, "trentasis" notifications@github.com ha scritto:

Any scheculed date?

Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jackburton79/agent/issues/24#issuecomment-319041850, or mute the thread https://github.com/notifications/unsubscribe-auth/ADVtz7t8z8xO19W4mn49OxOD2XKHuDJnks5sTbr4gaJpZM4OkPC0 .

trentasis commented 6 years ago

OK, thanks!

jackburton79 commented 6 years ago

Could you please attach an XML inventory generated on the machine ? You can generate it with ocsinventory-agent --nosoftware --local ./ Thanks!

trentasis commented 6 years ago

Hi,

Attached xml from ocsinventory-agent --nosoftware --local ./ Thanks

2017-08-07 10:42 GMT+02:00 Stefano Ceccherini notifications@github.com:

Could you please attach an XML inventory generated on the machine ? You can generate it with ocsinventory-agent --nosoftware --local ./ Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jackburton79/agent/issues/24#issuecomment-320605282, or mute the thread https://github.com/notifications/unsubscribe-auth/AM316CTQA-RMAak9Fu0ioWZvTKSgo85sks5sVs37gaJpZM4OkPC0 .

trentasis commented 6 years ago

It seems taht xml is not uploaded correctly, If you need I can send to your mail...

jackburton79 commented 6 years ago

Sure!

trentasis commented 6 years ago

mail sended

jackburton79 commented 6 years ago

103275D8-1185-11DF-BBDA-857B628FD8D3-2009-08-25-00-00-00.txt

jackburton79 commented 6 years ago

When you say "show as it has 6GB RAM, when really has 2GB RAM", in which field of OcsInventory ?

trentasis commented 6 years ago

inside vm inventory in memory and also in memory slots: Caption;Description;Capacity (MB);Purpose;Type;Speed;Slot number;Serial number; ;Not Specified;1024;System Memory;DDR3;1333 MHz;0;CE4849E3; ;Not Specified;0;;DDR3;Unknown;1;; ;Not Specified;1024;;DDR3;1333 MHz;2;CD4849E3; ;Not Specified;0;;DDR3;Unknown;3;; ;Not Specified;4096;;Flash;Unknown;4;Not Specified;

trentasis commented 6 years ago

If you can't find the source of issue, it could be interesting to revert memory inventory used in version 30/5/2016 that was working and showing correctly, now I'm evaluating to return to this versionm as temporary workarorund Thanks!

jackburton79 commented 6 years ago

Unfortunately I don't have any machine which exibits this issue. Could you try to revert commit bd706bb6089150c5e353c89cf6ca798f2b72e10d to see if it fixes your problem ?

trentasis commented 6 years ago

OK, I'll try to make some test with this version

2017-08-17 8:55 GMT+02:00 Stefano Ceccherini notifications@github.com:

Unfortunately I don't have any machine which exibits this issue. Could you try to revert commit bd706bb https://github.com/jackburton79/agent/commit/bd706bb6089150c5e353c89cf6ca798f2b72e10d to see if it fixes your problem ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jackburton79/agent/issues/24#issuecomment-322985228, or mute the thread https://github.com/notifications/unsubscribe-auth/AM316DeJvLEWiPB0c7FPI6zaCQrGa-E4ks5sY-PlgaJpZM4OkPC0 .

trentasis commented 6 years ago

Tried with https://github.com/jackburton79/agent/commit/bd706bb6089150c5e353c89cf6ca798f2b72e10d with same result, incorrect value ram

jackburton79 commented 6 years ago

Hi, could you test the current master to see if it fixes this problem (wrong memory reported) ?

jackburton79 commented 6 years ago

I think this is fixed in the master branch.

trentasis commented 6 years ago

It works! Thanks

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Libre de virus. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

2017-10-31 15:03 GMT+01:00 Stefano Ceccherini notifications@github.com:

Closed #24 https://github.com/jackburton79/agent/issues/24.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jackburton79/agent/issues/24#event-1318806872, or mute the thread https://github.com/notifications/unsubscribe-auth/AM316DppGmmg-CJTjbKL5Wd1h95beh8Rks5sxyingaJpZM4OkPC0 .