Plugin installation error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Ravil
Posts: 43
Joined: Thu Feb 20, 2014 9:30 pm

Plugin installation error

Post 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!
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Plugin installation error

Post 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
Rob Hassing
Image
Ravil
Posts: 43
Joined: Thu Feb 20, 2014 9:30 pm

Re: Plugin installation error

Post 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
Ravil
Posts: 43
Joined: Thu Feb 20, 2014 9:30 pm

Re: Plugin installation error

Post 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
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: Plugin installation error

Post 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.
/Luke
Locked