-
Problem report
-
Resolution: Fixed
-
Trivial
-
5.0.0alpha1, 5.0.0alpha2, 5.0.0alpha3
-
Sprint 62 (Mar 2020), Sprint 63 (Apr 2020)
-
0.125
{EVENT.OPDATA}
macro is not substituted correctly when internal events occur.
Steps to reproduce:
- Create Webhook media type (not sure if webhook is required or if email or other type is fine too) and use {EVENT.OPDATA} value in one of the params (webhook could just return 1 as a result).
- Create Action for internal events (for example, for unsupported items) and set it to use created media type.
- Make sure that item becomes unsupported.
- Observe the following error in Zabbix Server log:
14564:20200303:105212.736 item "test:trap" became supported 14566:20200303:105216.742 item "test:trap" became not supported: Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "bebebe" 14567:20200303:105218.869 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: invalid byte sequence for encoding "UTF8": 0xe8 0x5c 0x75 [insert into alerts (alertid,actionid,eventid,userid,clock,mediatypeid,sendto,subject,message,status,error,esc_step,alerttype,acknowledgeid,parameters) values (22,4,54,1,1583225538,27,'xxx','','',3,'',1,0,null,'{"event_opdata":"�\u000b6�\b"}'); ]
Additionally, sometimes the same use case causes the following crash:
11887:20200303:104202.523 item "test:trap" became not supported: Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "bebebe" 11889:20200303:104203.516 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ... 11889:20200303:104203.516 ====== Fatal information: ====== 11889:20200303:104203.516 Program counter: 0x4e16dd 11889:20200303:104203.516 === Registers: === 11889:20200303:104203.516 r8 = 0 = 0 = 0 11889:20200303:104203.516 r9 = 0 = 0 = 0 11889:20200303:104203.516 r10 = 7f2443d481a0 = 139793733550496 = 139793733550496 11889:20200303:104203.516 r11 = 7 = 7 = 7 11889:20200303:104203.516 r12 = 7ffce4f0df80 = 140724149477248 = 140724149477248 11889:20200303:104203.516 r13 = 0 = 0 = 0 11889:20200303:104203.516 r14 = 1 = 1 = 1 11889:20200303:104203.516 r15 = 0 = 0 = 0 11889:20200303:104203.516 rdi = 1018d60 = 16878944 = 16878944 11889:20200303:104203.516 rsi = 7ffce4f0df80 = 140724149477248 = 140724149477248 11889:20200303:104203.516 rbp = 1018d60 = 16878944 = 16878944 11889:20200303:104203.516 rbx = 0 = 0 = 0 11889:20200303:104203.516 rdx = 0 = 0 = 0 11889:20200303:104203.516 rax = 0 = 0 = 0 11889:20200303:104203.516 rcx = 0 = 0 = 0 11889:20200303:104203.516 rsp = 7ffce4f0de00 = 140724149476864 = 140724149476864 11889:20200303:104203.516 rip = 4e16dd = 5117661 = 5117661 11889:20200303:104203.516 efl = 10246 = 66118 = 66118 11889:20200303:104203.516 csgsfs = 4e41000000000033 = 5638788208444571699 = 5638788208444571699 11889:20200303:104203.516 err = 4 = 4 = 4 11889:20200303:104203.516 trapno = e = 14 = 14 11889:20200303:104203.516 oldmask = 0 = 0 = 0 11889:20200303:104203.516 cr2 = 0 = 0 = 0 11889:20200303:104203.516 === Backtrace: === 11889:20200303:104203.522 17: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations](zbx_backtrace+0x46) [0x513b56] 11889:20200303:104203.522 16: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations](zbx_log_fatal_info+0x271) [0x513ed1] 11889:20200303:104203.522 15: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations]() [0x514356] 11889:20200303:104203.522 14: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f2445588390] 11889:20200303:104203.522 13: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations]() [0x4e16dd] 11889:20200303:104203.522 12: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations](substitute_simple_macros+0x3dc4) [0x4dd2e4] 11889:20200303:104203.522 11: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations]() [0x4539c9] 11889:20200303:104203.522 10: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations]() [0x453f20] 11889:20200303:104203.522 9: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations]() [0x4560e3] 11889:20200303:104203.522 8: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations]() [0x457346] 11889:20200303:104203.522 7: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations]() [0x4574ad] 11889:20200303:104203.522 6: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations](escalator_thread+0x192) [0x457a32] 11889:20200303:104203.522 5: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations](zbx_thread_start+0x3e) [0x51d84e] 11889:20200303:104203.522 4: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations](MAIN_ZABBIX_ENTRY+0x858) [0x42d5c8] 11889:20200303:104203.522 3: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations](daemon_start+0x1c0) [0x513900] 11889:20200303:104203.522 2: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations](main+0x40b) [0x425b8b] 11889:20200303:104203.522 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f2443c22830] 11889:20200303:104203.522 0: ./sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001377 sec, processing escalations](_start+0x29) [0x42c819] 11889:20200303:104203.522 === Memory map: === 11889:20200303:104203.522 00400000-0066c000 r-xp 00000000 08:02 3042740 /home/vjaceslavs/workspace/dev/module/sbin/zabbix_server 11889:20200303:104203.522 0086b000-0086c000 r--p 0026b000 08:02 3042740 /home/vjaceslavs/workspace/dev/module/sbin/zabbix_server 11889:20200303:104203.522 0086c000-00877000 rw-p 0026c000 08:02 3042740 /home/vjaceslavs/workspace/dev/module/sbin/zabbix_server 11889:20200303:104203.522 00877000-00880000 rw-p 00000000 00:00 0 11889:20200303:104203.522 00f8d000-00fae000 rw-p 00000000 00:00 0 [heap] 11889:20200303:104203.522 00fae000-01012000 rw-p 00000000 00:00 0 [heap] 11889:20200303:104203.522 01012000-01036000 rw-p 00000000 00:00 0 [heap] 11889:20200303:104203.522 7f243c0ef000-7f243c105000 r-xp 00000000 08:02 8131120 /lib/x86_64-linux-gnu/libgcc_s.so.1 11889:20200303:104203.522 7f243c105000-7f243c304000 ---p 00016000 08:02 8131120 /lib/x86_64-linux-gnu/libgcc_s.so.1 11889:20200303:104203.522 7f243c304000-7f243c305000 rw-p 00015000 08:02 8131120 /lib/x86_64-linux-gnu/libgcc_s.so.1 11889:20200303:104203.522 7f243c305000-7f243c310000 r-xp 00000000 08:02 8134666 /lib/x86_64-linux-gnu/libnss_files-2.23.so 11889:20200303:104203.522 7f243c310000-7f243c50f000 ---p 0000b000 08:02 8134666 /lib/x86_64-linux-gnu/libnss_files-2.23.so 11889:20200303:104203.522 7f243c50f000-7f243c510000 r--p 0000a000 08:02 8134666 /lib/x86_64-linux-gnu/libnss_files-2.23.so 11889:20200303:104203.522 7f243c510000-7f243c511000 rw-p 0000b000 08:02 8134666 /lib/x86_64-linux-gnu/libnss_files-2.23.so 11889:20200303:104203.522 7f243c511000-7f243c517000 rw-p 00000000 00:00 0 11889:20200303:104203.522 7f243c517000-7f243c522000 r-xp 00000000 08:02 8134659 /lib/x86_64-linux-gnu/libnss_nis-2.23.so 11889:20200303:104203.522 7f243c522000-7f243c721000 ---p 0000b000 08:02 8134659 /lib/x86_64-linux-gnu/libnss_nis-2.23.so 11889:20200303:104203.522 7f243c721000-7f243c722000 r--p 0000a000 08:02 8134659 /lib/x86_64-linux-gnu/libnss_nis-2.23.so 11889:20200303:104203.522 7f243c722000-7f243c723000 rw-p 0000b000 08:02 8134659 /lib/x86_64-linux-gnu/libnss_nis-2.23.so 11889:20200303:104203.522 7f243c723000-7f243c739000 r-xp 00000000 08:02 8134664 /lib/x86_64-linux-gnu/libnsl-2.23.so 11889:20200303:104203.522 7f243c739000-7f243c938000 ---p 00016000 08:02 8134664 /lib/x86_64-linux-gnu/libnsl-2.23.so 11889:20200303:104203.522 7f243c938000-7f243c939000 r--p 00015000 08:02 8134664 /lib/x86_64-linux-gnu/libnsl-2.23.so 11889:20200303:104203.522 7f243c939000-7f243c93a000 rw-p 00016000 08:02 8134664 /lib/x86_64-linux-gnu/libnsl-2.23.so 11889:20200303:104203.522 7f243c93a000-7f243c93c000 rw-p 00000000 00:00 0 11889:20200303:104203.522 7f243c93c000-7f243c944000 r-xp 00000000 08:02 8134670 /lib/x86_64-linux-gnu/libnss_compat-2.23.so 11889:20200303:104203.522 7f243c944000-7f243cb43000 ---p 00008000 08:02 8134670 /lib/x86_64-linux-gnu/libnss_compat-2.23.so 11889:20200303:104203.522 7f243cb43000-7f243cb44000 r--p 00007000 08:02 8134670 /lib/x86_64-linux-gnu/libnss_compat-2.23.so 11889:20200303:104203.522 7f243cb44000-7f243cb45000 rw-p 00008000 08:02 8134670 /lib/x86_64-linux-gnu/libnss_compat-2.23.so 11889:20200303:104203.522 7f243cb45000-7f243d345000 rw-s 00000000 00:05 70942774 /SYSV00000000 (deleted) 11889:20200303:104203.522 7f243d345000-7f243db45000 rw-s 00000000 00:05 70877236 /SYSV00000000 (deleted) 11889:20200303:104203.522 7f243db45000-7f243df45000 rw-s 00000000 00:05 70844467 /SYSV00000000 (deleted) 11889:20200303:104203.522 7f243df45000-7f243e345000 rw-s 00000000 00:05 70811689 /SYSV00000000 (deleted) 11889:20200303:104203.522 7f243e345000-7f243f345000 rw-s 00000000 00:05 70778919 /SYSV00000000 (deleted) 11889:20200303:104203.522 7f243f345000-7f243f34c000 r-xp 00000000 08:02 5775930 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4 11889:20200303:104203.522 7f243f34c000-7f243f54b000 ---p 00007000 08:02 5775930 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4 11889:20200303:104203.522 7f243f54b000-7f243f54c000 r--p 00006000 08:02 5775930 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4 11889:20200303:104203.522 7f243f54c000-7f243f54d000 rw-p 00007000 08:02 5775930 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4 11889:20200303:104203.522 7f243f54d000-7f243f556000 r-xp 00000000 08:02 8134663 /lib/x86_64-linux-gnu/libcrypt-2.23.so 11889:20200303:104203.522 7f243f556000-7f243f755000 ---p 00009000 08:02 8134663 /lib/x86_64-linux-gnu/libcrypt-2.23.so 11889:20200303:104203.522 7f243f755000-7f243f756000 r--p 00008000 08:02 8134663 /lib/x86_64-linux-gnu/libcrypt-2.23.so 11889:20200303:104203.522 7f243f756000-7f243f757000 rw-p 00009000 08:02 8134663 /lib/x86_64-linux-gnu/libcrypt-2.23.so 11889:20200303:104203.522 7f243f757000-7f243f785000 rw-p 00000000 00:00 0 11889:20200303:104203.522 7f243f785000-7f243f855000 r-xp 00000000 08:02 5767789 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 11889:20200303:104203.522 7f243f855000-7f243fa54000 ---p 000d0000 08:02 5767789 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 11889:20200303:104203.522 7f243fa54000-7f243fa57000 r--p 000cf000 08:02 5767789 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 11889:20200303:104203.522 7f243fa57000-7f243fa59000 rw-p 000d2000 08:02 5767789 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 11889:20200303:104203.522 7f243fa59000-7f243fa5a000 rw-p 00000000 00:00 0 11889:20200303:104203.522 7f243fa5a000-7f243faa1000 r-xp 00000000 08:02 5771762 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 11889:20200303:104203.522 7f243faa1000-7f243fca0000 ---p 00047000 08:02 5771762 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 11889:20200303:104203.522 7f243fca0000-7f243fca2000 r--p 00046000 08:02 5771762 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 11889:20200303:104203.522 7f243fca2000-7f243fca4000 rw-p 00048000 08:02 5771762 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 11889:20200303:104203.522 7f243fca4000-7f243fca5000 rw-p 00000000 00:00 0 11889:20200303:104203.522 7f243fca5000-7f243fcb3000 r-xp 00000000 08:02 5771754 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 11889:20200303:104203.522 7f243fcb3000-7f243feb2000 ---p 0000e000 08:02 5771754 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 11889:20200303:104203.522 7f243feb2000-7f243feb3000 r--p 0000d000 08:02 5771754 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 11889:20200303:104203.522 7f243feb3000-7f243feb4000 rw-p 0000e000 08:02 5771754 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 11889:20200303:104203.522 7f243feb4000-7f243fedb000 r-xp 00000000 08:02 5771758 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 11889:20200303:104203.522 7f243fedb000-7f24400db000 ---p 00027000 08:02 5771758 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 11889:20200303:104203.522 7f24400db000-7f24400dc000 r--p 00027000 08:02 5771758 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 11889:20200303:104203.522 7f24400dc000-7f24400dd000 rw-p 00028000 08:02 5771758 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 11889:20200303:104203.522 7f24400dd000-7f24400ee000 r-xp 00000000 08:02 5771583 /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1 11889:20200303:104203.522 7f24400ee000-7f24402ee000 ---p 00011000 08:02 5771583 /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1 11889:20200303:104203.522 7f24402ee000-7f24402ef000 r--p 00011000 08:02 5771583 /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1 11889:20200303:104203.523 7f24402ef000-7f24402f0000 rw-p 00012000 08:02 5771583 /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1 11889:20200303:104203.523 7f24402f0000-7f2440349000 r-xp 00000000 08:02 5773119 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0 11889:20200303:104203.523 7f2440349000-7f2440548000 ---p 00059000 08:02 5773119 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0 11889:20200303:104203.523 7f2440548000-7f2440552000 r--p 00058000 08:02 5773119 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0 11889:20200303:104203.523 7f2440552000-7f2440554000 rw-p 00062000 08:02 ... 11889:20200303:104203.524 ================================ 11889:20200303:104203.524 Please consider attaching a disassembly listing to your bug report. 11889:20200303:104203.524 This listing can be produced with, e.g., objdump -DSswx zabbix_server. 11889:20200303:104203.524 ================================ 11864:20200303:104203.525 One child process died (PID:11889,exitcode/signal:1). Exiting ... zabbix_server [11864]: Error waiting for process with PID 11889: [10] No child processes 11864:20200303:104203.544 syncing trend data... 11864:20200303:104203.546 syncing trend data done
- caused by
-
ZBXNEXT-5323 Final fix for {ITEM.LASTVALUE1} in Monitoring–>Problems as a live view (Backend)
- Closed