[icinga-users] Exceptions after installing Icinga2 and Icinga-Web

Daniel Guillermo Bareiro daniel-listas at gmx.net
Wed Aug 20 13:41:59 CEST 2014


Hi all,

This is my first message to the list.

Sorry for the lack of subjet.

I'm using Nagios since 2008 or so, and wanted to give an opportunity to Icinga so I decided to try it.

For this I am doing some testing on a virtual machine with Debian GNU/Linux Wheezy. I decided to install packages using the Debian Backports repository, since I saw there the version of the Icinga core is slightly newer compared to the version published by Icinga repositories (2.0.2 vs 2.0.1). The exact versions of the packages are the following:

Icinga core: 2.0.2-1~bpo70+1
Icinga web: 1.11.1-1~bpo70+1

The installation procedure which I used was mentioned by someone in this mailing list [1].

But since yesterday I've been struggling with packages installation in Debian. Basically, it does not work. The interface displays a message saying "no data" (not even it shows localhost). The interface constantly is reloaded ("Icinga is currently reloading" - No valid status data is available and interface does not respond as usual) and several popups are displayed indicating that there were several exceptions:

Request failed
The server encountered an error:
Internal Exception, check your logs!

I wonder if this may be a bug in the Debian package which has not been informed, to open a bug report to fix it and we all are benefited.

I've been reviewing the logs and this is what I found on them:

/var/log/icinga2/icinga2.log:

[2014-08-20 07:40:18 -0300] warning/PluginUtility: Error parsing performance data 'time=0,028517s;;;0,000000;10,000000': Invalid performance data unit: ,028517s
[2014-08-20 07:40:51 -0300] warning/PluginUtility: Error parsing performance data 'time=0,001026s;;;0,000000 size=453B;;;0': Invalid performance data unit: ,001026s
[2014-08-20 07:41:18 -0300] warning/PluginUtility: Error parsing performance data 'time=0,005063s;;;0,000000;10,000000': Invalid performance data unit: ,005063s
[2014-08-20 07:41:24 -0300] information/DynamicObject: Dumping program state to file '/var/lib/icinga2/icinga2.state'
[2014-08-20 07:41:51 -0300] warning/PluginUtility: Error parsing performance data 'time=0,000651s;;;0,000000 size=453B;;;0': Invalid performance data unit: ,000651s
[2014-08-20 07:42:18 -0300] warning/PluginUtility: Error parsing performance data 'time=0,008837s;;;0,000000;10,000000': Invalid performance data unit: ,008837s
[2014-08-20 07:42:51 -0300] warning/PluginUtility: Error parsing performance data 'time=0,000737s;;;0,000000 size=453B;;;0': Invalid performance data unit: ,000737s
[2014-08-20 07:43:18 -0300] warning/PluginUtility: Error parsing performance data 'time=0,008032s;;;0,000000;10,000000': Invalid performance data unit: ,008032s
[2014-08-20 07:43:51 -0300] warning/PluginUtility: Error parsing performance data 'time=0,000830s;;;0,000000 size=453B;;;0': Invalid performance data unit: ,000830s
[2014-08-20 07:44:18 -0300] warning/PluginUtility: Error parsing performance data 'time=0,007663s;;;0,000000;10,000000': Invalid performance data unit: ,007663s
[2014-08-20 07:44:51 -0300] warning/PluginUtility: Error parsing performance data 'time=0,000643s;;;0,000000 size=453B;;;0': Invalid performance data unit: ,000643s

/var/log/icinga-web/debug-2014-08-20.log:

[Wed Aug 20 10:41:18 2014] [fatal] Uncaught AppKitPHPError: PHP Error Argument 1 passed to AppKitExtJsonDocument::hasFieldBulk() must be of the type array, null given, called in /usr/share/icinga-web/app/modules/Cronks/models/Provider/SystemPerformanceModel.class.php on line 131 and defined (/usr/share/icinga-web/app/modules/AppKit/lib/json/AppKitExtJsonDocument.class.php:180) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:52)
[Wed Aug 20 10:41:18 2014] [fatal] Uncaught AppKitPHPError: PHP Error array_keys() expects parameter 1 to be array, null given (/usr/share/icinga-web/app/modules/Cronks/models/Provider/StatusSummaryModel.class.php:264) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:52)
[Wed Aug 20 10:42:19 2014] [fatal] Uncaught AppKitPHPError: PHP Error array_keys() expects parameter 1 to be array, null given (/usr/share/icinga-web/app/modules/Cronks/models/Provider/StatusSummaryModel.class.php:264) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:52)
[Wed Aug 20 10:42:19 2014] [fatal] Uncaught AppKitPHPError: PHP Error Argument 1 passed to AppKitExtJsonDocument::hasFieldBulk() must be of the type array, null given, called in /usr/share/icinga-web/app/modules/Cronks/models/Provider/SystemPerformanceModel.class.php on line 131 and defined (/usr/share/icinga-web/app/modules/AppKit/lib/json/AppKitExtJsonDocument.class.php:180) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:52)
[Wed Aug 20 10:43:19 2014] [fatal] Uncaught AppKitPHPError: PHP Error array_keys() expects parameter 1 to be array, null given (/usr/share/icinga-web/app/modules/Cronks/models/Provider/StatusSummaryModel.class.php:264) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:52)
[Wed Aug 20 10:43:19 2014] [fatal] Uncaught AppKitPHPError: PHP Error Argument 1 passed to AppKitExtJsonDocument::hasFieldBulk() must be of the type array, null given, called in /usr/share/icinga-web/app/modules/Cronks/models/Provider/SystemPerformanceModel.class.php on line 131 and defined (/usr/share/icinga-web/app/modules/AppKit/lib/json/AppKitExtJsonDocument.class.php:180) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:52)
[Wed Aug 20 10:44:19 2014] [fatal] Uncaught AppKitPHPError: PHP Error Argument 1 passed to AppKitExtJsonDocument::hasFieldBulk() must be of the type array, null given, called in /usr/share/icinga-web/app/modules/Cronks/models/Provider/SystemPerformanceModel.class.php on line 131 and defined (/usr/share/icinga-web/app/modules/AppKit/lib/json/AppKitExtJsonDocument.class.php:180) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:52)
[Wed Aug 20 10:44:19 2014] [fatal] Uncaught AppKitPHPError: PHP Error array_keys() expects parameter 1 to be array, null given (/usr/share/icinga-web/app/modules/Cronks/models/Provider/StatusSummaryModel.class.php:264) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:52)
[Wed Aug 20 10:45:20 2014] [fatal] Uncaught AppKitPHPError: PHP Error Argument 1 passed to AppKitExtJsonDocument::hasFieldBulk() must be of the type array, null given, called in /usr/share/icinga-web/app/modules/Cronks/models/Provider/SystemPerformanceModel.class.php on line 131 and defined (/usr/share/icinga-web/app/modules/AppKit/lib/json/AppKitExtJsonDocument.class.php:180) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:52)
[Wed Aug 20 10:45:20 2014] [fatal] Uncaught AppKitPHPError: PHP Error array_keys() expects parameter 1 to be array, null given (/usr/share/icinga-web/app/modules/Cronks/models/Provider/StatusSummaryModel.class.php:264) (/usr/share/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:52)

Both seem to be recurring errors. I think that the exception for popups must be linked to records in the /var/log/icinga-web/debug-2014-08-20.log, although I'm not sure if this will have any relation on the errors in /var/log/icinga2/icinga2.log.

On the other hand, I have observed that "icinga" (created manually) and "icinga2idomysql" (created by the packages) databases seem to have exactly the same 59 tables. That's right? Although only the second database seems to contain information for hosts and services as I've seen in the icinga_hosts and icinga_services tables.

I was reviewing the /usr/share/icinga-web/app/config/databases.xml file. Here I've tried changing the following:

<ae:parameter name="dsn">mysql://icinga:icinga@localhost:3306/icinga</ae:parameter>

to

<ae:parameter name="dsn">mysql://icinga2-ido-mysq:password@localhost:3306/icinga2idomysql</ae:parameter>

and:

<ae:parameter name="dsn">mysql://icinga_web:icinga_web@localhost:3306/icinga_web</ae:parameter>

to

<ae:parameter name="dsn">mysql://icinga_web:password@localhost:3306/icinga_web</ae:parameter>


But I keep getting exceptions.


I hope you can guide me with this problem.

Thanks in advance.
 
Best regards,
Daniel

[1] https://lists.icinga.org/pipermail/icinga-users/2014-March/008098.html


More information about the icinga-users mailing list