[ZBX-24031] Discovery rule with walk[] fails when run on proxies Created: 2024 Feb 01  Updated: 2024 Feb 05

Status: Reopened
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 6.4.10, 6.4.11
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Wilson Ritt Iglesias Assignee: Aleksandrs Petrovs-Gavrilovs
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian GNU/Linux 11, Linux 5.10.0-21-amd64
Tested with Zabbix Server and proxy on 6.4.10 and 6.4.11


Attachments: PNG File MobaXterm_0KcabJOYWi.png     PNG File MobaXterm_JqSgGA8S0Y.png     PNG File chrome_jLdXihgPZL.png     JPEG File photo_2024-01-30_16-47-28.jpg     JPEG File photo_2024-01-30_16-47-29.jpg     JPEG File photo_2024-01-30_18-06-54.jpg     JPEG File photo_2024-01-30_18-06-55.jpg     File zbx_export_templates.yaml    

 Description   

Steps to reproduce:

  1. Create a discovery rule with snmp agent, using walk[OID]
  2. Set the host to be monitored by Proxy

Result:
When running (or even testing) the Discovery Rule, if I run on zabbix server it process it right, but if I run the same rule on a proxy it returns "macro is invalid".

I have an item with walk that runs perfectly on both server and proxy, only the discovery rule that gives this error. On proxy's log by default it returns no errors, tried to increase loglevel but got many debug info, nothing really useful.

On the same item, I don't even run the pre-processing step, it fails right on the "get value".

Literally only changed the "Proxy" option from "(no proxy)" to "zabbix02", which is my proxy

Expected:
Since the rule works fine on the server, when I set the host to be monitored by proxy it should also run normally.

Extra info:

I've checked with snmpwalk from CLI and both servers can reach the information normally.

I've tried to create the discovery rule in two ways:

1 - SNMP Agent with snmp oid = walk[1.3.6.1.2.1.2.2,1.3.6.1.2.1.31.1.1.1]

result: on the discovery list I get "not supported" with warning: Invalid SNMP OID: macro "1.3.6.1.2.1.2.2" is invalid

2 - Create a SNMP Walk item and point the discovery rule as it's dependent

result: Status "not supported" and warning "Preprocessing failed for: 1. Failed: no data was found"

ps: SNMP walk items are collected and populated correctly on latest data

 



 Comments   
Comment by Aleksandrs Petrovs-Gavrilovs [ 2024 Feb 02 ]

Hello and thank you for your report,

Is the proxy and the server of the same version?
And could you please execute snmpwalk for the same OID to the host from the server and the proxy, will results will be the same?
And id addition would it be possible to export the host/templates and attach it to the issue (sensitive data ommited)?

Best regards,
Aleksandrs

Comment by Wilson Ritt Iglesias [ 2024 Feb 02 ]

Hi, Aleksandrs!

Sure, i'm attaching the snmpwalk from zabbix01 (server) and zabbix02 (proxy).

They both were on version 6.4.10, when I noticed the problem I updated them both to version 6.4.11, so both are on the same version.

I've attached the template and the print from both servers snmpwalking to the host.

 

Generated at Fri Jul 04 07:38:53 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.