[ZBX-25917] SNMP items return 0 instead of the required value in case if executed right after snmpd restart Created: 2025 Jan 22  Updated: 2025 Jan 29

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 6.0.37, 7.0.8, 7.2.2
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Sergejs Olonkins Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: SNMP, oid, restart
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GIF File wrong_value_after_snmpd_restart.gif    
Issue Links:
Related
related to ZBX-14318 SNMP Interface Speeds exceed physical... Closed

 Description   

A solution is needed to prevent zabbix from retrieving SNMP values right after snmpd restart, as it results in retrieving wrong data: "0" is returned instead of the corresponding OID value if item is executed right after snmpd restart. If this occurs when actually collecting the data, it afterwards will be reflected in item history and corresponding graphs.

Steps to reproduce:

  1. Create a host with an SNMPv3 interface
  2. Create an item that would retrieve some numeric value that is not equal to 0
  3. Execute test item functionality for this item - some numeric value is retrieved
  4. Restart snmpd
  5. Right after the restart (do it as fast as You can) execute test item once again

Result: "0" is received instead of the item value.
Expected: the actual value of the corresponding OID should be received.

Example:



 Comments   
Comment by Vladislavs Sokurenko [ 2025 Jan 29 ]

If device restart then perhaps it should be marked unreachable until it runs for some minimal time, but this time probably should be configurable then.

Generated at Thu Apr 24 08:27:37 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.