[ZBX-2266] Server crash in check calculate item Created: 2010 Apr 03  Updated: 2017 May 30  Resolved: 2010 Apr 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: 1.8.3, 1.9.0 (alpha)

Type: Incident report Priority: Major
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-2709 Zabbix server crashes Closed
is duplicated by ZBX-2259 Zabbix died fork Escalator Closed
is duplicated by ZBX-4388 Calculated items seems to cause zabbi... Closed

 Comments   
Comment by Alexey Pustovalov [ 2010 Apr 03 ]

11193:20100403:191419.480 server #57 started [Poller. SNMP:YES]
11193:20100403:191419.480 In main_poller_loop() poller_type:0 poller_num:56
11193:20100403:191419.480 Connect to the database
11193:20100403:191421.161 In get_values()
11193:20100403:191421.161 In DCinit_nextchecks()
11193:20100403:191421.161 In DCconfig_get_poller_items() poller_type:0 poller_num:55
11193:20100403:191424.878 End of DCconfig_get_poller_items():0
11193:20100403:191424.878 In DCflush_nextchecks()
11193:20100403:191424.878 End of get_values()
11193:20100403:191424.878 In DCconfig_get_normal_poller_nextcheck() poller_type:0 poller_num:55
11193:20100403:191424.911 End of DCconfig_get_normal_poller_nextcheck():1270300465
11193:20100403:191424.911 Poller #55 spent 3.716654 seconds while updating 0 values. Sleeping for 1 seconds
11193:20100403:191425.912 In get_values()
11193:20100403:191425.912 In DCinit_nextchecks()
11193:20100403:191425.912 In DCconfig_get_poller_items() poller_type:0 poller_num:55
11193:20100403:191425.912 End of DCconfig_get_poller_items():43
11193:20100403:191425.913 In substitute_simple_macros (data:'vpn_packet_C2_In')
11193:20100403:191425.913 In get_value() key:'vpn_packet_C2_In'
11193:20100403:191425.913 In get_value_calculated() key:'vpn_packet_C2_In' expression:'(last("c2sw01:Port_10110_InPackets")+last("c2sw01:Port_10137_InPackets")+last("c2sw01:Port_10138_InPackets")+last("c2sw03:Port_10102_InPackets")+last("c2sw03:Port_10103_InPackets")+last("c2sw03:Port_10104_InPackets")+last("c2sw03:Port_10109_InPackets")+last("c2sw03:Port_10128_InPackets"+last("c2sw06:Port_10108_InPackets")+last("c2sw00:ifIntUcastPkts.142")+last("c2sw00:ifInUcastPkts.146"))/11'
11193:20100403:191425.913 In calcitem_parse_expression() expression:'(last("c2sw01:Port_10110_InPackets")+last("c2sw01:Port_10137_InPackets")+last("c2sw01:Port_10138_InPackets")+last("c2sw03:Port_10102_InPackets")+last("c2sw03:Port_10103_InPackets")+last("c2sw03:Port_10104_InPackets")+last("c2sw03:Port_10109_InPackets")+last("c2sw03:Port_10128_InPackets"+last("c2sw06:Port_10108_InPackets")+last("c2sw00:ifIntUcastPkts.142")+last("c2sw00:ifInUcastPkts.146"))/11'
11193:20100403:191425.913 calcitem_parse_expression() functionid:1 function:'last("c2sw01:Port_10110_InPackets")'
11193:20100403:191425.913 calcitem_parse_expression() functionid:2 function:'last("c2sw01:Port_10137_InPackets")'
11193:20100403:191425.913 calcitem_parse_expression() functionid:3 function:'last("c2sw01:Port_10138_InPackets")'
11193:20100403:191425.913 calcitem_parse_expression() functionid:4 function:'last("c2sw03:Port_10102_InPackets")'
11193:20100403:191425.913 calcitem_parse_expression() functionid:5 function:'last("c2sw03:Port_10103_InPackets")'
11193:20100403:191425.913 calcitem_parse_expression() functionid:6 function:'last("c2sw03:Port_10104_InPackets")'
11193:20100403:191425.913 calcitem_parse_expression() functionid:7 function:'last("c2sw03:Port_10109_InPackets")'
11193:20100403:191425.913 calcitem_parse_expression() functionid:8 function:'last("c2sw03:Port_10128_InPackets"+last("c2sw06:Port_10108_InPackets")'
11193:20100403:191425.913 calcitem_parse_expression() functionid:9 function:'last("c2sw00:ifIntUcastPkts.142")'
11193:20100403:191425.913 calcitem_parse_expression() functionid:10 function:'last("c2sw00:ifInUcastPkts.146")'
11193:20100403:191425.913 calcitem_parse_expression() expression:'(

{1}+{2}+{3}+{4}+{5}+{6}+{7}+{8}+{9}+{10})/11'
11193:20100403:191425.913 In substitute_simple_macros (data:'({1}

+

{2}+{3}+{4}+{5}+{6}+{7}+{8}+{9}+{10})/11')
11193:20100403:191425.913 End substitute_simple_macros (result:'({1}+{2}

+

{3}+{4}+{5}+{6}+{7}+{8}+{9}+{10})/11')
11193:20100403:191425.913 End of calcitem_parse_expression():SUCCEED
11193:20100403:191425.913 In calcitem_evaluate_expression() expression:'({1}+{2}+{3}

+

{4}

+

{5}

+

{6}

+

{7}

+

{8}

+

{9}

+

{10}

)/11'
11193:20100403:191425.913 calcitem_evaluate_expression() function:'c2sw01:Port_10110_InPackets.last()'
11193:20100403:191425.913 calcitem_evaluate_expression() function:'c2sw01:Port_10137_InPackets.last()'
11193:20100403:191425.913 calcitem_evaluate_expression() function:'c2sw01:Port_10138_InPackets.last()'
11193:20100403:191425.913 calcitem_evaluate_expression() function:'c2sw03:Port_10102_InPackets.last()'
11193:20100403:191425.913 calcitem_evaluate_expression() function:'c2sw03:Port_10103_InPackets.last()'
11193:20100403:191425.913 calcitem_evaluate_expression() function:'c2sw03:Port_10104_InPackets.last()'
11193:20100403:191425.913 calcitem_evaluate_expression() function:'c2sw03:Port_10109_InPackets.last()'
11098:20100403:191425.922 One child process died (PID:11193). Exiting ...

Comment by Alexey Pustovalov [ 2010 Apr 03 ]

sorry thise bug, not feature request)))

Comment by Aleksandrs Saveljevs [ 2010 Apr 08 ]

Fixed the crash in pre-1.8.3 in r11391.

PS: Alexey, not sure if you noticed it, but you have a typo in the expression:

... + last("c2sw03:Port_10128_InPackets"+last("c2sw06:Port_10108_InPackets") + ...

The first "last" is missing a closing parenthesis. Correcting it will allow you to run Zabbix without upgrading to the latest revision.

Generated at Thu Apr 25 16:50:37 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.