[Pkg-nagios-devel] Bug#1010959: nsca-ng FTBFS: test failures

Adrian Bunk bunk at debian.org
Sat May 14 07:51:04 BST 2022


Source: nsca-ng
Version: 1.6-4
Severity: serious
Tags: ftbfs bookworm sid

https://buildd.debian.org/status/logs.php?pkg=nsca-ng&ver=1.6-4%2Bb1

...
/bin/bash './testsuite' -j4 --verbose
## ----------------------- ##
## NSCA-ng 1.6 test suite. ##
## ----------------------- ##




2. basic.at:32: testing Host check result, special delimiter ...
./basic.at:33: <input NSCA_CLIENT_FLAGS="-d /" test_nsca
1. basic.at:27: testing Host check result ...
./basic.at:28: <input test_nsca
4. basic.at:42: testing Service check result, special delimiter ...
./basic.at:43: <input NSCA_CLIENT_FLAGS="-d /" test_nsca
3. basic.at:37: testing Service check result ...
./basic.at:38: <input test_nsca
--- /dev/null	2022-05-11 22:14:10.000000000 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/4/stderr	2022-05-14 03:33:48.969553566 +0000
@@ -0,0 +1 @@
+nsca-ng: [FATAL] Cannot bind to 127.0.0.1:12345: (null)
--- -	2022-05-14 03:33:48.979196594 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/4/stdout	2022-05-14 03:33:48.973553541 +0000
@@ -1,2 +1 @@
-PROCESS_SERVICE_CHECK_RESULT;saturn;http;0;HTTP is happy
 
./basic.at:43: exit code was 1, expected 0
input:
--- /dev/null	2022-05-11 22:14:10.000000000 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/3/stderr	2022-05-14 03:33:48.969553566 +0000
@@ -0,0 +1 @@
+nsca-ng: [FATAL] Cannot bind to 127.0.0.1:12345: (null)
> saturn/http/0/HTTP is happy
4. basic.at:42:  FAILED (basic.at:43)
--- -	2022-05-14 03:33:48.984291969 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/3/stdout	2022-05-14 03:33:48.973553541 +0000
@@ -1,2 +1 @@
-PROCESS_SERVICE_CHECK_RESULT;saturn;http;0;HTTP is happy
 
./basic.at:38: exit code was 1, expected 0
input:

> saturn	http	0	HTTP is happy
3. basic.at:37: --- /dev/null	2022-05-11 22:14:10.000000000 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/1/stderr	2022-05-14 03:33:48.981553492 +0000
@@ -0,0 +1 @@
+nsca-ng: [FATAL] Cannot bind to 127.0.0.1:12345: (null)
 FAILED (basic.at:38)
--- -	2022-05-14 03:33:48.996799722 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/1/stdout	2022-05-14 03:33:48.989553444 +0000
@@ -1,2 +1 @@
-PROCESS_HOST_CHECK_RESULT;jupiter;0;jupiter is alive
 
./basic.at:28: exit code was 1, expected 0
input:
5. basic.at:47: testing Monitoring command ...
2. basic.at:32:  ok
> jupiter	0	jupiter is alive

1. basic.at:27: ./basic.at:48: <input NSCA_CLIENT_FLAGS="-C" test_nsca
 FAILED (basic.at:28)

6. basic.at:52: testing Monitoring command, no timestamp ...
./basic.at:53: <input NSCA_CLIENT_FLAGS="-C" test_nsca

8. input.at:32: testing Multiple check results ...
./input.at:38: <input test_nsca -l 3
7. input.at:27: testing Multiline check result ...
/<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/7/test-source: line 15: is: command not found
./input.at:28: <input test_nsca
--- /dev/null	2022-05-11 22:14:10.000000000 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/6/stderr	2022-05-14 03:33:49.025553225 +0000
@@ -0,0 +1 @@
+nsca-ng: [FATAL] Cannot bind to 127.0.0.1:12345: (null)
--- -	2022-05-14 03:33:49.039884985 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/6/stdout	2022-05-14 03:33:49.029553200 +0000
@@ -1,2 +1 @@
-ADD_HOST_COMMENT;jupiter;1;John Doe;Useless comment
 
./basic.at:53: exit code was 1, expected 0
input:
> ADD_HOST_COMMENT;jupiter;1;John Doe;Useless comment
6. basic.at:52:  FAILED (basic.at:53)

5. basic.at:47:  ok
--- /dev/null	2022-05-11 22:14:10.000000000 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/7/stderr	2022-05-14 03:33:49.045553103 +0000
@@ -0,0 +1 @@
+nsca-ng: [FATAL] Cannot bind to 127.0.0.1:12345: (null)
--- -	2022-05-14 03:33:49.055107634 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/7/stdout	2022-05-14 03:33:49.049553078 +0000
@@ -1,2 +1 @@
-PROCESS_HOST_CHECK_RESULT;jupiter;0;jupiter\n  is alive
 
./input.at:28: exit code was 1, expected 0
input:
> jupiter	0	jupiter
>   is alive
7. input.at:27:  FAILED (input.at:28)
9. input.at:44: testing Multiple results, colon-separated ...
./input.at:50: <input NSCA_CLIENT_FLAGS="-e :" test_nsca -l 3

8. input.at:32:  ok
10. input.at:56: testing Multiple monitoring commands ...
./input.at:63: <input NSCA_CLIENT_FLAGS="-C" test_nsca -l 3


11. input.at:66: testing Result with trailing ETB and newline ...
./input.at:69: <input test_nsca
9. input.at:44:  ok
12. input.at:72: testing Incorrect input format ...
./input.at:73: <input test_nsca
--- /dev/null	2022-05-11 22:14:10.000000000 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/10/stderr	2022-05-14 03:33:49.093552810 +0000
@@ -0,0 +1 @@
+nsca-ng: [FATAL] Cannot bind to 127.0.0.1:12345: (null)
--- expout	2022-05-14 03:33:49.069552957 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/10/stdout	2022-05-14 03:33:49.073552932 +0000
@@ -1,3 +0,0 @@
-PROCESS_HOST_CHECK_RESULT;saturn;0;result 1
-PROCESS_HOST_CHECK_RESULT;saturn;0;result 2
-PROCESS_HOST_CHECK_RESULT;saturn;0;result 3
./input.at:63: exit code was 1, expected 0
input:
> PROCESS_HOST_CHECK_RESULT;saturn;0;result 1
> PROCESS_HOST_CHECK_RESULT;saturn;0;result 2
> PROCESS_HOST_CHECK_RESULT;saturn;0;result 3
10. input.at:56:  FAILED (input.at:63)


11. input.at:66:  ok
13. input.at:78: testing Data size exceeds max_command_size ...
14. input.at:88: testing Data size exceeds PIPE_BUF ...
./input.at:79: <input test_nsca

./input.at:101: <input test_nsca
15. auth.at:27: testing Incorrect password ...
12. input.at:72:  ok
./auth.at:28: <input test_nsca
--- /dev/null	2022-05-11 22:14:10.000000000 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/14/stderr	2022-05-14 03:33:49.157552421 +0000
@@ -0,0 +1 @@
+nsca-ng: [FATAL] Cannot bind to 127.0.0.1:12345: (null)
stdout:
./input.at:101: exit code was 1, expected 0
server.cfg:
> temp_directory = "/<<PKGBUILDDIR>>/tests/testsuite.dir/14"
> max_command_size = 0
> authorize "*" {
>   password = "forty-two"
>   commands = ".*"
> }
input:
> jupiter	0	0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001

14. input.at:88: stderr:
 FAILED (input.at:101)
nsca-ng: [FATAL] Cannot bind to 127.0.0.1:12345: (null)
./auth.at:30: grep '^send_nsca: \[FATAL\] TLS error (127.0.0.1): ' stderr
stdout:

16. auth.at:34: testing Unauthorized submission ...
13. input.at:78:  ok
./auth.at:30: exit code was 1, expected 0
input:
./auth.at:35: <input test_nsca
> jupiter	0	jupiter is alive
client.cfg:
> password = "incorrect"
15. auth.at:27: 17. auth.at:40: testing Legitimate host check result ...
 FAILED (auth.at:30)
./auth.at:41: <input test_nsca


18. auth.at:46: testing Legitimate service check result ...
./auth.at:47: <input test_nsca
19. auth.at:52: testing Malicious host check result ...
./auth.at:53: <input test_nsca
16. auth.at:34:  ok
--- /dev/null	2022-05-11 22:14:10.000000000 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/17/stderr	2022-05-14 03:33:49.233551958 +0000
@@ -0,0 +1 @@
+nsca-ng: [FATAL] Cannot bind to 127.0.0.1:12345: (null)
--- -	2022-05-14 03:33:49.241360269 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/19/stderr	2022-05-14 03:33:49.225552007 +0000
@@ -1,2 +1,2 @@
-send_nsca: [FATAL] Server said: FAIL You're not authorized
+nsca-ng: [FATAL] Cannot bind to 127.0.0.1:12345: (null)
 
input:

> saturn	0	jupiter;0;tricked you!
--- -	2022-05-14 03:33:49.246780281 +0000
+++ /<<PKGBUILDDIR>>/tests/testsuite.dir/at-groups/17/stdout	2022-05-14 03:33:49.237551934 +0000
@@ -1,2 +1 @@
-PROCESS_HOST_CHECK_RESULT;jupiter;0;jupiter is alive
 
server.cfg:
./auth.at:41: exit code was 1, expected 0
input:
> jupiter	0	jupiter is alive
server.cfg:
> authorize "*" { password = "forty-two" hosts = "jupiter" }
20. auth.at:58: testing Malicious service check result ...
> authorize "*" { password = "forty-two" hosts = "jupiter" }
19. auth.at:52: 17. auth.at:40: 18. auth.at:46:  ok
 FAILED (auth.at:53)
 FAILED (auth.at:41)
./auth.at:59: <input test_nsca
20. auth.at:58:  ok

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: All 20 tests were run,
10 failed unexpectedly.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##

Please send `tests/testsuite.log' and all information you think might help:

   To: <developers at nsca-ng.org>
   Subject: [NSCA-ng 1.6] testsuite: 1 3 4 6 7 10 14 15 17 19 failed

You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point.  Its output may
be found below `tests/testsuite.dir'.

make[3]: *** [Makefile:577: check-local] Error 1



More information about the Pkg-nagios-devel mailing list