[ZBX-20688] Web scenario required pattern Created: 2022 Mar 01 Updated: 2024 Apr 10 Resolved: 2022 Jul 28 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Appliance (L), Server (S) |
Affects Version/s: | 6.0.1 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Major |
Reporter: | Andrei Ioachim | Assignee: | Vladislavs Sokurenko |
Resolution: | Won't fix | Votes: | 3 |
Labels: | OVF, appliance | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() |
Team: | |
Sprint: | Sprint 86 (Mar 2022), Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Sprint 90 (Jul 2022) |
Description |
Steps to reproduce:
Result: See screenshot...
Expected:
this worked for me in 5.4, but it's not working in 6.0 also tested using the official "Open virtualization format (.ovf)" appliance image |
Comments |
Comment by Aleksey Volodin [ 2022 Mar 01 ] |
Hello! Thank you for reporting this. Can you please try this command from Zabbix 6 hosts and from 5.4: curl https://www.google.com/
Best regards, |
Comment by Andrei Ioachim [ 2022 Mar 01 ] |
using 5.4.10 appliance curl https://www.google.com/ -o curl-5.4.10.txt
6.0 appliance curl https://www.google.com/ -o curl-6.0.txt
|
Comment by Edgar Akhmetshin [ 2022 Mar 03 ] |
Hello Andrei, Could you please confirm with HTTP agent which content you receive (setup simple http agent to retrieve page content)? Do you have any content filtering/rate limiting behind appliance? No able to reproduce using appliance or docker. |
Comment by Andrei Ioachim [ 2022 Mar 03 ] |
ok, so creating an item with http agent and "https://www.google.com/" gives me the error: "Server returned invalid UTF-8 sequence" so i changed to "https://github.com/" and used preprocessing match regexp "Google" which works.
i changed in web scenario to use url "https://github.com/" and now i get a query error in zabbix_server.log 1175:20220303:161355.501 [Z3005] query failed: [1406] Data too long for column 'value' at row 1 [insert into history_text (itemid,clock,ns,value) values (42694,1646324034,821719249,' and there is a dump of the github page mysql tables are not modified: mysql> describe history_text; +--------+-----------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------+-----------------+------+-----+---------+-------+ | itemid | bigint unsigned | NO | PRI | NULL | | | clock | int | NO | PRI | 0 | | | value | text | NO | | NULL | | | ns | int | NO | PRI | 0 | | +--------+-----------------+------+-----+---------+-------+ the same web scenario using github works in 5.4.10
|
Comment by Edgar Akhmetshin [ 2022 Mar 04 ] |
Please clarify: show create table history_text; And also which exact appliance image was used? |
Comment by Andrei Ioachim [ 2022 Mar 04 ] |
"Open virtualization format (.ovf)" appliance image
mysql> show create table history_text; +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Table | Create Table | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | history_text | CREATE TABLE `history_text` ( `itemid` bigint unsigned NOT NULL, `clock` int NOT NULL DEFAULT '0', `value` text COLLATE utf8mb4_bin NOT NULL, `ns` int NOT NULL DEFAULT '0', PRIMARY KEY (`itemid`,`clock`,`ns`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin | +--------------+-------------------------------------------------- |
Comment by Edgar Akhmetshin [ 2022 Mar 08 ] |
Thank you, just to confirm, if create zabbix-server override file with the following content: systemctl edit zabbix-server And add the following lines: [Service] LimitSTACK=infinity LimitMEMLOCK=infinity After reload systemd configuration and restart Zabbix Server: systemctl daemon-reload systemctl restart zabbix-server Please check if this error will happen again and web scenario works correctly: regexp_exec(): failed with error -8 |
Comment by Andrei Ioachim [ 2022 Mar 08 ] |
yes, thank you very much.
adding LimitMEMLOCK=infinity to zabbix-server service fixed the web scenarios. (limitstack=infinity was already set) |
Comment by Vladislavs Sokurenko [ 2022 Jul 19 ] |
Can you please be so kind and check if |
Comment by Vladislavs Sokurenko [ 2022 Jul 19 ] |
The error is: In #define PCRE2_ERROR_UTF8_ERR20 (-22) Please upgrade as it should be resolved now, closing, thanks ! |