Closed nbuchwitz closed 6 years ago
~~Did you remove /etc/sysconfig/icinga2 before upgrade? If there is any variable $variable it will not work, see sysconfig changes in the upgrade docs~~
Just found your sysconfig file is clean :)
This system works as a client, right? Can you share the zones.conf and any modification different from a fresh installation?
Besides the zones.conf nothing is customised.
As requested in the other issue I saved the gdb output: https://gist.github.com/nbuchwitz/733765116b90c29a9eb9ced8f90a54ea
zones.conf
/*
* Generated by Icinga 2 node setup commands
* on 2017-08-15 15:49:01 +0200
*/
object Endpoint "monitoring.remote.fqdn" {
host = "10.0.0.4"
port = "5665"
}
object Zone "master" {
endpoints = [ "monitoring.remote.fqdn" ]
}
object Endpoint NodeName {
}
object Zone ZoneName {
endpoints = [ NodeName ]
parent = "master"
}
icinga2.conf
include "constants.conf"
include "zones.conf"
include <itl>
include <plugins>
include <plugins-contrib>
include <manubulon>
include <windows-plugins>
include <nscp>
include "features-enabled/*.conf"
constants.conf
* This file defines global constants which can be used in
* the other configuration files.
*/
/* The directory which contains the plugins from the Monitoring Plugins project. */
const PluginDir = "/usr/lib64/nagios/plugins"
/* The directory which contains the Manubulon plugins.
* Check the documentation, chapter "SNMP Manubulon Plugin Check Commands", for details.
*/
const ManubulonPluginDir = "/usr/lib64/nagios/plugins"
/* The directory which you use to store additional plugins which ITL provides user contributed command definitions for.
* Check the documentation, chapter "Plugins Contribution", for details.
*/
const PluginContribDir = "/usr/lib64/nagios/plugins"
/* Our local instance name. By default this is the server's hostname as returned by `hostname --fqdn`.
* This should be the common name from the API certificate.
*/
const NodeName = "demeter.willi-graf.local"
/* Our local zone name. */
const ZoneName = "demeter.willi-graf.local"
/* Secret key for remote node tickets */
const TicketSalt = ""
Confirmed. Set up v2.9 on CentOS 6 as usual with the node wizard and... nothing happens.
I can also confirm. I have a mixed CentOS 6 and 7 environment. All CentOS 7 server clients are connected, while all CentOS 6 servers have lost connection. They were upgraded monday night 0400 CEST, and I could swear they all worked yesterday.
Forgot I have auto upgrade on these. Looking in logs, they we're upgraded 18.07.18 04.00 CEST. Looks like they broke instantly on upgrade to 2.9.0-1
I'm closing this in favour of #6445 - please continue there.
Final reference: https://github.com/Icinga/icinga2/issues/6445#issuecomment-406250387
I updated some old CentOS 6 servers and on one of them the Icinga 2 daemon only runs in foreground. If I use the the init script or even start the daemon via CLI with the
-d
flag no communication to the master is established nor any logs are written at run time:After stopping the daemon something is written in the logs files:
My
/etc/sysconfig/icinga2
looks like the following:A downgrade to Icinga 2.8.4 works without any problems on the same machines. Do I miss something?
Your Environment
icinga2 --version
):Copyright (c) 2012-2018 Icinga Development Team (https://www.icinga.com/) License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl2.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Application information: Installation root: /usr Sysconf directory: /etc Run directory: /var/run Local state directory: /var Package data directory: /usr/share/icinga2 State path: /var/lib/icinga2/icinga2.state Modified attributes path: /var/lib/icinga2/modified-attributes.conf Objects path: /var/cache/icinga2/icinga2.debug Vars path: /var/cache/icinga2/icinga2.vars PID path: /var/run/icinga2/icinga2.pid
System information: Platform: CentOS Platform version: 6.10 (Final) Kernel: Linux Kernel version: 2.6.32-754.2.1.el6.x86_64 Architecture: x86_64
Build information: Compiler: GNU 4.8.2 Build host: 5009d75245b1
Disabled features: command compatlog elasticsearch gelf graphite influxdb livestatus notification opentsdb perfdata statusdata syslog Enabled features: api checker debuglog mainlog
[2018-07-18 10:51:51 +0200] information/cli: Icinga application loader (version: r2.9.0-1) [2018-07-18 10:51:51 +0200] information/cli: Loading configuration file(s). [2018-07-18 10:51:51 +0200] information/ConfigItem: Committing config item(s). [2018-07-18 10:51:51 +0200] information/ApiListener: My API identity: demeter.willi-graf.local [2018-07-18 10:51:51 +0200] information/ConfigItem: Instantiated 2 FileLoggers. [2018-07-18 10:51:51 +0200] information/ConfigItem: Instantiated 1 IcingaApplication. [2018-07-18 10:51:51 +0200] information/ConfigItem: Instantiated 1 ApiListener. [2018-07-18 10:51:51 +0200] information/ConfigItem: Instantiated 1 CheckerComponent. [2018-07-18 10:51:51 +0200] information/ConfigItem: Instantiated 2 Zones. [2018-07-18 10:51:51 +0200] information/ConfigItem: Instantiated 2 Endpoints. [2018-07-18 10:51:51 +0200] information/ConfigItem: Instantiated 213 CheckCommands. [2018-07-18 10:51:51 +0200] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars' [2018-07-18 10:51:51 +0200] information/cli: Finished validating the configuration file(s).