Question

how to solve the errors in make install nagios centOS8

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

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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, 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.

Hello there,

In addition to what has already been mentioned, I wanted to point out that CentOS Linux 8 has reached End Of Life (EOL) on December 31st, 2021.

I would strongly recommend planning either migration to another OS like Debian or Ubuntu, or upgrading to CentOS Stream.

I personally believe that the safest way to do this is to follow these steps here:

  • Spin up a new Droplet with the desired OS
  • Install the necessary services (webserver, sql server, etc.)
  • After that using rsync for example copy over your files and migrate your databases
  • Then test your website and server fully to make sure that everything is working as expected
  • Finally, change your DNS to point to the new Droplet

Regards, Alex

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