[ZBX-4904] Cannot exec AlertScript Created: 2012 Apr 23  Updated: 2017 May 30  Resolved: 2013 Feb 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.11
Fix Version/s: None

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

Issue Links:
Duplicate
duplicates ZBX-4527 alerter commandline truncated to 2048... Closed

 Description   

In my environment, zabbix receives a Windows Event Log by "eventlog" item, and it is performing AlertScript as a trigger.

I found that when the Windows Event Log exceeding 2048 characters was received, AlertScript could not be performed.

It was outputted to zabbix_server.log as follows.

sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 8: syntax error: unexpected end of file

I changed the value of MAX_STRING_LEN in common.h into 4096 and tested it.
Then, AlertScript has been performed correctly.

I regarded this as the same problem as ZBX-1298, but 1.8.11 was not solved.

Are there any other workarounds?



 Comments   
Comment by suzuka [ 2012 Apr 23 ]

I am in trouble that no alerts are outputted.
I hope that it alerts of even if how many characters it is.

Comment by Alexander Vladishev [ 2013 Feb 05 ]

It is duplicate of ZBX-4527. I'm closing the issue.

Generated at Fri Mar 29 11:21:16 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.