<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
'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. <br>
<br>
Jamie Learmonth<br>
<br>
Roger Schotsal wrote:
<blockquote cite="mid842511.96876.qm@web81112.mail.mud.yahoo.com"
type="cite">when I run:<br>
<br>
make distclean<br>
./configure<br>
make<br>
make test<br>
make install<br>
<br>
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).<br>
<br>
Appologies if my questions are nieve - I'm very new to this. any
advice is appreciated.<br>
thanx....roger<br>
<br>
[root@localhost nagios-plugins-1.4.5]# make test<br>
cd lib && make test<br>
make[1]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'<br>
cd tests && make test<br>
make[2]: Entering directory
`/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'<br>
perl -MTest::Harness -e '$Test::Harness::switches=""; runtests(map {$_
.= ".t"} @ARGV)' test_utils test_disk<br>
test_utils....skipped<br>
all skipped: ./test_utils not compiled - please install tap
library to test<br>
test_disk.....skipped<br>
all skipped: ./test_disk not compiled - please install tap
library to test<br>
All tests successful, 2 tests skipped.<br>
Files=2, Tests=0, 0 wallclock secs ( 0.05 cusr + 0.01 csys = 0.06
CPU)<br>
make[2]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'<br>
make[1]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'<br>
cd plugins; make test<br>
make[1]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/plugins'<br>
perl -I .. -I .. ../test.pl<br>
No application (check_mysql_query) found for test harness
(check_mysql_query.t)<br>
No application (check_ftp) found for test harness (check_ftp.t)<br>
No application (check_snmp) found for test harness (check_snmp.t)<br>
No application (check_hpjd) found for test harness (check_hpjd.t)<br>
No application (check_procs) found for test harness (check_procs.t)<br>
No application (check_fping) found for test harness (check_fping.t)<br>
No application (check_swap) found for test harness (check_swap.t)<br>
No application (check_udp) found for test harness (check_udp.t)<br>
No application (check_nagios) found for test harness (check_nagios.t)<br>
No application (check_dns) found for test harness (check_dns.t)<br>
No application (check_imap) found for test harness (check_imap.t)<br>
No application (check_pop) found for test harness (check_pop.t)<br>
No application (check_mysql) found for test harness (check_mysql.t)<br>
./t/check_disk.....NOK 2<br>
# Failed test 'Got two mountpoints in output'<br>
# in ./t/check_disk.t at line 37.<br>
# got: 1<br>
# expected: 2<br>
Cannot parse output: DISK OK - free space: / 65891 MB (95% inode=99%);|
/=3103MB;72023;72023;0;72751 at ./t/check_disk.t line 43.<br>
# Looks like you planned 42 tests but only ran 2.<br>
# Looks like you failed 1 test of 2 run.<br>
# Looks like your test died just after 2.<br>
./t/check_disk.....dubious<br>
Test returned status 255 (wstat 65280, 0xff00)<br>
DIED. FAILED tests 2-42<br>
Failed 41/42 tests, 2.38% okay<br>
./t/check_http.....NOK 1<br>
# Failed test 'Webserver localhost responded'<br>
# in ./t/check_http.t at line 33.<br>
# got: 1<br>
# expected: 0<br>
./t/check_http.....NOK 2<br>
# Failed test 'Output OK'<br>
# in ./t/check_http.t at line 34.<br>
# 'HTTP WARNING: HTTP/1.1 403 Forbidden'<br>
# doesn't match '/OK.*HTTP.*second/'<br>
./t/check_http.....NOK 5<br>
# Failed test 'Webserver 127.0.0.1 not responding'<br>
# in ./t/check_http.t at line 49.<br>
# got: 1<br>
# expected: 2<br>
./t/check_http.....NOK 6<br>
# Failed test 'Output OK'<br>
# in ./t/check_http.t at line 50.<br>
# got: 'HTTP WARNING: HTTP/1.1 403 Forbidden'<br>
# expected: 'CRITICAL - Socket timeout after 10 seconds'<br>
<br>
# Failed test 'Can read https for <a class="moz-txt-link-abbreviated" href="http://www.verisign.com">www.verisign.com</a>'<br>
# in ./t/check_http.t at line 64.<br>
# got: 3<br>
# expected: 0<br>
<br>
# Failed test 'Checking certificate for <a class="moz-txt-link-abbreviated" href="http://www.verisign.com">www.verisign.com</a>'<br>
# in ./t/check_http.t at line 67.<br>
# got: 3<br>
# expected: 0<br>
<br>
# Failed test 'Output OK'<br>
# in ./t/check_http.t at line 68.<br>
# 'check_http: Invalid option - SSL is not available<br>
# Usage: check_http -H <vhost> | -I <IP-address> [-u
<uri>] [-p <port>]<br>
# [-w <warn time>] [-c <critical time>] [-t
<timeout>] [-L]<br>
# [-a auth] [-f <ok | warn | critcal | follow>] [-e
<expect>]<br>
# [-s string] [-l] [-r <regex> | -R <case-insensitive
regex>] [-P string]<br>
# [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M
<age>] [-A string] [-k string]'<br>
# doesn't match '/Certificate will expire on/'<br>
<br>
# Failed test 'Can read https for <a class="moz-txt-link-abbreviated" href="http://www.e-paycobalt.com">www.e-paycobalt.com</a> (uses AES
certificate)'<br>
# in ./t/check_http.t at line 80.<br>
# got: 3<br>
# expected: 0<br>
./t/check_http.....ok 21/22# Looks like you failed 8 tests of 22.<br>
./t/check_http.....dubious<br>
Test returned status 8 (wstat 2048, 0x800)<br>
DIED. FAILED tests 1-2, 5-6, 9-11, 14<br>
Failed 8/22 tests, 63.64% okay<br>
./t/check_load.....ok<br>
./t/check_ntp......<br>
# Failed test 'Got good NTP result'<br>
# in ./t/check_ntp.t at line 37.<br>
# got: 2<br>
# expected: 0<br>
./t/check_ntp......ok 3/4# Looks like you failed 1 test of 4.<br>
./t/check_ntp......dubious<br>
Test returned status 1 (wstat 256, 0x100)<br>
DIED. FAILED test 1<br>
Failed 1/4 tests, 75.00% okay<br>
./t/check_ping.....ok<br>
./t/check_smtp.....NOK 1<br>
# Failed test 'OK'<br>
# in ./t/check_smtp.t at line 31.<br>
# got: '3'<br>
# expected: '0'<br>
./t/check_smtp.....NOK 2<br>
# Failed test 'OK, within 9 second response'<br>
# in ./t/check_smtp.t at line 34.<br>
# got: '3'<br>
# expected: '0'<br>
./t/check_smtp.....NOK 3<br>
# Failed test 'OK, old syntax'<br>
# in ./t/check_smtp.t at line 37.<br>
# got: '3'<br>
# expected: '0'<br>
./t/check_smtp.....NOK 4<br>
# Failed test 'WARNING - got correct error when expecting 221 instead
of 220'<br>
# in ./t/check_smtp.t at line 40.<br>
# got: '3'<br>
# expected: '1'<br>
./t/check_smtp.....NOK 6<br>
# Failed test 'OK, with STARTTLS'<br>
# in ./t/check_smtp.t at line 52.<br>
# got: '3'<br>
# expected: '0'<br>
./t/check_smtp.....NOK 9<br>
# Failed test 'CRITICAL - host non responding'<br>
# in ./t/check_smtp.t at line 63.<br>
# got: '0'<br>
# expected: '2'<br>
# Looks like you failed 6 tests of 10.<br>
./t/check_smtp.....dubious<br>
Test returned status 6 (wstat 1536, 0x600)<br>
DIED. FAILED tests 1-4, 6, 9<br>
Failed 6/10 tests, 40.00% okay (less 2 skipped tests: 2 okay,
20.00%)<br>
./t/check_tcp......ok<br>
./t/check_time.....NOK 1# Test 1 got: "2" (../NPTest.pm at line 273)<br>
# Expected: "0"<br>
./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)<br>
# Expected: "/^TIME OK - [0-9]+ second time difference/"<br>
./t/check_time.....NOK 3# Test 3 got: "2" (../NPTest.pm at line 273
fail #2)<br>
# Expected: "0"<br>
./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)<br>
# Expected: "/^TIME OK - [0-9]+ second time difference/"<br>
./t/check_time.....NOK 5# Test 5 got: "2" (../NPTest.pm at line 273
fail #3)<br>
# Expected: "0"<br>
./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)<br>
# Expected: "/^TIME OK - [0-9]+ second time difference/"<br>
./t/check_time.....NOK 7# Test 7 got: "3" (../NPTest.pm at line 273
fail #4)<br>
# Expected: "2"<br>
./t/check_time.....dubious<br>
Test returned status 7 (wstat 1792, 0x700)<br>
DIED. FAILED tests 1-7<br>
Failed 7/8 tests, 12.50% okay<br>
./t/check_users....ok<br>
Failed Test Stat Wstat Total Fail Failed List of Failed<br>
-------------------------------------------------------------------------------<br>
./t/check_disk.t 255 65280 42 81 192.86% 2-42<br>
./t/check_http.t 8 2048 22 8 36.36% 1-2 5-6 9-11 14<br>
./t/check_ntp.t 1 256 4 1 25.00% 1<br>
./t/check_smtp.t 6 1536 10 6 60.00% 1-4 6 9<br>
./t/check_time.t 7 1792 8 7 87.50% 1-7<br>
2 subtests skipped.<br>
Failed 5/9 test scripts, 44.44% okay. 63/107 subtests failed, 41.12%
okay.<br>
make[1]: *** [test] Error 255<br>
make[1]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/plugins'<br>
make: *** [test] Error 2<br>
<br>
[root@localhost nagios-plugins-1.4.5]# make install<br>
Making install in lib<br>
make[1]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'<br>
make install-recursive<br>
make[2]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'<br>
Making install in tests<br>
make[3]: Entering directory
`/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'<br>
make[4]: Entering directory
`/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'<br>
make[4]: Nothing to be done for `install-exec-am'.<br>
make[4]: Nothing to be done for `install-data-am'.<br>
make[4]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'<br>
make[3]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib/tests'<br>
make[3]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'<br>
make[4]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'<br>
make[4]: Nothing to be done for `install-exec-am'.<br>
make[4]: Nothing to be done for `install-data-am'.<br>
make[4]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'<br>
make[3]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'<br>
make[2]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'<br>
make[1]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/lib'<br>
Making install in plugins<br>
make[1]: Entering directory `/root/NAGIOS/nagios-plugins-1.4.5/plugins'<br>
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; \<br>
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<br>
check_mysql.c:51:19: error: mysql.h: No such file or directory<br>
check_mysql.c:52:20: error: errmsg.h: No such file or directory<br>
check_mysql.c:58: error: ‘MYSQL_PORT’ undeclared here (not in a
function)<br>
check_mysql.c: In function ‘main’:<br>
check_mysql.c:73: error: ‘MYSQL’ undeclared (first use in this function)<br>
check_mysql.c:73: error: (Each undeclared identifier is reported only
once<br>
check_mysql.c:73: error: for each function it appears in.)<br>
check_mysql.c:73: error: expected ‘;’ before ‘mysql’<br>
check_mysql.c:74: error: ‘MYSQL_RES’ undeclared (first use in this
function)<br>
check_mysql.c:74: error: ‘res’ undeclared (first use in this function)<br>
check_mysql.c:75: error: ‘MYSQL_ROW’ undeclared (first use in this
function)<br>
check_mysql.c:75: error: expected ‘;’ before ‘row’<br>
check_mysql.c:91: error: ‘mysql’ undeclared (first use in this function)<br>
check_mysql.c:93: error: ‘MYSQL_READ_DEFAULT_GROUP’ undeclared (first
use in this function)<br>
check_mysql.c:97: error: ‘CR_UNKNOWN_HOST’ undeclared (first use in
this function)<br>
check_mysql.c:99: error: ‘CR_VERSION_ERROR’ undeclared (first use in
this function)<br>
check_mysql.c:101: error: ‘CR_OUT_OF_MEMORY’ undeclared (first use in
this function)<br>
check_mysql.c:103: error: ‘CR_IPSOCK_ERROR’ undeclared (first use in
this function)<br>
check_mysql.c:105: error: ‘CR_SOCKET_CREATE_ERROR’ undeclared (first
use in this function)<br>
check_mysql.c:112: warning: passing argument 1 of ‘strlen’ makes
pointer from integer without a cast<br>
check_mysql.c:112: warning: passing argument 2 of
‘__builtin___memcpy_chk’ makes pointer from integer without a cast<br>
check_mysql.c:112: warning: passing argument 2 of ‘__memcpy_ichk’ makes
pointer from integer without a cast<br>
check_mysql.c:112: warning: passing argument 1 of ‘__strdup’ makes
pointer from integer without a cast<br>
check_mysql.c:116: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use
in this function)<br>
check_mysql.c:118: error: ‘CR_SERVER_LOST’ undeclared (first use in
this function)<br>
check_mysql.c:120: error: ‘CR_UNKNOWN_ERROR’ undeclared (first use in
this function)<br>
check_mysql.c:127: warning: passing argument 1 of ‘strlen’ makes
pointer from integer without a cast<br>
check_mysql.c:127: warning: passing argument 2 of
‘__builtin___memcpy_chk’ makes pointer from integer without a cast<br>
check_mysql.c:127: warning: passing argument 2 of ‘__memcpy_ichk’ makes
pointer from integer without a cast<br>
check_mysql.c:127: warning: passing argument 1 of ‘__strdup’ makes
pointer from integer without a cast<br>
check_mysql.c:134: warning: passing argument 1 of ‘strlen’ makes
pointer from integer without a cast<br>
check_mysql.c:134: warning: passing argument 2 of
‘__builtin___memcpy_chk’ makes pointer from integer without a cast<br>
check_mysql.c:134: warning: passing argument 2 of ‘__memcpy_ichk’ makes
pointer from integer without a cast<br>
check_mysql.c:134: warning: passing argument 1 of ‘__strdup’ makes
pointer from integer without a cast<br>
check_mysql.c:146: error: ‘row’ undeclared (first use in this function)<br>
check_mysql.c:147: warning: passing argument 1 of ‘strlen’ makes
pointer from integer without a cast<br>
check_mysql.c:147: warning: passing argument 2 of
‘__builtin___memcpy_chk’ makes pointer from integer without a cast<br>
check_mysql.c:147: warning: passing argument 2 of ‘__memcpy_ichk’ makes
pointer from integer without a cast<br>
check_mysql.c:147: warning: passing argument 1 of ‘__strdup’ makes
pointer from integer without a cast<br>
check_mysql.c:165: error: ‘MYSQL_FIELD’ undeclared (first use in this
function)<br>
check_mysql.c:165: error: ‘fields’ undeclared (first use in this
function)<br>
make[1]: *** [check_mysql-check_mysql.o] Error 1<br>
make[1]: Leaving directory `/root/NAGIOS/nagios-plugins-1.4.5/plugins'<br>
make: *** [install-recursive] Error 1<br>
[root@localhost nagios-plugins-1.4.5]#<br>
<br>
<pre wrap="">
<hr size="4" width="90%">
-------------------------------------------------------------------------
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
<a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a></pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Nagiosplug-help mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a>
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<br>
</body>
</html>