「Icinga」:修訂間差異

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
行 3: 行 3:
== 安裝 ==
== 安裝 ==


 如果使用的是[[Ubuntu]]的LTS版本,這邊建議用Icinga官方的APT repository安裝<ref>{{Cite web |url=https://packages.icinga.com/ubuntu/ |title=Index of /ubuntu |language=en |accessdate=2020-12-06}}</ref> ,在Ubuntu 20.04上可以直接安裝系統的Icinga套件
 如果使用的是[[Ubuntu]]的LTS版本,這邊建議用Icinga官方的APT repository安裝<ref>{{Cite web |url=https://packages.icinga.com/ubuntu/ |title=Index of /ubuntu |language=en |accessdate=2020-12-06}}</ref>:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">

於 2020年12月6日 (日) 03:59 的修訂

Icinga是一套服務監控軟體。

安裝

如果使用的是Ubuntu的LTS版本,這邊建議用Icinga官方的APT repository安裝[1]

curl https://packages.icinga.com/icinga.key | sudo apt-key add -; echo -e "deb http://packages.icinga.com/ubuntu icinga-$(lsb_release -c | cut -f 2) main\ndeb-src http://packages.icinga.com/ubuntu icinga-$(lsb_release -c | cut -f 2) main" | sudo tee /etc/apt/source.list.d/icinga.list; sudo apt update; sudo apt install -y icinga2 icinga2-ido-mysql icingaweb2

設定

先在MySQL裡建立icinga2資料庫:

CREATE DATABASE icinga2;

再來把MySQL的schema裝進去:

cd /usr/share/icinga2-ido-mysql/schema; mysql -u root -p icinga2 < mysql.sql

外部連結

  1. Index of /ubuntu. [2020-12-06] (English).