Error during install


#1

While doing a make install I got the following error. I did create the user and add it and apache to the nagcmd group.

root@codemonkey:/home/dave/nagios-3.2.0# make install
cd ./base && make install
make[1]: Entering directory /home/dave/nagios-3.2.0/base' make install-basic make[2]: Entering directory/home/dave/nagios-3.2.0/base’
/usr/bin/ginstall -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/ginstall: invalid group nagios' make[2]: *** [install-basic] Error 1 make[2]: Leaving directory/home/dave/nagios-3.2.0/base’
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/dave/nagios-3.2.0/base’
make: *** [install] Error 2


#2

what configure options did you use? make install is trying to us the group “nagios” which doesn’t exist on your server.


#3

I used the default ones from the Quickstart guide:

./configure --with-command-group=nagcmd


#4

Looks like you need this part as the nagios group is not created


#5

Luca, nice catch. That wasn’t in the quickstart guide. I managed to run the following successfully:

make install

make install-init

make install-config

make install-commandmode

I get an error on make install-webconf

root@codemonkey:/home/dave/nagios-3.2.0# make install-webconf
/usr/bin/ginstall -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf
/usr/bin/ginstall: cannot create regular file `/etc/httpd/conf.d/nagios.conf’: No such file or directory
make: *** [install-webconf] Error 1


#6

./configure --help

–with-httpd-conf=<path_to_conf> sets path to Apache conf.d directory

:wink: