Skip to content
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

Net inventory with switch does not work when only snmpv3 #405

Closed
waaalex opened this issue Sep 8, 2023 · 10 comments
Closed

Net inventory with switch does not work when only snmpv3 #405

waaalex opened this issue Sep 8, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@waaalex
Copy link

waaalex commented Sep 8, 2023

Describe the bug

Hello,
When i launch net inventory for my switches it does not work when switches are in snmpV3 only.

For working, i have to disable "snmpv3 only" option and put "public" community in snmpV2 on my switches.
Even if in IP scope i only have SNMP3, glpiinventory needs snmpv2.

[Fri Sep  8 14:10:06 2023][info] running task NetInventory
[Fri Sep  8 14:10:24 2023][error] [thread 127] #06, [thread 127] SNMP communication error: no response from host 10.0.3.5
[Fri Sep  8 14:10:24 2023][error] [thread 123] #10, [thread 123] SNMP communication error: no response from host 10.0.3.7
.................
[Fri Sep  8 14:10:44 2023][info] running task Deploy

To reproduce

Launch net inventory task on switch with only snmpV3

Expected behavior

working

Operating system

Linux

GLPI Agent version

1.5

GLPI version

10.0.9

GLPIInventory plugin

1.2.3

Additional context

No response

@waaalex waaalex added the bug Something isn't working label Sep 8, 2023
@stonebuzz
Copy link
Collaborator

Maybe an agent issue
@g-bougard any idea ?

@trasher
Copy link
Collaborator

trasher commented Sep 8, 2023

Since agent get no answer from device, this is definitely not a plugin or glpi issue

@trasher trasher closed this as completed Sep 8, 2023
@g-bougard
Copy link
Member

@waaalex You should open a Q&A discussion here: https://github.com/glpi-project/glpi-agent/discussions

@waaalex
Copy link
Author

waaalex commented Sep 8, 2023

Sorry but there is an issue because i have to have "public" snmpV2 community. Another name does not wxork and with command line

glpi-netinventory.bat --host 10.0.3.3 --credentials version:3,username:snmpV3agent,authprotocol:md5,authpassword:A,privprotocol:aes,privpassword:A --debug

It works.
I m pretty sure that there is an issue on plugin or in inventory.
Can you reopen this case please?

@trasher
Copy link
Collaborator

trasher commented Sep 9, 2023

"SNMP communication error: no response from host 10.0.3.5" means an error from device or agent/device communication. it'll be a plugin issue if information are not correctly sent, but there is nothing in your issue that demonstrate this. for now, you habve to find more information.

@stonebuzz
Copy link
Collaborator

@waaalex

Can you retry with 1.2.1 version, after this version we have refactoring all SQL queries (maybe its the problem)

@stonebuzz stonebuzz reopened this Sep 11, 2023
@waaalex
Copy link
Author

waaalex commented Sep 11, 2023

Ok i will try as soon as possible.
Will i have to uninstall plugin and install 1.2.1 or is there a downgrade procedure for plugin?

@stonebuzz
Copy link
Collaborator

jsut replace plugin and force install (There have been no database changes between these versions.)

@waaalex
Copy link
Author

waaalex commented Sep 11, 2023

Same issue with 1.2.1. I do not understand.

@waaalex
Copy link
Author

waaalex commented Sep 11, 2023

Something new.
a clue here : glpi-project/glpi-agent#477
thanks to @g-bougard

I have deleted two switches, netdiscovery has worked and netinventory is ok for ALL switches.
The issue seems to be netinventory that didn't updated switches on database.

This case can be closed if you want. It works on 1.2.1 and 1.2.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants