icinga 1.9添加host 通過編譯的方式在UBuntu12.10 server上成功安裝了Icinga1.9, 這裡選用的是Apache2,Nginx暫時還沒搞定。開啟網頁後,發現只能看到監控localhost,所以需要監控其他host。沒有web UI可以完成這個功能。需要到icinga server上操作。第一步:建立/usr/local/icinga/etc/objects/linux.cfg檔案內容如下:[plain] define host{ use linux-server ; Inherit default values from a template host_name StaticFileServer ; The name we're giving to this host alias static filer server ; A longer name associated with the host address 10.112.18.131 ; IP address of the host contact_groups admins ; Host groups this host is associated with } 注意這裡的contact_groups的值admins是在檔案/usr/local/icinga/etc/objects/contacts.cfg檔案中找到的。第二步:在/usr/local/icinga/etc/icinga.cfg檔案中添加一行[plain] cfg_file=/usr/local/icinga/etc/objects/linux.cfg 第三步,運行命令檢測配置:[html] /usr/local/icinga/bin/icinga -v /usr/local/icinga/etc/icinga.cfg 第四步,重新讀取設定檔:[plain] service icinga reload 好,現在到網頁上查看一下: 有了。