[ZBX-9792] log read access bug Created: 2015 Aug 19 Updated: 2017 May 30 Resolved: 2015 Aug 19 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 2.4.6 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Alexander Yesipov | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Scientific Linux release 6.3 (Carbon) |
Description |
I tied to add simple active log check – logrt[/var/log/syslog] and got this error in agent log: |
Comments |
Comment by Andris Mednis [ 2015 Aug 19 ] |
In item key "logrt[/var/log/syslog" the "/var/log/" is a directory where to search log files and "syslog" is a regular expression describing the file name pattern. In your case Zabbix agent tries to analyze every log file with "syslog" in the filename, including "anaconda.syslog". Probably you want "logrt[/var/log/^syslog.*" (adjust your file name regexp to include also rotated log files). It is documented in https://www.zabbix.com/documentation/2.4/manual/config/items/itemtypes/zabbix_agent (see logrt item). |
Comment by Alexander Yesipov [ 2015 Aug 19 ] |
Thanks, didnt mentioned difference between log and logrt |
Comment by richlv [ 2015 Aug 19 ] |
in case of a single file log[] key might be a better choice, btw |