Icingaを1.12.2から1.13.2にアップデートしたときのメモ。
現在のバーションを確認。
$ icinga --version
Icinga 1.12.2
Copyright (c) 2009-2015 Icinga Development Team (http://www.icinga.org)
Copyright (c) 2009-2013 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 02-14-2015
License: GPL
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
yumでインストールしているのでyum update
する。
$ sudo yum update icinga icinga-gui*
$ sudo service icinga restart
ログを見るとエラーになっている。
/var/log/icinga/icinga.log
[1434038216] Icinga 1.13.2 starting... (PID=1692)
[1434038216] Local time is Fri Jun 12 00:56:56 JST 2015
[1434038216] LOG VERSION: 2.0
[1434038216] idomod: IDOMOD 1.13.2 (04-08-2015) Copyright(c) 2005-2008 Ethan Galstad, Copyright(c) 2009-2015 Icinga Development Team (https://www.icinga.org)
[1434038216] idomod: Could not open data sink! I'll keep trying, but some output may get lost. Is ido2db running and processing data?
[1434038216] Event broker module 'IDOMOD' version '1.13.2' from '/usr/lib64/icinga/idomod.so' initialized successfully.
[1434038216] Finished daemonizing... (New PID=1693)
アップデートしたことによってRDBMS(今回はMySQL)のスキーマも変更になったのが原因みたい。
したがってスキーマの変更を行う。
$ mysql -u root -p -h localhost icinga < /usr/share/doc/icinga-idoutils-libdbi-mysql-1.13.2/db/mysql/upgrade/mysql-upgrade-1.13.0.sql
$ sudo service ido2db restart
Stopping Ido2db: done.
Starting Ido2db: done.
$ sudo service icinga restart
Running configuration check...OK
Stopping Icinga: Waiting for icinga to exit ..Stopping icinga done.
Starting icinga: Starting icinga done.
/var/log/icinga/icinga.log
[1434596529] Warning: config setting 'event_profiling_enabled' unknown. Remove it from your configuration!
[1434596529] Icinga 1.13.2 starting... (PID=25008)
[1434596529] Local time is Thu Jun 18 12:02:09 JST 2015
[1434596529] LOG VERSION: 2.0
[1434596529] idomod: IDOMOD 1.13.2 (04-08-2015) Copyright(c) 2005-2008 Ethan Galstad, Copyright(c) 2009-2015 Icinga Development Team (https://www.icinga.org)
[1434596529] idomod: Successfully connected to data sink. 10 queued items to flush.
[1434596529] idomod: Successfully flushed 10 queued items to data sink.
[1434596529] Event broker module 'IDOMOD' version '1.13.2' from '/usr/lib64/icinga/idomod.so' initialized successfully.
[1434596529] Finished daemonizing... (New PID=25013)
[1434596529] Event loop started...