[ZBX-3967] long running script can block all notifications Created: 2011 Jul 19  Updated: 2017 May 30  Resolved: 2011 Aug 31

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: 1.8.8, 1.9.6 (beta)

Type: Incident report Priority: Minor
Reporter: Istvan Marko Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: actions
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In execute_action() a long running or hanging custom alerter script
(MEDIA_TYPE_EXEC) can indefinitely hang all other alerts. Alerter
scripts can do their own timeout handling but perhaps it would make
sense to add a global timeout to avoid blocking all alerts in case of
badly written scripts.



 Comments   
Comment by Alexei Vladishev [ 2011 Jul 19 ]

Yes, alerter scripts must be fast enough to handle your message flow. Timeout handling is a good approach but it won't prevent delays in case of slow scripts anyway.

Comment by Denis Kochergin (Inactive) [ 2011 Aug 19 ]

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

Comment by Denis Kochergin (Inactive) [ 2011 Aug 23 ]

There's an issue when script is called with argument that contains line breaks and quotes. Quotes should be escaped. Fixing.

Comment by Denis Kochergin (Inactive) [ 2011 Aug 23 ]

Updated in dev branch svn://svn.zabbix.com/branches/dev/ZBX-3967.

Comment by richlv [ 2011 Sep 05 ]

changelog entry in trunk missing currently

<Deniss> it's there, someone merged it before me.

Comment by Denis Kochergin (Inactive) [ 2011 Sep 06 ]

Fixed for 1.8.8 in r21455.
Fixed for 1.9.6 in r21485.

Comment by richlv [ 2013 Oct 01 ]

actual hanging was never resolved. moved that to a new ticket, ZBX-7084

Generated at Thu Apr 25 20:04:12 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.