4.6 KiB
Upgrading Icinga 2
Upgrading Icinga 2 is usually quite straightforward. Ordinarily the only manual steps involved are scheme updates for the IDO database.
Upgrading to v2.8
Changed Certificate Paths
The default certificate path was changed from /etc/icinga2/pki
to
/var/lib/icinga2/certs
.
This applies to Windows clients in the same way: %ProgramData%\etc\icinga2\pki
was moved to %ProgramData%
\var\lib\icinga2\certs`.
The setup CLI commands and the default ApiListener configuration have been adjusted to these paths too.
Removed Bottom Up Client Mode
This client mode was deprecated in 2.6 and was removed in 2.8.
The node CLI command does not provide list
or update-config
anymore.
The clients don't need to have a local conf.d
directory included.
The setup wizards for Linux and Windows attempt to disable this by default.
Icinga 2 continues to run with the generated and imported configuration. You are advised to migrate any existing configuration to the "top down" mode with the help of the Icinga Director or config management tools such as Puppet, Ansible, etc.
Removed Classic UI Config Package
The config meta package classicui-config
and the configuration files
have been removed. You need to manually configure
this legacy interface. Create a backup of the configuration
before upgrading.
Upgrading to v2.7
v2.7.0 provided new notification scripts and commands. Please ensure to update your configuration accordingly. An advisory has been published here.
In case are having troubles with OpenSSL 1.1.0 and the public CA certificates, please read this advisory and check the troubleshooting chapter.
If Icinga 2 fails to start with an empty reference to $ICINGA2_CACHE_DIR
ensure to set it inside /etc/sysconfig/icinga2
(RHEL) or /etc/default/icinga2
(Debian).
RPM packages will put a file called /etc/sysconfig/icinga2.rpmnew
if you have modified the original file.
Example on CentOS 7:
vim /etc/sysconfig/icinga2
ICINGA2_CACHE_DIR=/var/cache/icinga2
systemctl restart icinga2
Upgrading the MySQL database
If you're upgrading an existing Icinga 2 instance, you should check the
/usr/share/icinga2-ido-mysql/schema/upgrade
directory for an incremental schema upgrade file.
Note
If there isn't an upgrade file for your current version available, there's nothing to do.
Apply all database schema upgrade files incrementally.
# mysql -u root -p icinga < /usr/share/icinga2-ido-mysql/schema/upgrade/<version>.sql
The Icinga 2 DB IDO module will check for the required database schema version on startup and generate an error message if not satisfied.
Example: You are upgrading Icinga 2 from version 2.0.2
to 2.3.0
. Look into
the upgrade directory:
$ ls /usr/share/icinga2-ido-mysql/schema/upgrade/
2.0.2.sql 2.1.0.sql 2.2.0.sql 2.3.0.sql
There are two new upgrade files called 2.1.0.sql
, 2.2.0.sql
and 2.3.0.sql
which must be applied incrementally to your IDO database.
Upgrading the PostgreSQL database
If you're updating an existing Icinga 2 instance, you should check the
/usr/share/icinga2-ido-pgsql/schema/upgrade
directory for an incremental schema upgrade file.
Note
If there isn't an upgrade file for your current version available, there's nothing to do.
Apply all database schema upgrade files incrementally.
# export PGPASSWORD=icinga
# psql -U icinga -d icinga < /usr/share/icinga2-ido-pgsql/schema/upgrade/<version>.sql
The Icinga 2 DB IDO module will check for the required database schema version on startup and generate an error message if not satisfied.
Example: You are upgrading Icinga 2 from version 2.0.2
to 2.3.0
. Look into
the upgrade directory:
$ ls /usr/share/icinga2-ido-pgsql/schema/upgrade/
2.0.2.sql 2.1.0.sql 2.2.0.sql 2.3.0.sql
There are two new upgrade files called 2.1.0.sql
, 2.2.0.sql
and 2.3.0.sql
which must be applied incrementally to your IDO database.