[icinga-users] Problem with check that works on command line

Michael Friedrich michael.friedrich at netways.de
Thu Aug 14 10:31:59 CEST 2014


Am 14.08.2014 10:26, schrieb Thomas Herrmann:
> Hi,
>
> I have hundreds of checks that work flawlessly. But one check always fails, but when I cut the check from the debug.log and run it on the console, it works fine. The command in question is this:
>
> /usr/lib/nagios/plugins/check_ipmi_sensor -H vmwsrv1-ipmi.adwin.de -L user -P XXXXXXXXXXX -U nagios -x 123456789
> IPMI Status: OK | 'System Temp'=36.00 'CPU1 Vcore'=1.22 'CPU2 Vcore'=1.34 'CPU1 DIMM'=1.52 'CPU2 DIMM'=1.52 '+1.1 V'=1.10 '+1.8 V'=1.82 '+5 V'=5.02 '+12 V'=11.87 'VTT'=1.14 '+3.3 V'=3.22 '+3.3VSB'=3.34 'VBAT'=3.22 'FAN 1'=3481.00 'FAN 2'=2500.00 'FAN 3'=3481.00 'FAN 5'=3481.00 'FAN 6'=2304.00 'FAN 7'=3600.00 'FAN 8'=3481.00
> I was able to strace various subprocesses down to /usr/sbin/ipmi-sensors, which contains this when run from the command line:
>
> getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
> brk(0)                                  = 0x1fa5000
> brk(0x1fc6000)                          = 0x1fc6000
> getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
> setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
> access("/etc/freeipmi.conf", R_OK)      = -1 ENOENT (No such file or directory)
> close(4294967295)                       = -1 EBADF (Bad file descriptor)
> access("/etc/freeipmi//freeipmi.conf", R_OK) = 0
> open("/etc/freeipmi//freeipmi.conf", O_RDONLY) = 3
> read(3, "#", 1)                         = 1
> read(3, "#", 1)                         = 1
> read(3, "#", 1)                         = 1
>
> And it contains this when run form icinga2:
>
>
> getrlimit(RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}) = 0
> brk(0)                                  = 0x1ed7000
> brk(0x1ef8000)                          = 0x1ef8000
> getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
> setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
>
>
> Icinga2 is running with the option "--no-stack-rlimit". Any ideas what is causing this and how to fix this?
>
> root at icinga:~# dpkg -l *icinga* | grep ii
> ii  icinga-common                        1.11.5-1                      all          host and network monitoring system - support files
> ii  icinga-idoutils                      1.11.5-1                      amd64        host and network monitoring system - icinga-dataobjects support
> ii  icinga-web                           1.11.1-1                      all          host and network monitoring system - modern web interface
> ii  icinga2                              2.0.1-2                       amd64        host and network monitoring system
> ii  icinga2-bin                          2.0.1-2                       amd64        host and network monitoring system - daemon
> ii  icinga2-common                       2.0.1-2                       all          host and network monitoring system - common files
> ii  icinga2-doc                          2.0.1-2                       all          host and network monitoring system - documentation
> ii  icinga2-ido-mysql                    2.0.1-2                       amd64        host and network monitoring system - IDO for MySQL

Please upgrade to Icinga 2 2.0.2.
https://www.icinga.org/2014/08/07/icinga-2-2-0-2-released/

This has been reported and verified fixed in
https://dev.icinga.org/issues/6450

kind regards,
Michael


-- 
Michael Friedrich, DI (FH)
Application Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | Michael.Friedrich at netways.de

** Open Source Backup Conference 2014 - September - osbconf.org **
** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp **
** OSMC 2014 - November - netways.de/osmc **
** OpenNebula Conf 2014 - Dezember - opennebulaconf.com **


More information about the icinga-users mailing list