当前位置: 技术问答>linux和unix
安装nagios插件的时候报错!
来源: 互联网 发布时间:2016-09-03
本文导语: 相关的nagios支持已经安装: httpd-2.2.0-5.1.2 gcc-4.1.0-3 gcc-4.1.1-51.fc5 glibc-2.4-4 glibc-2.4-11 glibc-common-2.4-4 glibc-common-2.4-11 gd-2.0.33-6.2 gd-devel-2.0.33-6.2 gd-devel-2.0.33-8.fc5 安装插件时的错误如下: make all-recursive make[1]: Entering...
相关的nagios支持已经安装:
httpd-2.2.0-5.1.2
gcc-4.1.0-3
gcc-4.1.1-51.fc5
glibc-2.4-4
glibc-2.4-11
glibc-common-2.4-4
glibc-common-2.4-11
gd-2.0.33-6.2
gd-devel-2.0.33-6.2
gd-devel-2.0.33-8.fc5
安装插件时的错误如下:
make all-recursive
make[1]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14'
Making all in gl
make[2]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
rm -f configmake.h-t
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */';
echo '#define PREFIX "/usr/local/nagios"';
echo '#define EXEC_PREFIX "/usr/local/nagios"';
echo '#define BINDIR "/usr/local/nagios/bin"';
echo '#define SBINDIR "/usr/local/nagios/sbin"';
echo '#define LIBEXECDIR "/usr/local/nagios/libexec"';
echo '#define DATAROOTDIR "/usr/local/nagios/share"';
echo '#define DATADIR "/usr/local/nagios/share"';
echo '#define SYSCONFDIR "/usr/local/nagios/etc"';
echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"';
echo '#define LOCALSTATEDIR "/usr/local/nagios/var"';
echo '#define INCLUDEDIR "/usr/local/nagios/include"';
echo '#define OLDINCLUDEDIR "/usr/include"';
echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define INFODIR "/usr/local/nagios/share/info"';
echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define LIBDIR "/usr/local/nagios/lib"';
echo '#define LISPDIR ""';
echo '#define LOCALEDIR "/usr/local/nagios/share/locale"';
echo '#define MANDIR "/usr/local/nagios/share/man"';
echo '#define MANEXT ""';
echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"';
echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"';
echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"';
echo '#define PKGLIBEXECDIR ""';
} | sed '/""/d' > configmake.h-t
if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then
rm -f configmake.h-t;
else
rm -f configmake.h; mv configmake.h-t configmake.h;
fi
make all-recursive
make[3]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
make[4]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
rm -f configmake.h-t
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */';
echo '#define PREFIX "/usr/local/nagios"';
echo '#define EXEC_PREFIX "/usr/local/nagios"';
echo '#define BINDIR "/usr/local/nagios/bin"';
echo '#define SBINDIR "/usr/local/nagios/sbin"';
echo '#define LIBEXECDIR "/usr/local/nagios/libexec"';
echo '#define DATAROOTDIR "/usr/local/nagios/share"';
echo '#define DATADIR "/usr/local/nagios/share"';
echo '#define SYSCONFDIR "/usr/local/nagios/etc"';
echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"';
echo '#define LOCALSTATEDIR "/usr/local/nagios/var"';
echo '#define INCLUDEDIR "/usr/local/nagios/include"';
echo '#define OLDINCLUDEDIR "/usr/include"';
echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define INFODIR "/usr/local/nagios/share/info"';
echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define LIBDIR "/usr/local/nagios/lib"';
echo '#define LISPDIR ""';
echo '#define LOCALEDIR "/usr/local/nagios/share/locale"';
echo '#define MANDIR "/usr/local/nagios/share/man"';
echo '#define MANEXT ""';
echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"';
echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"';
echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"';
echo '#define PKGLIBEXECDIR ""';
} | sed '/""/d' > configmake.h-t
if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then
rm -f configmake.h-t;
else
rm -f configmake.h; mv configmake.h-t configmake.h;
fi
make[4]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
make[3]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
make[2]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
Making all in tap
make[2]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/tap'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/tap'
Making all in lib
make[2]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib'
Making all in .
make[3]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib'
Making all in tests
make[3]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib/tests'
make[2]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib'
Making all in plugins
make[2]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/plugins'
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.14"' -g -O2 -L. -o check_ldap check_ldap.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lldap -llber -lpthread -ldl
gcc -DNP_VERSION="1.4.14" -g -O2 -o check_ldap check_ldap.o netutils.o utils.o -L/home/cuiyan/nagios/nagios-plugins-1.4.14/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lldap -llber -lpthread -ldl
httpd-2.2.0-5.1.2
gcc-4.1.0-3
gcc-4.1.1-51.fc5
glibc-2.4-4
glibc-2.4-11
glibc-common-2.4-4
glibc-common-2.4-11
gd-2.0.33-6.2
gd-devel-2.0.33-6.2
gd-devel-2.0.33-8.fc5
安装插件时的错误如下:
make all-recursive
make[1]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14'
Making all in gl
make[2]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
rm -f configmake.h-t
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */';
echo '#define PREFIX "/usr/local/nagios"';
echo '#define EXEC_PREFIX "/usr/local/nagios"';
echo '#define BINDIR "/usr/local/nagios/bin"';
echo '#define SBINDIR "/usr/local/nagios/sbin"';
echo '#define LIBEXECDIR "/usr/local/nagios/libexec"';
echo '#define DATAROOTDIR "/usr/local/nagios/share"';
echo '#define DATADIR "/usr/local/nagios/share"';
echo '#define SYSCONFDIR "/usr/local/nagios/etc"';
echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"';
echo '#define LOCALSTATEDIR "/usr/local/nagios/var"';
echo '#define INCLUDEDIR "/usr/local/nagios/include"';
echo '#define OLDINCLUDEDIR "/usr/include"';
echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define INFODIR "/usr/local/nagios/share/info"';
echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define LIBDIR "/usr/local/nagios/lib"';
echo '#define LISPDIR ""';
echo '#define LOCALEDIR "/usr/local/nagios/share/locale"';
echo '#define MANDIR "/usr/local/nagios/share/man"';
echo '#define MANEXT ""';
echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"';
echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"';
echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"';
echo '#define PKGLIBEXECDIR ""';
} | sed '/""/d' > configmake.h-t
if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then
rm -f configmake.h-t;
else
rm -f configmake.h; mv configmake.h-t configmake.h;
fi
make all-recursive
make[3]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
make[4]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
rm -f configmake.h-t
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */';
echo '#define PREFIX "/usr/local/nagios"';
echo '#define EXEC_PREFIX "/usr/local/nagios"';
echo '#define BINDIR "/usr/local/nagios/bin"';
echo '#define SBINDIR "/usr/local/nagios/sbin"';
echo '#define LIBEXECDIR "/usr/local/nagios/libexec"';
echo '#define DATAROOTDIR "/usr/local/nagios/share"';
echo '#define DATADIR "/usr/local/nagios/share"';
echo '#define SYSCONFDIR "/usr/local/nagios/etc"';
echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"';
echo '#define LOCALSTATEDIR "/usr/local/nagios/var"';
echo '#define INCLUDEDIR "/usr/local/nagios/include"';
echo '#define OLDINCLUDEDIR "/usr/include"';
echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define INFODIR "/usr/local/nagios/share/info"';
echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"';
echo '#define LIBDIR "/usr/local/nagios/lib"';
echo '#define LISPDIR ""';
echo '#define LOCALEDIR "/usr/local/nagios/share/locale"';
echo '#define MANDIR "/usr/local/nagios/share/man"';
echo '#define MANEXT ""';
echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"';
echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"';
echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"';
echo '#define PKGLIBEXECDIR ""';
} | sed '/""/d' > configmake.h-t
if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then
rm -f configmake.h-t;
else
rm -f configmake.h; mv configmake.h-t configmake.h;
fi
make[4]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
make[3]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
make[2]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/gl'
Making all in tap
make[2]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/tap'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/tap'
Making all in lib
make[2]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib'
Making all in .
make[3]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib'
Making all in tests
make[3]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib/tests'
make[2]: Leaving directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/lib'
Making all in plugins
make[2]: Entering directory `/home/cuiyan/nagios/nagios-plugins-1.4.14/plugins'
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.14"' -g -O2 -L. -o check_ldap check_ldap.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lldap -llber -lpthread -ldl
gcc -DNP_VERSION="1.4.14" -g -O2 -o check_ldap check_ldap.o netutils.o utils.o -L/home/cuiyan/nagios/nagios-plugins-1.4.14/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lldap -llber -lpthread -ldl
|
先安装Nagios 再安装Nagios-Plugins
http://support.nagios.com/knowledgebase/officialdocs
http://www.nagios.org/download
http://support.nagios.com/knowledgebase/officialdocs
http://www.nagios.org/download
|
太多的报错 不知道什么原因
不过我看一开始有
make[2]: Nothing to be done for `all'.
这样的信息 你不会已经make过了把
直接make install试试?
不过我看一开始有
make[2]: Nothing to be done for `all'.
这样的信息 你不会已经make过了把
直接make install试试?
|
check_ldap 这个插件报错.检查下本机的ldap.. openssl安装了没有
root@www:~# rpm -qa | grep openssl
openssl-devel-0.9.8e-12.el5
openssl097a-0.9.7a-9.el5_2.1
openssl-0.9.8e-12.el5
openssl-devel-0.9.8e-12.el5
openssl097a-0.9.7a-9.el5_2.1
openssl-0.9.8e-12.el5
root@www:~# rpm -qa | grep openssl
openssl-devel-0.9.8e-12.el5
openssl097a-0.9.7a-9.el5_2.1
openssl-0.9.8e-12.el5
openssl-devel-0.9.8e-12.el5
openssl097a-0.9.7a-9.el5_2.1
openssl-0.9.8e-12.el5
|
貌似有很多库没有。但为什么config的时候没有检查出来呢。