你好,我从官方文档中找到了安装程序 icinga2 和 icingaweb2:
和 icingaweb2:https://github.com/Icinga/icingaweb2/blob/master/doc/installation.md
在设置过程中,当在“监控 IDO 资源”页面设置监控模块时,我插入数据库的凭据,出现此错误:
There is currently no icinga instance writing to the IDO. Make sure that a icinga instance is configured and able to write to the IDO.
有任何想法吗?
答案1
我解决了,需要编辑文件/etc/icinga2/features-enabled/ido-mysql.conf
并插入 db/user/passwd
我的文件是:
library "db_ido_mysql"
object IdoMysqlConnection "ido-mysql" {
user = "icinga",
password = "password",
host = "localhost",
database = "icinga"
}
答案2
在 Debian 系统上,在默认安装和配置 IDO 包后,这个文件其实已经在或类似文件中预先生成/etc/icinga2/features-available/ido-pgsql.conf
,您只需将其符号链接到中/etc/icinga2/features-enabled/
,然后重新启动 icinga2 服务即可。