[Nagiosplug-help] 1.4.5 plugins do not copy to ./libexec

Jamie Learmonth jamielists at gmail.com
Tue Jan 23 10:38:18 CET 2007


'make install' will not ignore the error's you encountered during
compiling and selectively choose what to install. You need to fix your
dependencies and make sure 'make' runs without any errors.

Jamie Learmonth

Roger Schotsal wrote:
> when I run:
>
> make distclean
> ./configure
> make
> make test
> make install
>
> the plugins do not copy to /usr/local/nagios/libexec/ -- I've included
> output from 'make test' & 'make install' below.  I know several of the
> plugins are failing due to dependancies (for example the sql ones)
> but, I also know others (for example check_http) are compiling.  the
> problem is they are only placed in the compile directory
> (/root/NAGIOS/nagios-plugins-1.4.5/plugins).
>
> Appologies if my questions are nieve - I'm very new to this.  any
> advice is appreciated.
> thanx....roger
>
> [root at localhost nagios-plugins-1.4.5]# make test
> cd lib && make test
> make[1]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'
> cd tests && make test
> make[2]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'
> perl -MTest::Harness -e '$Test::Harness::switches=""; runtests(map {$_
> .= ".t"} @ARGV)' test_utils test_disk
> test_utils....skipped
>         all skipped: ./test_utils not compiled - please install tap
> library to test
> test_disk.....skipped
>         all skipped: ./test_disk not compiled - please install tap
> library to test
> All tests successful, 2 tests skipped.
> Files=2, Tests=0,  0 wallclock secs ( 0.05 cusr +  0.01 csys =  0.06 CPU)
> make[2]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'
> make[1]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'
> cd plugins; make test
> make[1]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/plugins'
> perl -I .. -I .. ../test.pl
> No application (check_mysql_query) found for test harness
> (check_mysql_query.t)
> No application (check_ftp) found for test harness (check_ftp.t)
> No application (check_snmp) found for test harness (check_snmp.t)
> No application (check_hpjd) found for test harness (check_hpjd.t)
> No application (check_procs) found for test harness (check_procs.t)
> No application (check_fping) found for test harness (check_fping.t)
> No application (check_swap) found for test harness (check_swap.t)
> No application (check_udp) found for test harness (check_udp.t)
> No application (check_nagios) found for test harness (check_nagios.t)
> No application (check_dns) found for test harness (check_dns.t)
> No application (check_imap) found for test harness (check_imap.t)
> No application (check_pop) found for test harness (check_pop.t)
> No application (check_mysql) found for test harness (check_mysql.t)
> ./t/check_disk.....NOK 2
> #   Failed test 'Got two mountpoints in output'
> #   in ./t/check_disk.t at line 37.
> #          got: 1
> #     expected: 2
> Cannot parse output: DISK OK - free space: / 65891 MB (95%
> inode=99%);| /=3103MB;72023;72023;0;72751 at ./t/check_disk.t line 43.
> # Looks like you planned 42 tests but only ran 2.
> # Looks like you failed 1 test of 2 run.
> # Looks like your test died just after 2.
> ./t/check_disk.....dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 2-42
>         Failed 41/42 tests, 2.38% okay
> ./t/check_http.....NOK 1
> #   Failed test 'Webserver localhost responded'
> #   in ./t/check_http.t at line 33.
> #          got: 1
> #     expected: 0
> ./t/check_http.....NOK 2
> #   Failed test 'Output OK'
> #   in ./t/check_http.t at line 34.
> #                   'HTTP WARNING: HTTP/1.1 403 Forbidden'
> #     doesn't match '/OK.*HTTP.*second/'
> ./t/check_http.....NOK 5
> #   Failed test 'Webserver 127.0.0.1 not responding'
> #   in ./t/check_http.t at line 49.
> #          got: 1
> #     expected: 2
> ./t/check_http.....NOK 6
> #   Failed test 'Output OK'
> #   in ./t/check_http.t at line 50.
> #          got: 'HTTP WARNING: HTTP/1.1 403 Forbidden'
> #     expected: 'CRITICAL - Socket timeout after 10 seconds'
>
> #   Failed test 'Can read https for www.verisign.com'
> #   in ./t/check_http.t at line 64.
> #          got: 3
> #     expected: 0
>
> #   Failed test 'Checking certificate for www.verisign.com'
> #   in ./t/check_http.t at line 67.
> #          got: 3
> #     expected: 0
>
> #   Failed test 'Output OK'
> #   in ./t/check_http.t at line 68.
> #                   'check_http: Invalid option - SSL is not available
> # Usage: check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
> #        [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]
> #        [-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]
> #        [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]
> [-P string]
> #        [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>] [-A
> string] [-k string]'
> #     doesn't match '/Certificate will expire on/'
>
> #   Failed test 'Can read https for www.e-paycobalt.com (uses AES
> certificate)'
> #   in ./t/check_http.t at line 80.
> #          got: 3
> #     expected: 0
> ./t/check_http.....ok 21/22# Looks like you failed 8 tests of 22.
> ./t/check_http.....dubious
>         Test returned status 8 (wstat 2048, 0x800)
> DIED. FAILED tests 1-2, 5-6, 9-11, 14
>         Failed 8/22 tests, 63.64% okay
> ./t/check_load.....ok
> ./t/check_ntp......
> #   Failed test 'Got good NTP result'
> #   in ./t/check_ntp.t at line 37.
> #          got: 2
> #     expected: 0
> ./t/check_ntp......ok 3/4# Looks like you failed 1 test of 4.
> ./t/check_ntp......dubious
>         Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 1
>         Failed 1/4 tests, 75.00% okay
> ./t/check_ping.....ok
> ./t/check_smtp.....NOK 1
> #   Failed test 'OK'
> #   in ./t/check_smtp.t at line 31.
> #          got: '3'
> #     expected: '0'
> ./t/check_smtp.....NOK 2
> #   Failed test 'OK, within 9 second response'
> #   in ./t/check_smtp.t at line 34.
> #          got: '3'
> #     expected: '0'
> ./t/check_smtp.....NOK 3
> #   Failed test 'OK, old syntax'
> #   in ./t/check_smtp.t at line 37.
> #          got: '3'
> #     expected: '0'
> ./t/check_smtp.....NOK 4
> #   Failed test 'WARNING - got correct error when expecting 221
> instead of 220'
> #   in ./t/check_smtp.t at line 40.
> #          got: '3'
> #     expected: '1'
> ./t/check_smtp.....NOK 6
> #   Failed test 'OK, with STARTTLS'
> #   in ./t/check_smtp.t at line 52.
> #          got: '3'
> #     expected: '0'
> ./t/check_smtp.....NOK 9
> #   Failed test 'CRITICAL - host non responding'
> #   in ./t/check_smtp.t at line 63.
> #          got: '0'
> #     expected: '2'
> # Looks like you failed 6 tests of 10.
> ./t/check_smtp.....dubious
>         Test returned status 6 (wstat 1536, 0x600)
> DIED. FAILED tests 1-4, 6, 9
>         Failed 6/10 tests, 40.00% okay (less 2 skipped tests: 2 okay,
> 20.00%)
> ./t/check_tcp......ok
> ./t/check_time.....NOK 1# Test 1 got: "2" (../NPTest.pm at line 273)
> #   Expected: "0"
> ./t/check_time.....NOK 2# Test 2 got: "Connection refused\nTIME
> UNKNOWN - could not connect to server localhost, port 37"
> (../NPTest.pm at line 277)
> #   Expected: "/^TIME OK - [0-9]+ second time difference/"
> ./t/check_time.....NOK 3# Test 3 got: "2" (../NPTest.pm at line 273
> fail #2)
> #   Expected: "0"
> ./t/check_time.....NOK 4# Test 4 got: "Connection refused\nTIME
> UNKNOWN - could not connect to server localhost, port 37"
> (../NPTest.pm at line 277 fail #2)
> #   Expected: "/^TIME OK - [0-9]+ second time difference/"
> ./t/check_time.....NOK 5# Test 5 got: "2" (../NPTest.pm at line 273
> fail #3)
> #   Expected: "0"
> ./t/check_time.....NOK 6# Test 6 got: "Connection refused\nTIME
> UNKNOWN - could not connect to server localhost, port 37"
> (../NPTest.pm at line 277 fail #3)
> #   Expected: "/^TIME OK - [0-9]+ second time difference/"
> ./t/check_time.....NOK 7# Test 7 got: "3" (../NPTest.pm at line 273
> fail #4)
> #   Expected: "2"
> ./t/check_time.....dubious
>         Test returned status 7 (wstat 1792, 0x700)
> DIED. FAILED tests 1-7
>         Failed 7/8 tests, 12.50% okay
> ./t/check_users....ok
> Failed Test      Stat Wstat Total Fail  Failed  List of Failed
> -------------------------------------------------------------------------------
> ./t/check_disk.t  255 65280    42   81 192.86%  2-42
> ./t/check_http.t    8  2048    22    8  36.36%  1-2 5-6 9-11 14
> ./t/check_ntp.t     1   256     4    1  25.00%  1
> ./t/check_smtp.t    6  1536    10    6  60.00%  1-4 6 9
> ./t/check_time.t    7  1792     8    7  87.50%  1-7
> 2 subtests skipped.
> Failed 5/9 test scripts, 44.44% okay. 63/107 subtests failed, 41.12% okay.
> make[1]: *** [test] Error 255
> make[1]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/plugins'
> make: *** [test] Error 2
>
> [root at localhost nagios-plugins-1.4.5]# make install
> Making install in lib
> make[1]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'
> make  install-recursive
> make[2]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'
> Making install in tests
> make[3]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'
> make[4]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'
> make[4]: Nothing to be done for `install-exec-am'.
> make[4]: Nothing to be done for `install-data-am'.
> make[4]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'
> make[3]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'
> make[3]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'
> make[4]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'
> make[4]: Nothing to be done for `install-exec-am'.
> make[4]: Nothing to be done for `install-data-am'.
> make[4]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'
> make[3]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'
> make[2]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'
> make[1]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'
> Making install in plugins
> make[1]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/plugins'
> if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H
> -I. -I. -I.. -I.. -I../lib -I../intl   -I/usr/include
> -I/usr/include/mysql  -I/usr/include/mysql -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g -O2 -MT
> check_mysql-check_mysql.o -MD -MP -MF
> ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o
> `test -f 'check_mysql.c' || echo './'`check_mysql.c; \
> then mv -f ".deps/check_mysql-check_mysql.Tpo"
> ".deps/check_mysql-check_mysql.Po"; else rm -f
> ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi
> check_mysql.c:51:19: error: mysql.h: No such file or directory
> check_mysql.c:52:20: error: errmsg.h: No such file or directory
> check_mysql.c:58: error: ‘MYSQL_PORT’ undeclared here (not in a function)
> check_mysql.c: In function ‘main’:
> check_mysql.c:73: error: ‘MYSQL’ undeclared (first use in this function)
> check_mysql.c:73: error: (Each undeclared identifier is reported only once
> check_mysql.c:73: error: for each function it appears in.)
> check_mysql.c:73: error: expected ‘;’ before ‘mysql’
> check_mysql.c:74: error: ‘MYSQL_RES’ undeclared (first use in this
> function)
> check_mysql.c:74: error: ‘res’ undeclared (first use in this function)
> check_mysql.c:75: error: ‘MYSQL_ROW’ undeclared (first use in this
> function)
> check_mysql.c:75: error: expected ‘;’ before ‘row’
> check_mysql.c:91: error: ‘mysql’ undeclared (first use in this function)
> check_mysql.c:93: error: ‘MYSQL_READ_DEFAULT_GROUP’ undeclared (first
> use in this function)
> check_mysql.c:97: error: ‘CR_UNKNOWN_HOST’ undeclared (first use in
> this function)
> check_mysql.c:99: error: ‘CR_VERSION_ERROR’ undeclared (first use in
> this function)
> check_mysql.c:101: error: ‘CR_OUT_OF_MEMORY’ undeclared (first use in
> this function)
> check_mysql.c:103: error: ‘CR_IPSOCK_ERROR’ undeclared (first use in
> this function)
> check_mysql.c:105: error: ‘CR_SOCKET_CREATE_ERROR’ undeclared (first
> use in this function)
> check_mysql.c:112: warning: passing argument 1 of ‘strlen’ makes
> pointer from integer without a cast
> check_mysql.c:112: warning: passing argument 2 of
> ‘__builtin___memcpy_chk’ makes pointer from integer without a cast
> check_mysql.c:112: warning: passing argument 2 of ‘__memcpy_ichk’
> makes pointer from integer without a cast
> check_mysql.c:112: warning: passing argument 1 of ‘__strdup’ makes
> pointer from integer without a cast
> check_mysql.c:116: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use
> in this function)
> check_mysql.c:118: error: ‘CR_SERVER_LOST’ undeclared (first use in
> this function)
> check_mysql.c:120: error: ‘CR_UNKNOWN_ERROR’ undeclared (first use in
> this function)
> check_mysql.c:127: warning: passing argument 1 of ‘strlen’ makes
> pointer from integer without a cast
> check_mysql.c:127: warning: passing argument 2 of
> ‘__builtin___memcpy_chk’ makes pointer from integer without a cast
> check_mysql.c:127: warning: passing argument 2 of ‘__memcpy_ichk’
> makes pointer from integer without a cast
> check_mysql.c:127: warning: passing argument 1 of ‘__strdup’ makes
> pointer from integer without a cast
> check_mysql.c:134: warning: passing argument 1 of ‘strlen’ makes
> pointer from integer without a cast
> check_mysql.c:134: warning: passing argument 2 of
> ‘__builtin___memcpy_chk’ makes pointer from integer without a cast
> check_mysql.c:134: warning: passing argument 2 of ‘__memcpy_ichk’
> makes pointer from integer without a cast
> check_mysql.c:134: warning: passing argument 1 of ‘__strdup’ makes
> pointer from integer without a cast
> check_mysql.c:146: error: ‘row’ undeclared (first use in this function)
> check_mysql.c:147: warning: passing argument 1 of ‘strlen’ makes
> pointer from integer without a cast
> check_mysql.c:147: warning: passing argument 2 of
> ‘__builtin___memcpy_chk’ makes pointer from integer without a cast
> check_mysql.c:147: warning: passing argument 2 of ‘__memcpy_ichk’
> makes pointer from integer without a cast
> check_mysql.c:147: warning: passing argument 1 of ‘__strdup’ makes
> pointer from integer without a cast
> check_mysql.c:165: error: ‘MYSQL_FIELD’ undeclared (first use in this
> function)
> check_mysql.c:165: error: ‘fields’ undeclared (first use in this function)
> make[1]: *** [check_mysql-check_mysql.o] Error 1
> make[1]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/plugins'
> make: *** [install-recursive] Error 1
> [root at localhost nagios-plugins-1.4.5]#
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20070123/a74f7c30/attachment.html>


More information about the Help mailing list