Monitoring

目前沒有寫入 IDO 的 icinga 實例

  • September 18, 2019

嗨,我有來自官方文件的安裝程序 icinga2 和 icingaweb2:

search2:http://docs.meditate.org/think2/latest/doc/module/think2/chapter/getting-started#!/thought2/latest/doc/module/thought2/chapter/getting-started#setting- up-冰糖2

和 icingaweb2:https ://github.com/I think/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.

有任何想法嗎?

我解決了,需要編輯文件/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"
}

在 Debian 系統上,預設安裝和配置 IDO 包後,這個文件實際上是預先生成的/etc/icinga2/features-available/ido-pgsql.conf或類似的,您只需將其符號連結到/etc/icinga2/features-enabled/,然後重新啟動 icinga2 服務。

引用自:https://serverfault.com/questions/743426