我在Icinga工作,负责性能数据收集,
我必须清除所有的插件数据超过30天,我怎么做呢?我在谷歌上搜索了一下也没什么用。
一些参考资料:
External Commands List
Database model
我正在使用:
RHEL操作系统
来自源代码构建的icinga2
postgresql
使用NRPE收集远程服务器数据
是否有任何工具可用于清理或任何查询,以删除所有超过30天的数据库条目?
发布于 2016-10-28 01:32:18
http://docs.icinga.org/latest/en/configido.html#configido-ido2db
从手册中看,您的ido2db.cfg似乎需要配置适当的数据:
max_systemcommands_age=43200
max_servicechecks_age=43200
max_hostchecks_age=43200
max_eventhandlers_age=43200
max_externalcommands_age=43200
max_logentries_age=43200
max_acknowledgements_age=43200
max_notifications_age=43200
max_contactnotifications_age=43200
max_contactnotificationmethods_age=43200此外,还要确保trim_db_interval设置得比较合理。默认的3600就足够了。
trim_db_interval=3600https://stackoverflow.com/questions/40265387
复制相似问题