Add host in icinga 1.9

Source: Internet
Author: User
Tags icinga

Icinga1.9 is successfully installed on ubuntu12.10 server through compilation. apache2 is selected here, And nginx is not ready yet.

After opening the webpage, you can only view the monitored localhost, so you need to monitor other hosts. This function can be completed without a web UI. You need to operate on icinga server.

Step 1: Create the/usr/local/icinga/etc/objects/Linux. cfg file

The content is as follows:

 

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                                                                                                 }

Note that the contact_groups value admins is found in the/usr/local/icinga/etc/objects/contacts. cfg file.

 

Step 2: add a line in the/usr/local/icinga/etc/icinga. cfg file

 

cfg_file=/usr/local/icinga/etc/objects/linux.cfg

 

 

Step 3: run the command to check the Configuration:

 

/usr/local/icinga/bin/icinga -v /usr/local/icinga/etc/icinga.cfg

Step 4: re-read the configuration file:

 

 

service icinga reload

 

Now, go to the webpage to view the information:

 

 

Yes.

This topic is described on several webpages. For details, refer:

Http://serverfault.com/questions/305239/how-do-i-add-a-host-in-icinga-web

Https://lbtwiki.cern.ch/bin/view/Online/IcingaHosts

Http://docs.icinga.org/latest/en/configmain.html#configmain-cfg_file

Http://docs.icinga.org/latest/en/objectdefinitions.html#host

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.