Hi, Michael. On 24/11/15 08:25, Daniel Guillermo Bareiro wrote:
>>> -------------------------------------------------------------------------------
>>> root@icinga2:~# /etc/init.d/icinga2 checkconfig
>>> (...)
>>> information/ConfigItem: Committing config items
>>> critical/config: Error: An object with type 'Service' and name
>>> 'localhost!ssh' already exists (in
>>> /etc/icinga2/conf.d/hosts/localhost/ssh.conf: 6:1-6:20), new declaration:
>>> in /etc/icinga2/conf.d/services.conf: 47:1-47:19
>>> Location: in /etc/icinga2/conf.d/services.conf: 47:1-47:19
>>> /etc/icinga2/conf.d/services.conf(45): * the custom attribute `os` set to
>>> `Linux`.
>>> /etc/icinga2/conf.d/services.conf(46): */
>>> /etc/icinga2/conf.d/services.conf(47): apply Service "ssh" {
>>> ^^^^^^^^^^^^^^^^^^^
>>> /etc/icinga2/conf.d/services.conf(48): import "generic-service"
>>> /etc/icinga2/conf.d/services.conf(49):
>>>
>>> critical/config: 1 error
>>> [FAIL] checking Icinga2 configuration. Check '/var/log/icinga2/startup.log'
>>> for details. ... failed!
>>> -------------------------------------------------------------------------------
>>>
>>> There seems to be a double definition of the ssh service check. But I think
>>> the
>>> definitions in /etc/icinga 2/conf.d/hosts/localhost are standard definitions
>>> provided with Icinga, right? I think I did not add any of these.
>> The current tree is also described on the docs, you can safely move away the
>> hosts directory.
> I've been reviewing this [1] documentation and see it mentions only the
> "conf.d" directory but not a directory tree. If I'm missing something, could
> you please tell me what part of the documentation do you mean?
>
> Currently I was using these files in the "host" directory:
>
> -------------------------------------------------------------------------------
> root@icinga2:/etc/icinga2/conf.d/hosts# ll
> total 20
> -rw-r--r-- 1 root root 322 sep 18 2014 localhost.conf
> -rw-r--r-- 1 root root 13657 mar 22 2015 local-network.conf
> -------------------------------------------------------------------------------
>
> Where local-network.conf has the definitions of the hosts and services to be
> monitored on the local network. Perhaps the suggestion is to move these files
> to the root of "conf.d" and delete the "hosts" directory?
>
> After having removed the "localhost" directory I was able to make Icinga2 is
> up and running.
>
> [1] http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc
I would appreciate if you could clarify some of these doubts.
Thanks.
Best regards,
Daniel
signature.asc
Description: OpenPGP digital signature
_______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
