gpt4 book ai didi

postgresql - Icinga 数据库清理

转载 作者:行者123 更新时间:2023-11-29 12:18:27 24 4
gpt4 key购买 nike

我在 Icinga 工作,负责性能数据收集,

我必须清除超过 30 天的所有插件数据,我该怎么做。我有一些谷歌搜索没有帮助。

一些引用:

External Commands List

Database model

我正在使用:
RHEL 操作系统
来自源代码构建的 icinga2
postgresql
使用NRPE收集远程服务器数据

是否有任何工具可用于清理或查询以删除所有超过 30 天的数据库条目?

最佳答案

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=3600

关于postgresql - Icinga 数据库清理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40265387/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com