icinga 1.9添加host

來源:互聯網
上載者:User

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   好,現在到網頁上查看一下:  有了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.