Áú»¢¶Ä²©

This is the documentation page for an unsupported version of Áú»¢¶Ä²©.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

2 Monitoring of log files

This tutorial provides step-by-step instructions how to setup monitoring of log files. It is assumed that a host is configured already in Áú»¢¶Ä²© frontend.

Step 1

Configure Áú»¢¶Ä²© agent.

Follow standard instructions in order to install and configure agent on monitored host. Make sure that parameter Hostname matches host name of the host configured in Áú»¢¶Ä²© frontend.

Also make sure that parameter DisableActive is not set in zabbix_agentd.conf

Step 2

Add a new item for monitoring of a log file.

Pay attention to the following parameters of the item:

PARAMETER Description
Type Must be set to 'Áú»¢¶Ä²© agent (active)'.
Key Must be set to 'log[file<,regexp>]'. For example: log[/var/log/syslog], log[/var/log/syslog,error]. Make sure that the file has read permissions for user 'zabbix' otherwise the item status will be set to 'unsupported'. Áú»¢¶Ä²© agent will filter entries of log file by the regexp if present.
Type of information Must be set to 'log'.
Update interval (in sec) The parameter defines how often Áú»¢¶Ä²© agent will check for any changes in the log file. Normally must be set to 1 second in order to get new records as soon as possible.