-
Incident report
-
Resolution: Fixed
-
Major
-
2.0.0rc1
-
low level discovery
SNMP
-
- Issue
Low level discovery - SNMP
e.g. Cisco (perhaps others also) return 'quoted' values when polling STRING values.
This is highly frustrating / confusing when applying a discovery "filter"
- Issue
-
- Example (zabbix_server.log - debug level):
27170:20120416:120125.142 DBlld_process_discovery_rule() f_macro:' {#SNMPVALUE}' f_regexp:'^Fa.|^Gi.|^Tu.|^Vl.'
27170:20120416:120125.144 In DBlld_check_record() jp_row:'{"{#SNMPINDEX}":1,"{#SNMPVALUE}":"\"Fa0\/0\""}'
27170:20120416:120125.145 In DBlld_check_record() jp_row:'Unknown macro: {"{#SNMPINDEX}":2,"{#SNMPVALUE}":"\"Fa0\/1\""}'
27170:20120416:120125.146 In DBlld_check_record() jp_row:'{"{#SNMPINDEX}"}'
{#SNMPINDEX}":5,"{#SNMPVALUE}":"\"Fa0\/0\/2\""}'
27170:20120416:120125.146 In DBlld_check_record() jp_row:'{"
27170:20120416:120125.147 In DBlld_check_record() jp_row:'{"{#SNMPINDEX}":6,"
{#SNMPVALUE}":"\"Fa0\/0\/3\""}'
Regexp does not match fetched values.
Used regexp (which is expected output): ^Fa.|^Gi.|^Tu.|^Vl.
Regexp that actually works (but is unwanted): \"Fa.|\"Gi.|\"Tu.|\"Vl.
## Request / proposal
Please, either:
- strip leading / ending quotes from {#SNMPVALUE}when matching discovery against filter.
- Example (zabbix_server.log - debug level):
- strip string quoting alltogether (if found), kind of useless, as this is just SNMP formatting.
- duplicates
-
ZBX-4793 SNMP item with dynamic indexes fail: "cannot find index..."
- Closed