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