[ZBX-16545] zabbix agent does not log script timeouts Created: 2019 Aug 20  Updated: 2019 Sep 16  Resolved: 2019 Sep 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 3.0.28, 4.0.11, 4.2.5, 4.4.0alpha2
Fix Version/s: 4.0.13rc1, 4.2.7rc1, 4.4.0alpha3, 4.4 (plan)

Type: Problem report Priority: Trivial
Reporter: pron Assignee: Andrejs Tumilovics
Resolution: Fixed Votes: 0
Labels: Timeout, UserParameters
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team C
Sprint: Sprint 56 (Sep 2019), Sprint 55 (Aug 2019)
Story Points: 0.125

 Description   

Steps to reproduce:

  1. add UserParameter script that runs longer then timeout
  2. Have log level warning (3)

Result:
nothing is logged
Expected:
log message about timeout

if i read it correctly it will never go off
https://github.com/zabbix/zabbix/blob/86e41ec878b740666af51e0c04adb5b1541e3a4e/src/libs/zbxexec/execute.c#L502-L505



 Comments   
Comment by Edgar Akhmetshin [ 2019 Aug 21 ]

Hello Pron,

Thank you for reporting the issue! The snippet of code mentioned from above will show you error, if you query for example using zabbix_get utility:

ZBX_NOTSUPPORTED: Timeout while executing a shell script.

But no error will be in the log file with debug level set to 3, level 4 will have:

  6242:20190821:083402.485 Sending back [ZBX_NOTSUPPORTED: Timeout while executing a shell script.] 

Confirmed.

Regards,
Edgar

Generated at Thu Mar 28 23:38:15 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.