可以配置以换行符分隔的JSON格式实时导出触发器事件、监控项 值和趋势数据。
导出操作将数据写入文件,其中exportfile的每一行都是 一个JSONobject。值映射不会被应用。
如果出现错误(数据无法写入exportfile,或 exportfile无法重命名,或重命名后无法创建新文件), 则监控项数据会被丢弃且永远不会写入export file。这些数据仅会写入Zabbix数据库。当写入问题解决后, 将恢复向exportfile写入数据。
有关导出信息的具体细节,请参阅export protocol页面。
请注意,如果主机/监控项在数据接收后但服务器导出数据前被删除, 则主机/监控项可能没有元数据(主机组、主机名、监控项 名称)。
触发器事件、监控项值和趋势数据的实时export功能 通过指定export文件目录进行配置 - 请参阅服务器配置中的 ExportDir
参数 configuration.
另有两个可用参数:
ExportFileSize
可用于设置单个 individual export file. When a process needs to write to a file it checks the size of the file first. If it exceeds the configured size limit, the file is renamed by appending .old to its name and a new file with the original name is created.文件 允许的最大尺寸
每个写入数据进程都会创建一个file文件 (即大约4-30个文件)。由于默认每个exportfile文件 大小为1G,保留大型export文件可能快速耗尽磁盘空间。
ExportType
允许指定导出哪些实体类型(事件、历史数据、 趋势数据)。