2016-10-26 83 views
2

我在Icinga工作性能数据收集,Icinga数据库清理

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

一些参考:

External Commands List

Database model

我使用:
RHEL操作系统
从源icinga2建立
PostgreSQL的
使用NRPE收集远程服务器数据

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

+0

对于这个问题有一个关闭请求作为脱离主题,我没有发现与icinga标签的任何堆栈交换?如果有,请让我知道! – saravanakumar

回答

1

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