icinga2 - Icinga2:在 db 中找不到通知历史记录
问题描述
我不想从 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
文档数据库模型与我的不匹配。
解决方案
推荐阅读
- firebase - 有限数量的firestore数据查询
- c# - C#:列表排序与 leetCode 答案不同。如何得到他们想要的答案?
- javascript - Discord Embed 让我的代码停止工作?怎么了?
- python - 递归函数能够打印,但不返回正确的值
- flutter - 列表
不是类型转换中“字符串”类型的子类型 - flutter - 未处理的异常:使用不包含 Scaffold 的上下文调用 Scaffold.of()
- java - 我无法引用我活动中的内容,例如按钮和无线电组
- php - 多用户数据库结构
- json - 在 bash 中获取最后一个唯一的 JSON 输入
- javascript - 无法使用 useRef 挂钩使用先前的值。以前的值显示等于当前值