Hello, everyone,
I have a small problem, that I can seem to resolve myself. We have setup multiple web scenarios, that are checking older websites on older debian (version 6 or 7) server, I had to enable tls1.0, so the website can be accessed from Zabbix server, but there is a problem with pattern, that cant be read and Zabbix is showing this error:
Step "Web check step one" [1 of 1] failed: required pattern "Pattern" was not found on https://website/withpattern
I switched on debuglevel for http (zabbix_server -R log_level_increase="http poller") and I get this information out of it:
791292:20220603:091830.042 zbx_setproctitle() title:'http poller CSS Examples [got 0 values in 0.001098 sec, idle 5 sec]'
791383:20220603:091830.044 In int_in_list() list:'200' value:200
791383:20220603:091830.044 End of int_in_list():SUCCEED
791383:20220603:091830.044 regexp_exec() failed with error -8
791383:20220603:091830.044 In process_step_data() rspcode:200 time:0.225251 speed:11435.000000
791383:20220603:091830.044 query [txnlev:0] [select type,itemid from httpstepitem where httpstepid=70]
791383:20220603:091830.044 In zbx_preprocess_item_value()
791383:20220603:091830.044 End of zbx_preprocess_item_value()
791383:20220603:091830.044 In zbx_preprocess_item_value()
791383:20220603:091830.045 End of zbx_preprocess_item_value()
791383:20220603:091830.045 In zbx_preprocess_item_value()
791383:20220603:091830.045 End of zbx_preprocess_item_value()
791383:20220603:091830.045 End of process_step_data()
791383:20220603:091830.046 query without transaction detected
791383:20220603:091830.046 query [txnlev:0] [update httptest set nextcheck=1654237170 where httptestid=54]
791383:20220603:091830.049 cannot process step "Web scenario name" of web scenario "Web check" on host "hostname": required pattern "Pattern" was not found on https://web/withpattern
I also checked multiple patterns with curl:
curl https://web/withpattern | grep pattern . I tried doing this with multiple patterns and found some, that are returning results (used one word, not whole line that was returned with curl), and tried changing them in Zabbix Web scenario, but no result, error still remains, that pattern is not found.
Also tried adding pattern with regex, for example, .*pattern and also tried adding phrase as part of Macros from server, still the problem remains.
Zabbix server specs:
Zabbix server 6.0.5 with mysql 8, on debian 11
Curl info:
curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0 OpenSSL/1.1.1n zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0 librtmp/2.3
Release-Date: 2020-12-09
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
OpenSSL 1.1.1n 15 Mar 2022
Is this expected behavior, or is this bug, error in zabbix server, or is there something I can try and get pattern to be checked correctly?
Same behavior can be observed if I set website link to http://, no difference there, without pattern there are no more errors about web scenario.
I hope that somebody can suggest something or help me with this,
Cheers!
I have a small problem, that I can seem to resolve myself. We have setup multiple web scenarios, that are checking older websites on older debian (version 6 or 7) server, I had to enable tls1.0, so the website can be accessed from Zabbix server, but there is a problem with pattern, that cant be read and Zabbix is showing this error:
Step "Web check step one" [1 of 1] failed: required pattern "Pattern" was not found on https://website/withpattern
I switched on debuglevel for http (zabbix_server -R log_level_increase="http poller") and I get this information out of it:
791292:20220603:091830.042 zbx_setproctitle() title:'http poller CSS Examples [got 0 values in 0.001098 sec, idle 5 sec]'
791383:20220603:091830.044 In int_in_list() list:'200' value:200
791383:20220603:091830.044 End of int_in_list():SUCCEED
791383:20220603:091830.044 regexp_exec() failed with error -8
791383:20220603:091830.044 In process_step_data() rspcode:200 time:0.225251 speed:11435.000000
791383:20220603:091830.044 query [txnlev:0] [select type,itemid from httpstepitem where httpstepid=70]
791383:20220603:091830.044 In zbx_preprocess_item_value()
791383:20220603:091830.044 End of zbx_preprocess_item_value()
791383:20220603:091830.044 In zbx_preprocess_item_value()
791383:20220603:091830.045 End of zbx_preprocess_item_value()
791383:20220603:091830.045 In zbx_preprocess_item_value()
791383:20220603:091830.045 End of zbx_preprocess_item_value()
791383:20220603:091830.045 End of process_step_data()
791383:20220603:091830.046 query without transaction detected
791383:20220603:091830.046 query [txnlev:0] [update httptest set nextcheck=1654237170 where httptestid=54]
791383:20220603:091830.049 cannot process step "Web scenario name" of web scenario "Web check" on host "hostname": required pattern "Pattern" was not found on https://web/withpattern
I also checked multiple patterns with curl:
curl https://web/withpattern | grep pattern . I tried doing this with multiple patterns and found some, that are returning results (used one word, not whole line that was returned with curl), and tried changing them in Zabbix Web scenario, but no result, error still remains, that pattern is not found.
Also tried adding pattern with regex, for example, .*pattern and also tried adding phrase as part of Macros from server, still the problem remains.
Zabbix server specs:
Zabbix server 6.0.5 with mysql 8, on debian 11
Curl info:
curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0 OpenSSL/1.1.1n zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0 librtmp/2.3
Release-Date: 2020-12-09
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
OpenSSL 1.1.1n 15 Mar 2022
Is this expected behavior, or is this bug, error in zabbix server, or is there something I can try and get pattern to be checked correctly?
Same behavior can be observed if I set website link to http://, no difference there, without pattern there are no more errors about web scenario.
I hope that somebody can suggest something or help me with this,
Cheers!