[Pkg-nagios-devel] Bug#1076898: nagios-plugin-check-multi: FTBFS: Failed test 'output correct'

Santiago Vila sanvila at debian.org
Wed Jul 24 11:47:43 BST 2024


Package: src:nagios-plugin-check-multi
Version: 0.26-5
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- \
	--libexecdir=/usr/lib/nagios/plugins \
	--localstatedir=/var/lib/icinga \
	--with-image_path=/icinga/images \
	--with-objects_cache=/var/cache/icinga/objects.cache \
	--with-plugin_path=/usr/lib/nagios/plugins \
	--with-status_dat=/var/lib/icinga/status.dat
	./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --libexecdir=/usr/lib/nagios/plugins --localstatedir=/var/lib/icinga --with-image_path=/icinga/images --with-objects_cache=/var/cache/icinga/objects.cache --with-plugin_path=/usr/lib/nagios/plugins --with-status_dat=/var/lib/icinga/status.dat
checking whether make sets $(MAKE)... yes
checking for chmod... /usr/bin/chmod
checking for cp... /usr/bin/cp
checking for ethtool... no
checking for gunzip... /usr/bin/gunzip
checking for id... /usr/bin/id
checking for a BSD-compatible install... /usr/bin/install -c
checking for mailx... no
checking for perl... /usr/bin/perl
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating subst
config.status: creating Makefile
config.status: creating contrib/Makefile
config.status: creating plugins/Makefile
config.status: creating plugins/t/Makefile
config.status: creating sample_config/Makefile

  -------------------------------------------------------------------
  --- check_multi configure summary (SVN $)
  -------------------------------------------------------------------

  Release date   $
  Author         $
  Configure args : '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--libexecdir=/usr/lib/nagios/plugins' '--localstatedir=/var/lib/icinga' '--with-image_path=/icinga/images' '--with-objects_cache=/var/cache/icinga/objects.cache' '--with-plugin_path=/usr/lib/nagios/plugins' '--with-status_dat=/var/lib/icinga/status.dat' 'build_alias=x86_64-linux-gnu'

  --- Directories
  -------------------------------------------------------------------
  Install ${prefix}         /usr
  Exec ${exec_prefix}       /usr
  Libexec directory         /usr/lib/nagios/plugins
  CGI directory (sbin)      ${exec_prefix}/sbin
  HTML directory (data)     ${prefix}/share
  Contrib directory
  Temporary directory       /tmp/check_multi
  Temp dir permissions      41777

  --- System options
  -------------------------------------------------------------------
  Parent timeout (BIG T)    60
  Child timeout (small t)   11
  Nagios name               nagios
  RC if no checks defined   3
  RC if caught a signal     3
  default cmdfile extension cmd
  ignore missing cmd file?  0
  Client perl path          /usr/bin/perl

  --- Output options
  -------------------------------------------------------------------
  Name / Label              ''
  Report option default     13
  HTML target frame         _self
  Child checks indented?    1
  Ascii indentation char    ' '
  Collapse tree?            1
  Collapse plus style       style='color:#4444FF;line-height:0.1em;font-size:1.5em;cursor:crosshair'
  Extinfo in status.cgi?    0
  Verbosity level default   0
  pnp version               0.6
  PNP URL                   /pnp4nagios
  PNP chart with mouseover  0

  --- Links
  -------------------------------------------------------------------
  action URL               ''
  notes URL                ''
  documentation URL        ''

  --- Advanced Options
  -------------------------------------------------------------------
  illegal chars in cmdfile \r
  check_multi persistent?  0
  cmdfile update interval  86400
  Feed_passive autocreate  1
  Feed_passive directory   /etc/check_multi/feed_passive


*** Next step:  type 'make all'. ***

make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make all
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make[3]: Entering directory '/<<PKGBUILDDIR>>/plugins'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/plugins'
make[3]: Entering directory '/<<PKGBUILDDIR>>/contrib'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/contrib'

  Make process finished

  *** Next step:  make test ***

             or:  make test-all           (for all tests)
             or:  make test-checkresults
             or:  make test-extreme       (random tag and macro values)
             or:  make test-feeds-passive (requires Perl module XML::Simple)
             or:  make test-livestatus    (requires livestatus module and Perl Module Monitoring::Livestatus)
             or:  make test-macros
             or:  make test-perfdata
             or:  make test-statusdat

  *** and then:   make install ***

      - This installs the check_multi plugin

make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_test
	make -j2 test "TESTSUITEFLAGS=-j2 --verbose" VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make[2]: Entering directory '/<<PKGBUILDDIR>>/plugins/t'
/usr/bin/perl -MExtUtils::Command::MM -e "test_harness(1)" \
	10_check_multi.t \
	20_check_multi_macros.t \
	30_check_multi_perfdata.t
10_check_multi.t ...........
1..94
--------------------------------------------------------------------------------
Version: check_multi_0.26_506_2011-11-18-20:28
configure  '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=/usr/include' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=/usr/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--libexecdir=/usr/lib/nagios/plugins' '--localstatedir=/var/lib/icinga' '--with-image_path=/icinga/images' '--with-objects_cache=/var/cache/icinga/objects.cache' '--with-plugin_path=/usr/lib/nagios/plugins' '--with-status_dat=/var/lib/icinga/status.dat' 'build_alias=x86_64-linux-gnu'
--------------------------------------------------------------------------------
ok 1 - check_multi version - RC3
ok 2 - output correct
ok 3 - environment variables assignment via command - RC0
ok 4 - output correct
ok 5 - environment variables assignment via eeval - RC0
ok 6 - output correct
ok 7 - valid name option - RC0
ok 8 - output correct
ok 9 - invalid name option - RC3
ok 10 - output correct
ok 11 - default report option - RC0
ok 12 - output correct
ok 13 - command with backslashed continuation line - RC0
ok 14 - output correct
ok 15 - command with continuation line without backslash - RC0
ok 16 - output correct
ok 17 - command with (empty) continuation line - RC0
ok 18 - output correct
ok 19 - command with comment and continuation line - RC0
ok 20 - output correct
ok 21 - command with comment with trailing backslash and continuation lines - RC0
ok 22 - output correct
ok 23 - report option 0 (all states shown) - RC0
ok 24 - output correct
ok 25 - report option 1 (non-OK service names in state list) - RC1
ok 26 - output correct
ok 27 - report option 2 (HTML) - RC0
ok 28 - output correct
ok 29 - report option 4 [eval error message] - RC3
ok 30 - output correct
ok 31 - report option 16 (state in output and in long plugin output) - RC0
ok 32 - output correct
ok 33 - report option 16 (state in output and in long plugin output / HTML) - RC0
ok 34 - output correct
ok 35 - report option 0 (extra warning state is shown) - RC1
ok 36 - output correct
ok 37 - report option 64 (state in front of output) - RC0
ok 38 - output correct
ok 39 - report option 128 (pnp4nagios link) - RC0
ok 40 - output correct
ok 41 - report option 128 (pnp4nagios link) with env var NAGIOS_HOSTNAME - RC0
ok 42 - output correct
ok 43 - report option 256 (XML output) - RC0
ok 44 - output correct
ok 45 - report option 16384 - encode commands - RC0
ok 46 - output correct
ok 47 - report option 32768 - hide OK states - RC1
ok 48 - output correct
ok 49 - report option 32768+2 - hide OK states in HTML mode - RC1
ok 50 - output correct
ok 51 - decode encoded command - RC0
ok 52 - output correct
ok 53 - recursive (with inherited report option) - RC0
ok 54 - output correct
ok 55 - recursive (with inherited report option and mask) - RC0
ok 56 - output correct
ok 57 - recursive (check_multi calls check_multi) - RC0
ok 58 - output correct
ok 59 - overloading commands - RC0
ok 60 - output correct
ok 61 - testing signal handler - RC0
ok 62 - output correct
ok 63 - custom output for header line - RC0
ok 64 - output correct
ok 65 - changes child check attributes - RC0
ok 66 - output correct
ok 67 - child check attributes in correct (severity) order - RC1
ok 68 - output correct
ok 69 - child check attributes in correct (severity) order with RC - RC2
ok 70 - output correct
ok 71 - changes child check attributes (child check not found) - RC0
ok 72 - output correct
ok 73 - instant execution of child check (feeded command reschedule) - RC1
ok 74 - output correct
ok 75 - instant execution of child check, wrong tag - RC3
ok 76 - output correct
ok 77 - changes global variables with attributes - RC0
ok 78 - output correct
ok 79 - cumulates data like top - RC0
ok 80 - output correct
ok 81 - cumulates data like top - RC0
ok 82 - output correct
ok 83 - illegal characters are dropped - RC0
ok 84 - output correct
ok 85 - illegal character variable is empty - RC0
ok 86 - output correct
ok 87 - option s requires an argument - RC3
ok 88 - output correct
ok 89 - timeout check: global timeout shorter than local timeout - RC3
ok 90 - output correct
ok 91 - timeout check: child one killed, child two cancelled - RC3
ok 92 - output correct
ok 93 - numerical tags are invalid - RC3
ok 94 - output correct
ok
20_check_multi_macros.t ....
1..20
ok 1 - environment variables assignment via command - RC0
ok 2 - output correct
ok 3 - environment variables assignment via eeval - RC0
ok 4 - output correct
ok 5 - reading custom variable - RC0
ok 6 - output correct
ok 7 - non existing macro - complaining - RC0
ok 8 - output correct
ok 9 - non existing macro - complaining - RC0
ok 10 - output correct
ok 11 - reading custom variable - RC0
ok 12 - output correct
ok 13 - object cache macro check - non existing objects.cache file - RC3
ok 14 - output correct
ok 15 - object cache macro check - invalid object name - RC3
ok 16 - output correct
ok 17 - object cache macro check - hostgroup and services - RC0
ok 18 - output correct
ok 19 - object cache macro check - nested macros - RC0
ok 20 - output correct
ok

#   Failed test 'output correct'
#   at 30_check_multi_perfdata.t line 374.
#                   'perl: warning: Setting locale failed.
# perl: warning: Please check that your locale settings:
# 	LANGUAGE = (unset),
# 	LC_ALL = (unset),
# 	LC_CTYPE = "C.UTF-8",
# 	LC_COLLATE = "C.UTF-8",
# 	LANG = "de_DE"
#     are supported and installed on your system.
# perl: warning: Falling back to the standard locale ("C").
# OK - 1 plugins checked, 1 ok
# [ 1] eins eins|check_multi::check_multi::plugins=1 time=0.002283 eins::echo::eins=1,1 '
#     doesn't match '/^OK - 1 plugins checked, 1 ok\n\[ 1\] eins eins\|check_multi::check_multi::plugins=1 time=\d+\.\d+ eins::echo::eins=1\,1 $/'
# Looks like you failed 1 test of 40.
30_check_multi_perfdata.t ..
1..40
ok 1 - report option 8 (check_multi perfdata) - RC0
ok 2 - output correct
ok 3 - perfdata plugin specified by command [ tag::plugin ] - RC0
ok 4 - output correct
ok 5 - perfdata plugin specified by eeval [ tag::plugin ] - RC0
ok 6 - output correct
ok 7 - perfdata passed through in plugin output - RC0
ok 8 - output correct
ok 9 - report option 8 (check_multi perfdata) - RC0
ok 10 - output correct
ok 11 - report option 32 (classical perfdata) - RC0
ok 12 - output correct
ok 13 - report option 143 (HTML performance output with PNP 0.4 link) - RC0
ok 14 - output correct
ok 15 - report option 143 (HTML performance output with PNP 0.6 link) - RC0
ok 16 - output correct
ok 17 - discards invalid perfdata - RC0
ok 18 - output correct
ok 19 - discards invalid perfdata with duplicate pipe character - RC0
ok 20 - output correct
ok 21 - perfdata with warning / critical number - RC0
ok 22 - output correct
ok 23 - discards perfdata with invalid UOM 'MB/s' - RC0
ok 24 - output correct
ok 25 - perfdata with allowed UOM 'MB' - RC0
ok 26 - output correct
ok 27 - perfdata with allowed UOM '%' - RC0
ok 28 - output correct
ok 29 - perfdata with warning / critical range 1: - RC0
ok 30 - output correct
ok 31 - perfdata with warning / critical range ~:1 - RC0
ok 32 - output correct
ok 33 - perfdata with warning / critical range @:1 - RC0
ok 34 - output correct
ok 35 - perfdata with warning / critical range 1:10;@10:20 - RC0
ok 36 - output correct
ok 37 - accepting loose perfdata - RC0
not ok 38 - output correct
ok 39 - accepting loose perfdata with trailing semicolon - RC0
ok 40 - output correct
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/40 subtests

Test Summary Report
-------------------
30_check_multi_perfdata.t (Wstat: 256 (exited 1) Tests: 40 Failed: 1)
   Failed test:  38
   Non-zero exit status: 1
Files=3, Tests=154,  6 wallclock secs ( 0.03 usr  0.00 sys +  2.97 cusr  0.76 csys =  3.76 CPU)
Result: FAIL
Failed 1/3 test programs. 1/154 subtests failed.
make[2]: *** [Makefile:33: test] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/plugins/t'
make[1]: *** [Makefile:96: test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j2 test "TESTSUITEFLAGS=-j2 --verbose" VERBOSE=1 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202407/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Pkg-nagios-devel mailing list