[ZBXNEXT-2892] Increase size of IP ranges for network discovery rules Created: 2015 Jul 29  Updated: 2020 Apr 19  Resolved: 2015 Aug 24

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A), Frontend (F), Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: 2.5.0

Type: Change Request Priority: Blocker
Reporter: Alexei Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: networkdiscovery
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File zabbix_server_zbxnext-2892-objdump.txt.gz     File zabbix_server_zbxnext-2892.log    

 Description   

Size of IP range field should be increased to 2K and it should support multi-line entries preserving formatting.



 Comments   
Comment by Ivo Kurzemnieks [ 2015 Aug 03 ]

(1) No translation string changes.

sasha CLOSED

Comment by Andris Zeila [ 2015 Aug 03 ]

(2) [S] Create database patch to resize drules.iprange field to 2048

wiper RESOLVED in r54652

sasha CLOSED

Comment by Andris Zeila [ 2015 Aug 03 ]

(3) [S] Update iprange parser to ignore leading and trailing whitespace characters (CR, LF, TAB, SPACE)

wiper RESOLVED in r54662

<dimir> Discoverer crash:

 22972:20150814:184813.484 In DBcopy_template_application_prototypes()
 22972:20150814:184813.484 query [txnlev:1] [select ap.application_prototypeid,ap.name,i_t.itemid from items i left join application_prototype ap on ap.itemid=i.itemid left join items i_t on i_t.templateid=i.itemid where i.flags=1 and i_t.
hostid=10105 and i.hostid=10001]
 22972:20150814:184813.484 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ...
 22972:20150814:184813.484 ====== Fatal information: ======
 22972:20150814:184813.484 Program counter: 0x462de1
 22972:20150814:184813.484 === Registers: ===
 22972:20150814:184813.484 r8      =                0 =                    0 =                    0
 22972:20150814:184813.484 r9      = ffffffffffffffff = 18446744073709551615 =                   -1
 22972:20150814:184813.484 r10     =     7fb70ada02f0 =      140424137802480 =      140424137802480
 22972:20150814:184813.484 r11     =         1ce052a0 =            484463264 =            484463264
 22972:20150814:184813.484 r12     =                a =                   10 =                   10

See attached log and objdump.

REOPENED

wiper It looks like a crash fixed in ZBXNEXT-1219 (37). Could you take a patch from there and try it again?

sasha CLOSED

Comment by Alexander Vladishev [ 2015 Aug 04 ]

Frontend was successfully tested.

Comment by Andris Zeila [ 2015 Aug 18 ]

Released in:

  • pre-2.5.0 r55012
Comment by Andris Zeila [ 2015 Aug 18 ]

(4) Updated documentation what's new

<richlv> should we also mention multiple line support in https://www.zabbix.com/documentation/3.0/manual/discovery/network_discovery/rule , similar how spacing is mentioned ?

wiper updated.

sasha Thanks! CLOSED

Comment by Christoph Loesch [ 2020 Apr 19 ]

hi, just for reference, i opened an issue: https://support.zabbix.com/browse/ZBX-17603 - iprange limit of 2048 characters in network discovery rules

would be great to increase again, now to 64K because this is described in manual:

https://www.zabbix.com/documentation/5.0/manual/discovery/network_discovery/rule
Range of IP addresses: 192.168.1-10.1-255. The range is limited by the total number of covered addresses (less than 64K).

Generated at Tue Apr 16 12:47:18 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.