4 Real-time export of events, values, trends

概述

Overview

It is possible to configure real-time exporting of trigger events, item values and trends in a newline-delimited JSON format.

导出完成后的文件中,每一行都是JSON对象。值映射不被应用。 Exporting is done into files, where each line of the export file is a JSON object. Value mappings are not applied.

有关导出数据的详细信息,请参见 导出协议页面。 For precise details on what information is exported, see the page.

请注意,如果在收到数据后,在服务器导出数据之前删除了主机/监控项,主机/监控项可能没有元数据(例如:主机组,主机名,监控项名称)。 Note that host/item can have no metadata (host groups, host name, item name) if the host/item was removed after the data was received, but before server exported data.

配置

Configuration

另外一个参数可用于设置单个导出文件的最大允许大小。 Another parameter - may be used to set the maximum allowed size of an individual export file.

当进程需要写入文件时,它首先检查文件的大小。 如果超出配置的大小限制,则重命名该文件(在原文件名后加入.old后缀),并创建具有原文件名的新文件。