[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:
active check "logrt[/var/log/syslog]" is not supported: Cannot open file "/var/log/anaconda.syslog": [13] Permission denied
after I granted acess to /var/log/anaconda.syslog this error disappeared.
Why do agent need access to any other files than requested one?



 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

Generated at Thu Jun 19 07:44:58 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.