[naemon-dev] make check fail
Ismael Bouya
ismael at bouya.org
Mon Jul 2 23:53:14 CEST 2018
Hi everyone,
I just tried to build the last naemon version (1.0.7) from source on my
system (Archlinux), and the compilation went well, but the tests (make
check) failed, so I followed the request to send the report to this
list.
I compiled with the following steps:
---------
./configure --prefix=/usr \
--bindir=/usr/bin \
--datadir="/usr/share/naemon" \
--libdir="/usr/lib/naemon" \
--localstatedir="/var/lib/naemon" \
--sysconfdir="/etc/naemon" \
--with-pkgconfdir="/etc/naemon" \
--mandir="/usr/share/man" \
--with-pluginsdir="/usr/lib/monitoring-plugins" \
--with-tempdir="/var/cache/naemon" \
--with-checkresultdir="/var/cache/naemon/checkresults" \
--with-logdir="/var/log/naemon" \
--with-initdir="/etc/init.d" \
--with-logrotatedir="/etc/logrotate.d" \
--with-naemon-user="naemon" \
--with-naemon-group="naemon" \
--with-lockfile="/run/naemon.pid"
make
make check
----------
and one of the tests failed (see attached logs)
Please let me know if you need more information
Kind regards,
--
Ismael
-------------- next part --------------
====================================
naemon 1.0.7: ./test-suite.log
====================================
# TOTAL: 8
# PASS: 7
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: t-tap/test_timeperiods
============================
1..121
Reading configuration data...
Warning: enable_environment_macros is deprecated and will be removed.
Warning: use_large_installation_tweaks is deprecated and will be removed. Naemon should always be fast
Warning: nagios_group is deprecated and will be removed. Naemon is compiled to be run as naemon:naemon
Warning: nagios_user is deprecated and will be removed. Naemon is compiled to be run as naemon:naemon
ok 1 - Read main configuration file okay - if fails, use nagios -v to check
ok 2 - Read all object config files
ok 3 - Preflight check okay
ok 4 - Expected 0, got 0 for Sat Jul 31 12:33:20 2010 in 'myexclude' (TZ=UTC)
ok 5 - Expected 0, got 0 for Thu Jan 1 00:00:00 1970 in 'even-hours-until-0500' (TZ=UTC)
ok 6 - Expected 0, got 0 for Thu Jan 1 00:30:00 1970 in 'even-hours-until-0500' (TZ=UTC)
ok 7 - Expected -2, got -2 for Thu Jan 1 01:00:00 1970 in 'even-hours-until-0500' (TZ=UTC)
ok 8 - Expected -2, got -2 for Thu Jan 1 01:30:00 1970 in 'even-hours-until-0500' (TZ=UTC)
ok 9 - Expected 0, got 0 for Thu Jan 1 02:00:00 1970 in 'even-hours-until-0500' (TZ=UTC)
ok 10 - Expected 0, got 0 for Thu Jan 1 02:30:00 1970 in 'even-hours-until-0500' (TZ=UTC)
ok 11 - Expected -2, got -2 for Thu Jan 1 03:00:00 1970 in 'even-hours-until-0500' (TZ=UTC)
ok 12 - Expected 0, got 0 for Thu Jan 1 04:00:00 1970 in 'even-hours-until-0500' (TZ=UTC)
ok 13 - Expected 0, got 0 for Thu Jan 1 04:59:59 1970 in 'even-hours-until-0500' (TZ=UTC)
ok 14 - GNV: Tested 1 (Thu Jan 1 00:00:01 1970) against 'even-hours-until-0500'. Got 1 (Thu Jan 1 00:00:01 1970). Expected 1 (Thu Jan 1 00:00:01 1970)
ok 15 - GNV: Tested 3600 (Thu Jan 1 01:00:00 1970) against 'even-hours-until-0500'. Got 7200 (Thu Jan 1 02:00:00 1970). Expected 7200 (Thu Jan 1 02:00:00 1970)
ok 16 - GNV: Tested 10800 (Thu Jan 1 03:00:00 1970) against 'even-hours-until-0500'. Got 14400 (Thu Jan 1 04:00:00 1970). Expected 14400 (Thu Jan 1 04:00:00 1970)
ok 17 - GNV: Tested 17999 (Thu Jan 1 04:59:59 1970) against 'even-hours-until-0500'. Got 17999 (Thu Jan 1 04:59:59 1970). Expected 17999 (Thu Jan 1 04:59:59 1970)
ok 18 - GNV: Tested 18000 (Thu Jan 1 05:00:00 1970) against 'even-hours-until-0500'. Got 86400 (Fri Jan 2 00:00:00 1970). Expected 86400 (Fri Jan 2 00:00:00 1970)
ok 19 - GNI: Tested 1 (Thu Jan 1 00:00:01 1970) against 'even-hours-until-0500'. Got 3600 (Thu Jan 1 01:00:00 1970). Expected 3600 (Thu Jan 1 01:00:00 1970)
ok 20 - GNI: Tested 7200 (Thu Jan 1 02:00:00 1970) against 'even-hours-until-0500'. Got 10800 (Thu Jan 1 03:00:00 1970). Expected 10800 (Thu Jan 1 03:00:00 1970)
ok 21 - GNI: Tested 10800 (Thu Jan 1 03:00:00 1970) against 'even-hours-until-0500'. Got 10800 (Thu Jan 1 03:00:00 1970). Expected 10800 (Thu Jan 1 03:00:00 1970)
ok 22 - GNI: Tested 14400 (Thu Jan 1 04:00:00 1970) against 'even-hours-until-0500'. Got 18000 (Thu Jan 1 05:00:00 1970). Expected 18000 (Thu Jan 1 05:00:00 1970)
ok 23 - GNI: Tested 18000 (Thu Jan 1 05:00:00 1970) against 'even-hours-until-0500'. Got 18000 (Thu Jan 1 05:00:00 1970). Expected 18000 (Thu Jan 1 05:00:00 1970)
ok 24 - Expected -2, got -2 for Thu Jan 1 00:00:00 1970 in 'exclude-even-hours-until-0500' (TZ=UTC)
ok 25 - Expected -2, got -2 for Thu Jan 1 00:30:00 1970 in 'exclude-even-hours-until-0500' (TZ=UTC)
ok 26 - Expected 0, got 0 for Thu Jan 1 01:00:00 1970 in 'exclude-even-hours-until-0500' (TZ=UTC)
ok 27 - Expected 0, got 0 for Thu Jan 1 01:30:00 1970 in 'exclude-even-hours-until-0500' (TZ=UTC)
ok 28 - Expected -2, got -2 for Thu Jan 1 02:00:00 1970 in 'exclude-even-hours-until-0500' (TZ=UTC)
ok 29 - Expected -2, got -2 for Thu Jan 1 02:30:00 1970 in 'exclude-even-hours-until-0500' (TZ=UTC)
ok 30 - Expected 0, got 0 for Thu Jan 1 03:00:00 1970 in 'exclude-even-hours-until-0500' (TZ=UTC)
ok 31 - Expected -2, got -2 for Thu Jan 1 04:00:00 1970 in 'exclude-even-hours-until-0500' (TZ=UTC)
ok 32 - Expected -2, got -2 for Thu Jan 1 04:59:59 1970 in 'exclude-even-hours-until-0500' (TZ=UTC)
ok 33 - Expected 0, got 0 for Thu Jan 1 05:00:00 1970 in 'exclude-even-hours-until-0500' (TZ=UTC)
ok 34 - GNI: Tested 1 (Thu Jan 1 00:00:01 1970) against 'exclude-even-hours-until-0500'. Got 1 (Thu Jan 1 00:00:01 1970). Expected 1 (Thu Jan 1 00:00:01 1970)
ok 35 - GNI: Tested 1800 (Thu Jan 1 00:30:00 1970) against 'exclude-even-hours-until-0500'. Got 1800 (Thu Jan 1 00:30:00 1970). Expected 1800 (Thu Jan 1 00:30:00 1970)
ok 36 - GNI: Tested 10800 (Thu Jan 1 03:00:00 1970) against 'exclude-even-hours-until-0500'. Got 14400 (Thu Jan 1 04:00:00 1970). Expected 14400 (Thu Jan 1 04:00:00 1970)
ok 37 - GNI: Tested 17999 (Thu Jan 1 04:59:59 1970) against 'exclude-even-hours-until-0500'. Got 17999 (Thu Jan 1 04:59:59 1970). Expected 17999 (Thu Jan 1 04:59:59 1970)
ok 38 - GNI: Tested 18000 (Thu Jan 1 05:00:00 1970) against 'exclude-even-hours-until-0500'. Got 86400 (Fri Jan 2 00:00:00 1970). Expected 86400 (Fri Jan 2 00:00:00 1970)
ok 39 - GNV: Tested 1 (Thu Jan 1 00:00:01 1970) against 'exclude-even-hours-until-0500'. Got 3600 (Thu Jan 1 01:00:00 1970). Expected 3600 (Thu Jan 1 01:00:00 1970)
ok 40 - GNV: Tested 7200 (Thu Jan 1 02:00:00 1970) against 'exclude-even-hours-until-0500'. Got 10800 (Thu Jan 1 03:00:00 1970). Expected 10800 (Thu Jan 1 03:00:00 1970)
ok 41 - GNV: Tested 10800 (Thu Jan 1 03:00:00 1970) against 'exclude-even-hours-until-0500'. Got 10800 (Thu Jan 1 03:00:00 1970). Expected 10800 (Thu Jan 1 03:00:00 1970)
ok 42 - GNV: Tested 14400 (Thu Jan 1 04:00:00 1970) against 'exclude-even-hours-until-0500'. Got 18000 (Thu Jan 1 05:00:00 1970). Expected 18000 (Thu Jan 1 05:00:00 1970)
ok 43 - GNV: Tested 18000 (Thu Jan 1 05:00:00 1970) against 'exclude-even-hours-until-0500'. Got 18000 (Thu Jan 1 05:00:00 1970). Expected 18000 (Thu Jan 1 05:00:00 1970)
ok 44 - 3/3 range entries in sun-jul-20-even-hours-until-0500 for 1405814400 - Sun Jul 20 00:00:00 2014
ok 45 - Expected 0, got 0 for Sun Jul 20 00:00:00 2014 in 'sun-jul-20-even-hours-until-0500' (TZ=UTC)
ok 46 - Expected 0, got 0 for Sun Jul 20 00:30:00 2014 in 'sun-jul-20-even-hours-until-0500' (TZ=UTC)
ok 47 - Expected -2, got -2 for Sun Jul 20 01:00:00 2014 in 'sun-jul-20-even-hours-until-0500' (TZ=UTC)
ok 48 - Expected -2, got -2 for Sun Jul 20 01:30:00 2014 in 'sun-jul-20-even-hours-until-0500' (TZ=UTC)
ok 49 - Expected 0, got 0 for Sun Jul 20 02:00:00 2014 in 'sun-jul-20-even-hours-until-0500' (TZ=UTC)
ok 50 - Expected 0, got 0 for Sun Jul 20 02:30:00 2014 in 'sun-jul-20-even-hours-until-0500' (TZ=UTC)
ok 51 - Expected -2, got -2 for Sun Jul 20 03:00:00 2014 in 'sun-jul-20-even-hours-until-0500' (TZ=UTC)
ok 52 - Expected 0, got 0 for Sun Jul 20 04:00:00 2014 in 'sun-jul-20-even-hours-until-0500' (TZ=UTC)
ok 53 - Expected 0, got 0 for Sun Jul 20 04:59:59 2014 in 'sun-jul-20-even-hours-until-0500' (TZ=UTC)
ok 54 - 0/0 range entries in monday3-thursday4_10-12_14-16 for 1405814400 - Sun Jul 20 00:00:00 2014
ok 55 - 2/2 range entries in monday3-thursday4_10-12_14-16 for 1405900800 - Mon Jul 21 00:00:00 2014
ok 56 - Expected 0, got 0 for Thu Jan 1 00:02:03 1970 in 'non-workhours' (TZ=UTC)
ok 57 - Expected -2, got -2 for Thu Jan 1 00:02:03 1970 in 'workhours' (TZ=UTC)
ok 58 - GNV: Tested 123 (Thu Jan 1 00:02:03 1970) against 'workhours'. Got 25200 (Thu Jan 1 07:00:00 1970). Expected 25200 (Thu Jan 1 07:00:00 1970)
ok 59 - GNV: Tested 25200 (Thu Jan 1 07:00:00 1970) against 'non-workhours'. Got 64800 (Thu Jan 1 18:00:00 1970). Expected 64800 (Thu Jan 1 18:00:00 1970)
ok 60 - Expected -2, got -2 for Thu Jan 1 00:02:03 1970 in 'none' (TZ=UTC)
ok 61 - GNI: Tested 123 (Thu Jan 1 00:02:03 1970) against 'none'. Got 123 (Thu Jan 1 00:02:03 1970). Expected 123 (Thu Jan 1 00:02:03 1970)
ok 62 - GNV: Tested 123 (Thu Jan 1 00:02:03 1970) against 'none'. Got 123 (Thu Jan 1 00:02:03 1970). Expected 123 (Thu Jan 1 00:02:03 1970)
ok 63 - Expected 0, got 0 for Thu Jan 1 00:02:03 1970 in '24x7' (TZ=UTC)
ok 64 - GNI: Tested 123 (Thu Jan 1 00:02:03 1970) against '24x7'. Got 123 (Thu Jan 1 00:02:03 1970). Expected 123 (Thu Jan 1 00:02:03 1970)
ok 65 - 248234 should be valid in weekly_complex
ok 66 - GNI: Tested 252000 (Sat Jan 3 22:00:00 1970) against 'weekly_complex'. Got 252000 (Sat Jan 3 22:00:00 1970). Expected 252000 (Sat Jan 3 22:00:00 1970)
ok 67 - GNV: Tested 252000 (Sat Jan 3 22:00:00 1970) against 'weekly_complex'. Got 255600 (Sat Jan 3 23:00:00 1970). Expected 255600 (Sat Jan 3 23:00:00 1970)
ok 68 - Testing Exclude timeperiod
ok 69 - Expected -2, got -2 for Mon Jul 12 13:00:00 2010 in 'Test_exclude' (TZ=UTC)
ok 70 - GNI: Tested 1278939600 (Mon Jul 12 13:00:00 2010) against 'Test_exclude'. Got 1278939600 (Mon Jul 12 13:00:00 2010). Expected 1278939600 (Mon Jul 12 13:00:00 2010)
ok 71 - GNV: Tested 1278939600 (Mon Jul 12 13:00:00 2010) against 'Test_exclude'. Got 1288110600 (Tue Oct 26 16:30:00 2010). Expected 1288110600 (Tue Oct 26 16:30:00 2010)
ok 72 - No valid time because time period is empty
ok 73 - There is no valid time due to timeperiod
ok 74 - Fine because 24x7
ok 75 - Next valid time should be the current_time, but with a 2 second tolerance
ok 76 - 24x7 with TZ=UTC
ok 77 - 24x7 with TZ=Europe/London
ok 78 - 24x7 with TZ=America/New_York
ok 79 - Testing Exclude timeperiod
ok 80 - 12 Jul 2010 15:00:00 should not be valid
ok 81 - GNV: Tested 1278939600 (Mon Jul 12 15:00:00 2010) against 'Test_exclude'. Got 1288103400 (Tue Oct 26 16:30:00 2010). Expected 1288103400 (Tue Oct 26 16:30:00 2010)
ok 82 - Testing Exclude timeperiod 2
ok 83 - 12 Jul 2010 15:00:00 should not be valid
ok 84 - Next valid time should be Tue Jul 13 23:58:00 2010, was Tue Jul 13 23:58:00 2010
ok 85 - Testing Exclude timeperiod 3
ok 86 - Expected -2, got -2 for Mon Jul 12 15:00:00 2010 in 'Test_exclude' (TZ=Europe/Paris)
ok 87 - GNV: Tested 1278939600 (Mon Jul 12 15:00:00 2010) against 'Test_exclude'. Got 1288103400 (Tue Oct 26 16:30:00 2010). Expected 1288103400 (Tue Oct 26 16:30:00 2010)
ok 88 - Testing Exclude timeperiod 4
ok 89 - Expected -2, got -2 for Mon Jul 12 15:00:00 2010 in 'Test_exclude4' (TZ=Europe/Paris)
ok 90 - GNI: Tested 1281065000 (Fri Aug 6 05:23:20 2010) against 'myexclude4'. Got 1281996000 (Tue Aug 17 00:00:00 2010). Expected 1281996000 (Tue Aug 17 00:00:00 2010)
ok 91 - GNV: Tested 1278939600 (Mon Jul 12 15:00:00 2010) against 'Test_exclude4'. Got 1283265000 (Tue Aug 31 16:30:00 2010). Expected 1283265000 (Tue Aug 31 16:30:00 2010)
ok 92 - GNV: Tested 1278939600 (Mon Jul 12 15:00:00 2010) against 'Test_exclude4'. Got 1283265000 (Tue Aug 31 16:30:00 2010). Expected 1283265000 (Tue Aug 31 16:30:00 2010)
ok 93 - Testing exclude always
ok 94 - 12 Jul 2010 15:00:00 should not be valid
not ok 95 - There should be no next valid time, was Mon Nov 1 00:00:00 2038
# Failed test (t-tap/test_timeperiods.c:main() at line 380)
ok 96 - Testing Sunday 00:00-01:15,03:15-22:00
ok 97 - Sat Oct 24 22:50:00 2009 - false
ok 98 - Next valid time=Sun Oct 25 00:00:00 2009, was Sun Oct 25 00:00:00 2009
ok 99 - Sat Oct 24 23:01:01 2009 - false
ok 100 - Next valid time=Sun Oct 25 00:00:00 2009
ok 101 - Sun Oct 25 00:03:20 2009 - true
ok 102 - Next valid time=Sun Oct 25 00:03:20 2009
ok 103 - Sun Oct 25 01:14:59 2009 - true
ok 104 - Next valid time=Sun Oct 25 01:15:00 2009
ok 105 - Expected -2, got -2 for Sun Oct 25 01:15:00 2009 in 'sunday_only' (TZ=Europe/London)
ok 106 - GNV: Tested 1256429700 (Sun Oct 25 01:15:00 2009) against 'sunday_only'. Got 1256440500 (Sun Oct 25 03:15:00 2009). Expected 1256440500 (Sun Oct 25 03:15:00 2009)
ok 107 - Expected -2, got -2 for Sun Oct 25 01:26:40 2009 in 'sunday_only' (TZ=Europe/London)
ok 108 - GNV: Tested 1256430400 (Sun Oct 25 01:26:40 2009) against 'sunday_only'. Got 1256440500 (Sun Oct 25 03:15:00 2009). Expected 1256440500 (Sun Oct 25 03:15:00 2009)
ok 109 - Sun Oct 25 03:15:00 2009 - true
ok 110 - Next valid time=Sun Oct 25 03:15:00 2009
ok 111 - Sun Oct 25 19:46:40 2009 - true
ok 112 - Next valid time=Sun Oct 25 19:46:40 2009
ok 113 - Expected 0, got 0 for Sun Oct 25 21:59:59 2009 in 'sunday_only' (TZ=Europe/London)
ok 114 - GNV: Tested 1256507999 (Sun Oct 25 21:59:59 2009) against 'sunday_only'. Got 1256507999 (Sun Oct 25 21:59:59 2009). Expected 1256507999 (Sun Oct 25 21:59:59 2009)
ok 115 - Expected -2, got -2 for Sun Oct 25 22:00:01 2009 in 'sunday_only' (TZ=Europe/London)
ok 116 - GNV: Tested 1256508001 (Sun Oct 25 22:00:01 2009) against 'sunday_only'. Got 1257033600 (Sun Nov 1 00:00:00 2009). Expected 1257033600 (Sun Nov 1 00:00:00 2009)
ok 117 - Sun Oct 25 23:23:20 2009 - false
ok 118 - Next valid time=Sun Nov 1 00:00:00 2009, was 1257033600 : Sun Nov 1 00:00:00 2009
ok 119 - Testing complex weekly timeperiod definition
ok 120 - Mon Mar 8 23:37:00 2010 - false
ok 121 - Next valid time=Tue Mar 9 01:15:00 2010
# Looks like you failed 1 tests of 121.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/naemon-dev/attachments/20180702/d0814647/attachment.sig>
More information about the Naemon-dev
mailing list