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

SNMP v3 - Time synchronization failed during discovery #778

Open
kmpm opened this issue Oct 2, 2024 · 1 comment
Open

SNMP v3 - Time synchronization failed during discovery #778

kmpm opened this issue Oct 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kmpm
Copy link

kmpm commented Oct 2, 2024

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

Trying to do a snmp scan using v3 protocol but getting [debug] #1, - scanning 172.16.10.130 with SNMP, credentials [v3_glpi]: no result, Time synchronization failed during discovery in the log.

To reproduce

  1. Go to agent toolbox
  2. Add a snmp v3 credential with username, md5 authentication and des pricacy.
  3. Add IP range that targets device
  4. Add Inventory task that uses range and credentials.
  5. Run Task
  6. getting error in the log [debug] #1, - scanning 172.16.10.130 with SNMP, credentials [v3]: no result, Time synchronization failed during discovery

Expected behavior

I expect the agent being able to get information from the device using snmp v3 protocol.
It works with snmpwalk -v3 -l authPriv -u "$SNMP_USER" -a MD5 -A "$SNMP_AUTH" -x DES -X "$SNMP_PRIV" $SNMP_IP

Operating system

Windows

GLPI Agent version

v1.11

GLPI version

10.0.15

GLPIInventory plugin or other plugin version

GLPI Inventory v1.x.x (See additional context below)

Additional context

GLPI Inventory plugin version 1.4.0 but it never gets that far.

beginning of snmp walk output

SNMPv2-MIB::sysDescr.0 = STRING: Network Management Card for UPS
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.935.10.1
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (5883044) 16:20:30.44
SNMPv2-MIB::sysContact.0 = STRING: Technical Support Center
SNMPv2-MIB::sysName.0 = STRING: NMC
SNMPv2-MIB::sysLocation.0 = STRING: Containern
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
@kmpm kmpm added the bug Something isn't working label Oct 2, 2024
@g-bougard
Copy link
Member

g-bougard commented Oct 2, 2024

Hi @kmpm

just found this Net::SNMP issue: https://rt.cpan.org/Public/Bug/Display.html?id=75191

The error by itself is not originally generated by glpi-agent but by the Net::SNMP library we are using. The Net::SNMP issue seems to suggest this could be a device problem not fully supporting RFC 3414. Have you checked if a device firmware update is available ? If not, you should first contact the device manufacturer support to know if they are aware of the problem and if they have a solution.

From the glpi-agent point of view, for such a poorly designed device, you can only use an older protocol. Or maybe try to use SHA protocol and/or AES encryption, using more recent standard may also help device to behave as expected by our used library.

PS: Maybe using TCP protocol can help

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

2 participants