Hi, Michael.
Thanks for your reply.
>> I just upgraded to Icinga 2.4 using debmon.org packages. But it does not
>> start. There seems to be a problem in the configuration files:
>>
>> (...)
>>
>> Although I'm not sure what is the problem because the syntax in this
>> file looks correct.
>>
>> I would appreciate any suggestions to identify the cause of this problem.
> Run the configuration validation manually and post its output.
I suppose you mean to use "chkconfig", right? I had forgotten that feature :-)
-------------------------------------------------------------------------------
root@icinga2:~# /etc/init.d/icinga2 checkconfig
[....] checking Icinga2 configuration
information/cli: Icinga application loader (version: r2.4.0-1)
information/ConfigCompiler: Compiling config file: /etc/icinga2/icinga2.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/constants.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/zones.conf
information/ConfigCompiler: Compiling config file:
/usr/share/icinga2/include/itl
information/ConfigCompiler: Compiling config file:
/usr/share/icinga2/include/command.conf
information/Utility: Loading library 'libmethods.so'
information/ConfigCompiler: Compiling config file:
/usr/share/icinga2/include/command-icinga.conf
information/ConfigCompiler: Compiling config file:
/usr/share/icinga2/include/timeperiod.conf
information/ConfigCompiler: Compiling config file:
/usr/share/icinga2/include/plugins
information/ConfigCompiler: Compiling config file:
/usr/share/icinga2/include/command-plugins.conf
information/ConfigCompiler: Compiling config file:
/usr/share/icinga2/include/manubulon
information/ConfigCompiler: Compiling config file:
/usr/share/icinga2/include/command-plugins-manubulon.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/features-enabled/checker.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/features-enabled/command.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/features-enabled/compatlog.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/features-enabled/ido-mysql.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/features-enabled/mainlog.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/features-enabled/notification.conf
information/Utility: Loading library 'libchecker.so'
information/Utility: Loading library 'libcompat.so'
information/Utility: Loading library 'libcompat.so'
information/Utility: Loading library 'libdb_ido_mysql.so'
information/Utility: Loading library 'libnotification.so'
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/app.conf
information/ConfigCompiler: Compiling config file: /etc/icinga2/conf.d/apt.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/commands.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/downtimes.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/groups.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/notifications.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/satellite.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/services.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/templates.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/timeperiods.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/users.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/localhost.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/mi-red.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/localhost/apt.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/localhost/disk.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/localhost/http.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/localhost/icinga.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/localhost/load.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/localhost/procs.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/localhost/ssh.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/localhost/swap.conf
information/ConfigCompiler: Compiling config file:
/etc/icinga2/conf.d/hosts/localhost/users.conf
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.
What do you recommend?
Thanks for your time.
Best regards,
Daniel
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users