[ZBXNEXT-3555] Optimise log file monitoring for non-active agent Created: 2016 Nov 15  Updated: 2016 Nov 17  Resolved: 2016 Nov 17

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: 3.2.1
Fix Version/s: None

Type: New Feature Request Priority: Minor
Reporter: Zac Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: logmonitoring, passive
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Issue Links:
Duplicate
duplicates ZBXNEXT-1846 do not duplicate identical history va... Closed

 Description   

The log file monitoring is only work for active agent now. The active agent will send only the new entry of log to the server.

For non-active agent, the server will poll the log from the agent. If using a non-active agent to monitor a log file, zabbix will treat it as text and record the value whenever a check is performed, even if there is no change on the log.

Currently I'm using external check for log monitoring. I wrote a script that prints the latest entry of the log. Actully this log is not a file, but some latest information queried from the API provided by a remote third party application. In this case, zabbix stores all checked values, and most of them are identical.

Although I can also revise the script to print the information as log file (working as a daemon), and then use local active zabbix agent, this approach restricts the host interface to localhost and complicates the configuration.

In general, for a log type item, it makes scene that zabbix records the value and process related triggers only if it changes, more specifically its time stamp changes. Therefore I'd like to recommend this feature for active checked logs.



 Comments   
Comment by Oleksii Zagorskyi [ 2016 Nov 15 ]

I'd evaluate it as duplicate of ZBXNEXT-1846
Any objections?

Comment by Zac [ 2016 Nov 16 ]

Yes, ZBXNEXT-1846 is what i mean somehow. But please consider the log check as a test case.

Comment by Oleksii Zagorskyi [ 2016 Nov 17 ]

Closing as duplicate then.

Comment by Oleksii Zagorskyi [ 2016 Nov 17 ]

Btw, keep in mind this https://www.zabbix.com/documentation/3.2/manual/introduction/whatsnew320#coping_with_fast-growing_log_files

Generated at Fri Mar 29 10:42:42 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.