Page 1 of 1

Plugin installation error

Posted: Tue Dec 09, 2014 2:12 am
by Ravil
Hi! I try to install nagios-plugins-2.0.3 on CentOS 6.5 and after make command I see this error:

Code: Select all

/bin/sh ../libtool --tag=CC   --mode=link gcc -DNP_VERSION='"2.0.3"' -g -O2  -L. -o check_dig check_dig.o libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv -lm -lpthread -ldl 
libtool: link: gcc -DNP_VERSION=\"2.0.3\" -g -O2 -o check_dig check_dig.o  -L. libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lm -lpthread -ldl
/bin/sh ../libtool --tag=CC   --mode=link gcc -DNP_VERSION='"2.0.3"' -g -O2  -L. -o check_nt check_nt.o libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv  -lpthread -ldl 
libtool: link: gcc -DNP_VERSION=\"2.0.3\" -g -O2 -o check_nt check_nt.o  -L. libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lpthread -ldl
rm -f check_ftp
ln -s check_tcp check_ftp
ln: создание символьной ссылки «check_ftp»: Неподдерживаемая операция
make[1]: *** [check_ftp] Ошибка 1
make[1]: Leaving directory `/shares/Baiburin/install/nagios-plugins-2.0.3/plugins'
make: *** [install-recursive] Ошибка 1
Please, help!

Re: Plugin installation error

Posted: Tue Dec 09, 2014 3:33 am
by rhassing
Are you able to create symbolic links by hand?

Just as an example:

Code: Select all

cd /root/
ln -s /etc/resolv.conf ./resolv.conf

Re: Plugin installation error

Posted: Tue Dec 09, 2014 4:31 am
by Ravil
rhassing wrote:Are you able to create symbolic links by hand?

Just as an example:

Code: Select all

cd /root/
ln -s /etc/resolv.conf ./resolv.conf

Code: Select all

ln -s /etc/resolv.conf ./resolv.conf
It is work

Re: Plugin installation error

Posted: Tue Dec 09, 2014 4:45 am
by Ravil
rhassing wrote:Are you able to create symbolic links by hand?

Just as an example:

Code: Select all

cd /root/
ln -s /etc/resolv.conf ./resolv.conf
I run install in root directory. It installed some plugines in /usr/local/nagio/libexec, but I received this mistake:

Code: Select all

libtool: link: gcc -DNP_VERSION=\"2.0.3\" -g -O2 -o check_icmp check_icmp.o ../plugins/netutils.o ../plugins/utils.o  -L. ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lpthread -ldl
make[2]: Leaving directory `/root/nagios-plugins-2.0.3/plugins-root'
Making all in po
make[2]: Entering directory `/root/nagios-plugins-2.0.3/po'
test ! -f ./nagios-plugins.pot || \
          test -z "fr.gmo de.gmo" || make fr.gmo de.gmo
make[3]: Entering directory `/root/nagios-plugins-2.0.3/po'
: --update fr.po nagios-plugins.pot
rm -f fr.gmo && : -c --statistics -o fr.gmo fr.po
mv: невозможно выполнить stat для «t-fr.gmo»: Нет такого файла или каталога
make[3]: *** [fr.gmo] Ошибка 1
make[3]: Leaving directory `/root/nagios-plugins-2.0.3/po'
make[2]: *** [stamp-po] Ошибка 2
make[2]: Leaving directory `/root/nagios-plugins-2.0.3/po'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/root/nagios-plugins-2.0.3'
make: *** [all] Ошибка 2

Re: Plugin installation error

Posted: Tue Dec 09, 2014 10:38 am
by lgroschen
First try this:

Code: Select all

yum -y install libtool automake
Will install these if they are missing. Then go into the plugins root folder and run:

Code: Select all

libtoolize -f
Then recompile plugins and see if it works.