Question

how to solve the errors in make install nagios centOS8

Posted September 8, 2020 110 views
CentOSMonitoring

as i was following a tutorial i got a error coming in make install
as such
“cd ./base && make install
make[1]: Entering directory ’/root/nagios/nagios-4.0.8/base’
make install-basic
make[2]: Entering directory ’/root/nagios/nagios-4.0.8/base’
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install: invalid user ‘nagios’
make[2]: *** [Makefile:183: install-basic] Error 1
make[2]: Leaving directory ’/root/nagios/nagios-4.0.8/base’
make[1]: *** [Makefile:176: install] Error 2
make[1]: Leaving directory ’/root/nagios/nagios-4.0.8/base’
make: *** [Makefile:234: install] Error ”
open to solutions

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hi,
It looks like an issue related to user nagios. What is a result of executing command

id nagios

?

BTW. Unless you need to have version 4.0.8, you can install nagios (version 4.4.5) from epel repository using standard method (dnf) in CentOS 8.

Hi @bhagi422,

It’s possible you don’t have the proper packages installed and thus it fails. You need to install the following packages in order to be able to install Nagios

dnf install gcc glibc glibc-common wget gd gd-devel perl

Additionally, make sure you use the proper configure command like so

# ./configure --with-command-group=nagcmd
# make all
# make install
# make install-init
# make install-daemoninit
# make install-config
# make install-commandmode
# make install-exfoliation

Regards,
KFSys

Submit an Answer