Unable to build plugins when nagios-core built with a prefix

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
Kirkis
Posts: 1
Joined: Mon Feb 29, 2016 9:46 am

Unable to build plugins when nagios-core built with a prefix

Post by Kirkis »

Hi,

I tried to build the nagios plugins v2.1.1 just after successfully building nagios-core v4.1.1 on Debian v7.3.

Here's make's output:

Code: Select all

[...]
Making install in plugins
make[1]: Entering directory `/usr/local/src/nagios-plugins-2.1.1/plugins'
make[2]: Entering directory `/usr/local/src/nagios-plugins-2.1.1/plugins'
test -z "/usr/local/nagios/libexec" || /bin/mkdir -p "/usr/local/nagios/libexec"
  /bin/sh ../libtool   --mode=install /usr/bin/install -c -o nagios -g nagios -m 0550 check_apt '/usr/local/nagios/libexec/.//usr/local/nagios4/check_apt'
libtool: install: /usr/bin/install -c -o nagios -g nagios -m 0550 check_apt /usr/local/nagios/libexec/.//usr/local/nagios4/check_apt
/usr/bin/install: cannot create regular file `/usr/local/nagios/libexec/.//usr/local/nagios4/check_apt': No such file or directory
Configure line for nagios plugins:

Code: Select all

./configure --program-prefix=/usr/local/nagios4/ --with-nagios-user=nagios --with-nagios-group=nagios --without-world-permissions
Configure line for nagios core:

Code: Select all

./configure --prefix=/usr/local/nagios4 --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail
Could you help me figure out what went wrong?

Thanks,
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to build plugins when nagios-core built with a pr

Post by ssax »

Try this:

Code: Select all

./configure --prefix=/usr/local/nagios4/ --with-nagios-user=nagios --with-nagios-group=nagios --without-world-permissions
Locked