我不想从 db 获得 icinga2 通知历史记录。像timestamp1 object1 state->DOWN,调用notifycommand1发送给user1。
主表 icinga_notifications 没问题。但 icinga_contactnotificationmethods 和 icinga_contact_notificationcommands 中没有任何内容。
此外,icinga_logentries 中没有数据。
我是否在配置中犯了任何错误,或者什么配置会导致这种情况发生?
icinga2 版本:r2.8.4
我的 ido_mysql 配置:
library "db_ido_mysql"
object IdoMysqlConnection "ido-mysql" {
host = "xxx"
port = xxx
user = "xxx"
password = "xxx"
database = "xxx"
table_prefix = "icinga_"
instance_name = "default"
enable_ha = true
cleanup = {
acknowledgements_age = 1209600
commenthistory_age = 1209600
contactnotificationmethods_age = 1209600
contactnotifications_age = 1209600
downtimehistory_age = 1209600
eventhandlers_age = 1209600
externalcommands_age = 1209600
flappinghistory_age = 1209600
hostchecks_age = 1209600
logentries_age = 1209600
notifications_age = 1209600
processevents_age = 1209600
servicechecks_age = 1209600
statehistory_age = 1209600
systemcommands_age = 1209600
}
}
https://icinga.com/docs/icinga1/latest/en/db_model.html
文档数据库模型与我的不匹配。