2016-10-26 89 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