[ZBX-13253] Log file monitoring starts from byte 0, the first log line can not be read with skip mode Created: 2017 Dec 25 Updated: 2024 Apr 10 Resolved: 2018 Jan 03 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 3.0.13 |
Fix Version/s: | 3.0.15rc1, 3.4.6rc1, 4.0.0alpha2, 4.0 (plan) |
Type: | Incident report | Priority: | Major |
Reporter: | Kim Jongkwon | Assignee: | Andris Mednis |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | history.png | ||||||||||||
Issue Links: |
|
||||||||||||
Team: | Team A | ||||||||||||
Team: | Team A | ||||||||||||
Sprint: | Sprint 23, Sprint 24 | ||||||||||||
Story Points: | 1 |
Description |
Steps to reproduce: # touch tester.log; chmod 777 tester.log; # ls -l -rwxrwxrwx 1 root root 0 Dec 25 03:05 tester.log 2. Create a item Key :log[/var/log/tester.log,,,,skip] Update interval (in sec) : 1s 3. Add echo "1" and "2". # echo "1" >> tester.log -rwxrwxrwx 1 root root 2 Dec 25 03:35 tester.log # echo "2" >> tester.log -rwxrwxrwx 1 root root 4 Dec 25 03:40 tester.log First "1" log was skipped, Only the second "2" data is read. |
Comments |
Comment by Andris Mednis [ 2017 Dec 27 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-13253 (for 3.0) |
Comment by Vladislavs Sokurenko [ 2018 Jan 02 ] |
Successfully tested |
Comment by Andris Mednis [ 2018 Jan 02 ] |
Available in versions:
|
Comment by Andris Mednis [ 2018 Jan 02 ] |
No documentation change required. |