[ZBX-4345] Recursive trigger dependency detected! Please fix. Created: 2011 Nov 11  Updated: 2017 May 30  Resolved: 2011 Nov 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.8
Fix Version/s: 1.8.9rc1

Type: Incident report Priority: Critical
Reporter: Markus Lorenz Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hey there!

Problem description:
Zabbix-Server often reports "Recursive trigger dependency detected! Please fix." on our server for multiple Trigger-IDs.
In the source-code (db.c, Function trigger_dependet_rec) we found a hard coded limit of "if (*level > 32).

As we understand the function, it should check, if there are too many dependencies IN A LINE of hosts / items.

In our case the dependencies are NOT in a line and here we come to the problem part; our dependency-structure is as the following:

monitoring-proxy[trigger1], f.e. "WAN down" depends on monitoring-server[alive] depends on monitoring-server[no-maintenance] = 3 dependencies.
monitoring-proxy[trigger2], f.e. "snmpd down" depends also on monitoring-server[alive] depends on monitoring-server[no-maintenance] = 3 dependencies.
etc. (some more, the same as above).

What the function is now doing: is does count all the dependencies together (3+3+etc., getting near or over 32).
What the function should do: NOT count the dependencies together, because they do not hang together.

Solution:
our programmer said, adding (*level)--; before the last return ret; should solve the problem.

Would be great, if someone could confirm.
If more input from our side is needed, please reply.

Thanks and kindest regards,

Markus.



 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Nov 11 ]

Indeed, there is such an issue in 1.8. In trunk, it has already been fixed when we implemented trigger cache in ZBXNEXT-807.

Comment by Aleksandrs Saveljevs [ 2011 Nov 11 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-4345 .

Comment by Aleksandrs Saveljevs [ 2011 Nov 11 ]

Fixed in pre-1.8.9 in r23136.

Generated at Thu May 09 02:16:07 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.