[icinga-users] icinga host config or adding new objects

Gerd Radecke wi2009i at gmail.com
Mon Mar 4 20:00:33 CET 2013


On 04.03.2013 19:31, Mike Dopp wrote:
>
> Using Ubuntu 12.10 server. icinga with idoutils and icinga-web (Latest 
> (1.8)).
>
> 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.
>

Hi Mike,

can you post your full icinga.cfg and the full output of 
/usr/sbin/icinga -v /etc/icinga/icinga.cfg?

it might be possible that your windows.cfg get parsed twice.


> 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 or duplicate errors.
>
> *icinga is installed on /etc/icinga/ The objects are located in the 
> /etc/icinga/objects folder with templates and such.
>
> I currently want to get this setup for multiple windows servers, Red 
> Hat servers and numerous switches.
>
> What is the best way to accomplish this?
>
> Do I create a windows.cfg, Ubuntu.cfg, switch.cfg, router.cfg,
>
> Please advise. Possibly the hierarchy of how icinga understands the 
> config files.
>
> Does it require me to edit the hosts file for ever host?
>
> 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. Thanks in advance.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.icinga.org/pipermail/icinga-users/attachments/20130304/fdc3b43f/attachment-0001.html>


More information about the icinga-users mailing list