[Pkg-nagios-devel] Bug#859605: icinga2: Notifications that exceed 4223 bytes cause the plugin to stop working

Miriam mrico at binovo.es
Wed Apr 5 07:26:01 UTC 2017


Package: icinga2
Version: 2.6.0-2
Severity: normal

Dear Maintainer,

Analyzing the syslog file looking for possible errors, this error appeared:

critical/Application: Error: parse error: premature EOF
{"arguments":["/usr/local/lib/i
(right here) ------^
Additional information is available in '/var/log/icinga2/crash/report.1491373878.310513' 

Looking at the file that is indicated in the issue, this appeared:

Caught unhandled exception.
Current time: 2017-04-05 08:31:18 +0200

Application information:
  Application version: r2.6.0-1
  Installation root: /usr
  Sysconf directory: /etc
  Run directory: /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: /run/icinga2/icinga2.pid

System information:
  Platform: Debian GNU/Linux
  Platform version: 9 (stretch)
  Kernel: Linux
  Kernel version: 4.9.0-2-amd64
  Architecture: x86_64

Build information:
  Compiler: GNU 6.2.1
  Build host: amalia

Error: parse error: premature EOF
                                       {"arguments":["/usr/local/lib/i
                     (right here) ------^


        (0) libbase.so.2.6.0: <unknown function> (+0xde4c6) [0x7fe7576de4c6]
        (1) libbase.so.2.6.0: <unknown function> (+0xde567) [0x7fe7576de567]
        (2) libbase.so.2.6.0: icinga::JsonDecode(icinga::String const&) (+0x3cb) [0x7fe757678b2b]
        (3) libbase.so.2.6.0: <unknown function> (+0xb1a7d) [0x7fe7576b1a7d]
        (4) libbase.so.2.6.0: <unknown function> (+0xb3109) [0x7fe7576b3109]
        (5) libbase.so.2.6.0: icinga::Process::DoEvents() (+0x275) [0x7fe7576b3415]
        (6) libbase.so.2.6.0: icinga::Process::IOThreadProc(int) (+0x3cb) [0x7fe7576b4b0b]
        (7) libboost_thread.so.1.62.0: <unknown function> (+0x12116) [0x7fe75927a116]
        (8) libpthread.so.0: <unknown function> (+0x7424) [0x7fe75829c424]
        (9) libc.so.6: clone (+0x5f) [0x7fe7555389bf]


***
* This would indicate a runtime problem or configuration error. If you believe this is a bug in Icinga 2
* please submit a bug report at https://dev.icinga.org/ and include this stack trace as well as any other
* information that might be useful in order to reproduce this problem.
***
Failed to launch GDB: No such file or directory

I have been looking for this error on the Internet and in some forums I have found the possible cause of this 
failure. According to what they mention, the problem is in the output length of the plugin, crashing when the
length is greater than 4223 bytes.

It looks that this bug have been fixed for Ubuntu distributions, but not for Debian. 

Please, solve this issue.

Pages where found the information:
https://github.com/Icinga/icinga2/issues/4882
https://www.icinga.com/2017/01/31/icinga-2-6-1-release/
https://github.com/Icinga/icinga2/milestone/60?closed=1

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages icinga2 depends on:
ii  icinga2-bin     2.6.0-2
ii  icinga2-common  2.6.0-2

Versions of packages icinga2 recommends:
pn  icinga2-doc               <none>
pn  libreadline6              <none>
ii  monitoring-plugins-basic  2.2-3

Versions of packages icinga2 suggests:
pn  icinga2-studio  <none>
pn  vim-icinga2     <none>

-- no debconf information



More information about the Pkg-nagios-devel mailing list