Using Ubuntu 12.10 server. icinga with idoutils and icinga-web. Have ability to see hosts if I add them in the localhost_icinga.cfg
however from my understanding you can create a host.cfg based on systems. example: windows.cfg to monitor all windows machines via NSclient++ (similar to Nagios)
Everytime I create a new host.cfg icinga either gives me a duplicate error or it does not like the define host line. Example: (localhost_icinga.cfg working)
define host{ use generic-host host_name mikedoppdesk alias mikedoppdesk address 192.168.0.56 } However if I create a windows.cfg Example: define host{ use windows host_name mikedoppdesk alias mikedoppdesk address 192.168.0.56 }
and use: /usr/sbin/icinga -v /etc/icinga/icinga.cfg
output error line 1 windows.cfg
I have been chasing the icinga web docs trying to get a straight answer. I know I am missing something critical but cannot find rhyme or reason. Please educate or prove me dumb. Thanks in advance
In your main configuration file which is usually /usr/local/icinga/etc/icinga.cfg you should add a line with no spaces at the beginning:
(you can see it here as well: http://docs.icinga.org/latest/en/configobject.html).
It means that you define objects (here hosts) in the file specified above. In that file you should define the monitored host itself
Example:
All possible options and their definitions you can be found here (http://docs.icinga.org/latest/en/objectdefinitions.html#objectdefinitions-host).