Page 1 of 1

Nagios XI installtion error

Posted: Thu Jun 25, 2020 3:39 am
by RIDS_I2MP
Hi Team,

We have built a fresh Linux server, below is the details:
Linux version 4.18.0-193.6.3.el8_2.x86_64 ([email protected]) (gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)) #1 SMP Wed Jun 10 11:09:32 UTC 2020

We were installing Nagios XI latest version on it today and the installation failed with the error message attached here.

Installing Nagios XI base files...
Creating product directory...
./B-installxi: line 104: /etc/php-fpm.d/www.conf: No such file or directory


Also, I am attaching install.log file here for your reference.

Please help us to resolve this issue on priority.

Thanks in advance!!

Re: Nagios XI installtion error

Posted: Thu Jun 25, 2020 3:38 pm
by benjaminsmith
Hi @RIDS_I2MP,

What operating system are you installing Nagios XI on?

If this is a Cent OS 8 system, there are few steps in the installation script to enable php-fpm and modify the configs.

Are you able to re-start the php-fpm service? If so, try running the upgrade once more.

Code: Select all

systemctl restart php-fpm
systemctl status php-fpm
Is the configuration file present on the server?

Code: Select all

ls -l /etc/php-fpm.d/www.conf

Re: Nagios XI installtion error

Posted: Fri Jun 26, 2020 1:24 am
by RIDS_I2MP
Hello,

Yes, we are using Centos 8.

[root@vmaz-nagiosxi ~]# ls -l /etc/php-fpm.d/www.conf
ls: cannot access '/etc/php-fpm.d/www.conf': No such file or directory
[root@vmaz-nagiosxi ~]#

No, that config file is not present here.

[root@vmaz-nagiosxi ~]# systemctl restart php-fpm
Failed to restart php-fpm.service: Unit php-fpm.service not found.
[root@vmaz-nagiosxi ~]#

[root@vmaz-nagiosxi ~]# systemctl status php-fpm
Unit php-fpm.service could not be found.
[root@vmaz-nagiosxi ~]#


Above is the output for the commands that you have asked.

Just few days back, I have installed the same setup on another server which is also Centos 8, but I did not do any additional changes in that and the setup was installed successfully.

Why it is creating issue on another system with same configuration?

I request you to provide me what all config changes are required? Also, let me know, do I need to reinstall the setup?
Or the changes will make it complete?

If reinstallation is required, how to uninstall the half installed setup.

Please refer to the install.log file that I had provided.

Thank you!

Re: Nagios XI installtion error

Posted: Fri Jun 26, 2020 1:44 pm
by lmiltchev
This is strange - the php-fpm package should've been installed on your system, but it's not. Try installing it by running:

Code: Select all

dnf install php-fp
then run:

Code: Select all

systemctl enable php-fpm
systemctl start php-fpm
If this succeeds, try installing Nagios XI again. Let us know if this helped.

Re: Nagios XI installtion error

Posted: Mon Jun 29, 2020 12:19 am
by RIDS_I2MP
Hello,

Yes, it was giving error because of package.
I installed the package and followed the steps provided by you. The installation is complete now.

Thanks for your help!!

Re: Nagios XI installtion error

Posted: Mon Jun 29, 2020 7:32 am
by scottwilkerson
RIDS_I2MP wrote:Hello,

Yes, it was giving error because of package.
I installed the package and followed the steps provided by you. The installation is complete now.

Thanks for your help!!
Great!

Locking thread