[ZBX-4094] Don't send "timeout while executing a shell script" as text item return value when UserParameter script timeout happens Created: 2011 Aug 31  Updated: 2017 May 30  Resolved: 2014 Oct 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.8.6
Fix Version/s: None

Type: Incident report Priority: Minor
Reporter: alix Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: patch, timeout, userparameters
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File common.c.patch     File common.c.patch.unified    
Issue Links:
Duplicate
duplicates ZBXNEXT-2203 Zabbix should provide detailed inform... Closed
duplicates ZBXNEXT-485 simple checks should use the same syn... Closed
is duplicated by ZBX-4285 Agent returns value as "timeout while... Closed

 Description   

I find it very inconvinient when my text items history is getting spoiled by occasional "timeout while executiong a shell script" values.
not only items history is losing its designated beauty, but this also needlessly complicates certain trigger expressions to avoid triggering on receiving such "invalid" values.

proper way for agent is to return nothing in case of text item Userparameter script timeout.

patch for agent 1.8.6 libs/zbxsysinfo/common/common.c is supplied.



 Comments   
Comment by richlv [ 2011 Sep 09 ]

heya, could you please add the patch in unified format (diff -u or svn diff) ? thanks

Comment by alix [ 2011 Sep 09 ]

sure. one caveat though, there won't be a way of discovering the exact unsupported text items error message in frontend. "Error" column will say just ZBX_NOTSUPPORTED.

I guess I'd have to dig deeper somewhere in server sources, but I'm satisfied with this resolution as it is.

Comment by Alexander Vladishev [ 2014 Oct 03 ]

Already fixed in 2.3.0 under ZBXNEXT-2203. Partial fix was implemented in 1.9.7 under ZBXNEXT-485.

Generated at Fri Mar 29 17:36:45 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.