[ZBX-13254] Log monitoring in the first time "No such file or directory" on skip mode Created: 2017 Oct 12 Updated: 2024 Apr 10 Resolved: 2018 Jan 07 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | None |
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: | logmonitoring | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||
Team: | Team A | ||||
Team: | Team A | ||||
Sprint: | Sprint 19, Sprint 21, Sprint 22, Sprint 23, Sprint 24 | ||||
Story Points: | 2 |
Description |
When using "skip" mode, be able to check "No such file". Steps to reproduce: - log[/tmp/logtest.log,,,,skip,] Zabbix logs occurred in 2 minutes active check active check "log[/tmp/logtest.log,,,,skip,]" is not supported: Cannot obtain information for file "/tmp/logtest.log": [2] No such file or directory 2. Create a new file for monitoring echo Error_1 > /tmp/logtest.log / Create a new log echo Error_2 >> /tmp/logtest.log echo Error_3 >> /tmp/logtest.log "No such file" error disappears. but error_1~3 does not contained history data (skipped) 3. Remove "/tmp/logtest.log" file. 4. Recreate a new file "/tmp/logtest.log" echo Error_4 > /tmp/logtest.log?/ Create a new file echo Error_5 >> /tmp/logtest.log echo Error_6 >> /tmp/logtest.log Start collecting logs from here. |
Comments |
Comment by Andris Mednis [ 2017 Dec 28 ] |
Seems like a bug. |
Comment by Andris Mednis [ 2017 Dec 28 ] |
Resetting skip flag should be done only in case "file does not exist (or is not available)". |
Comment by Andris Mednis [ 2017 Dec 30 ] |
I have solution in svn://svn.zabbix.com/branches/dev/ZBX-13254 (for 3.0) which passes test from description. |
Comment by Marc [ 2017 Dec 30 ] |
How about putting the itemid into consideration? |
Comment by Andris Mednis [ 2017 Dec 31 ] |
Yes, itemid could work, but then also server and proxy have to be modified - to send the itemid in the list of active checks to agent. |
Comment by Andris Mednis [ 2018 Jan 02 ] |
It was decided that adding an itemid to active check list JSON which requires modification of server and proxy is a change of protocol and exceeds the scope of this ZBX. It should be solved in a separate ZBX. |
Comment by Andris Mednis [ 2018 Jan 02 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-13254. |
Comment by Vladislavs Sokurenko [ 2018 Jan 03 ] |
Successfully tested development branch for 3.0 |
Comment by Andris Mednis [ 2018 Jan 04 ] |
For 3.4 fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-13254-34 |
Comment by Vladislavs Sokurenko [ 2018 Jan 04 ] |
Successfully tested |
Comment by Andris Mednis [ 2018 Jan 04 ] |
Available in versions:
|
Comment by Andris Mednis [ 2018 Jan 04 ] |
Documented in martins-v Reviewed, CLOSED. Note that I changed the wording a little bit. |