Nagios XI installation failed - ./3-dbservers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
UTE-COT
Posts: 18
Joined: Tue Jan 28, 2020 8:29 am

Nagios XI installation failed - ./3-dbservers

Post by UTE-COT »

Hi, how are you?

I'm trying to install my Nagios XI using the offline installer and following the instructions found at https://repo.nagios.com/?repo=offline but i'm getting an error. It's a clean install (well, not any longer) of RedHat 7.4.

This is an extract of the output of the ./fullinstall command:

Code: Select all

MySQL not yet installed - that's okay.
Fixing php-mcrypt bug...
Running './2-usersgroups'...
Adding users and groups...
useradd: user 'nagios' already exists
usermod: no changes
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
Users and groups added OK
RESULT=0
Running './3-dbservers'...
MySQL installed OK - continuing...
Starting MySQL...
Redirecting to /bin/systemctl restart mariadb.service
Initializing MySQL...
Saved password 'nagiosxi' worked...
MySQL initialized OK
Failed to execute operation: No such file or directory
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './3-dbservers'
I attach the full output. I don't know why but it's not creating an install.log file, I imagine it's because I'm using the offline installer.

If I run again the ./fullinstall command it examines a lot of packages (it doesnt update anyhting) and ends saying: "Nothing to do"

Any help is greatly appreciated.

Thanks in advance.

Bruno
You do not have the required permissions to view the files attached to this post.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Nagios XI installation failed - ./3-dbservers

Post by jdunitz »

Hi, Bruno!


Are you running this as root, or another user?

Also, do you have write permission to /tmp?

Lastly, your disk isn't 100% full by any chance, is it?

I ask, because the thing it appears to be choking on is creating an empty file under /tmp. If that's failing, we'd want to know why. The most basic explanations for that happening would be space or permissions problems.

Let us know what you find!
--Jeffrey
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
UTE-COT
Posts: 18
Joined: Tue Jan 28, 2020 8:29 am

Re: Nagios XI installation failed - ./3-dbservers

Post by UTE-COT »

Hi Jeffrey! Thanks for your reply!

I am running the installer as the root user.

I do have permissions to write in the /tmp directory.

This is the output of a df -h:

Code: Select all

[root@lvwtelcotnagiosprd01 nagiosxi]# df -h
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/vg01-root     2.9G   47M  2.7G   2% /
devtmpfs                  901M     0  901M   0% /dev
tmpfs                     912M     0  912M   0% /dev/shm
tmpfs                     912M  8.6M  903M   1% /run
tmpfs                     912M     0  912M   0% /sys/fs/cgroup
/dev/mapper/vg01-usr      6.7G  2.8G  3.6G  44% /usr
/dev/sda1                 476M  178M  269M  40% /boot
/dev/mapper/vg01-opt      2.9G   38M  2.7G   2% /opt
/dev/mapper/vg01-tmp      2.4G  258M  2.1G  12% /tmp
/dev/mapper/vg01-soporte  2.9G  9.0M  2.8G   1% /soporte
/dev/mapper/vg01-home     488M  141M  312M  32% /home
/dev/mapper/vg01-var      2.0G  732M  1.2G  39% /var
tmpfs                     183M     0  183M   0% /run/user/0
Thanks in advance!

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

Re: Nagios XI installation failed - ./3-dbservers

Post by ssax »

The easiest fix for you to run this command:

Code: Select all

touch /usr/lib/systemd/system/postgresql.service
Then re-run the fullinstall.

Once it's finished, remove this file:

Code: Select all

/usr/lib/systemd/system/postgresql.service
Let us know the results.
UTE-COT
Posts: 18
Joined: Tue Jan 28, 2020 8:29 am

Re: Nagios XI installation failed - ./3-dbservers

Post by UTE-COT »

Hi! How are you?

Apparently nothing happened.

I attach the output after running those commands and a few additional ones trying to start nagios service.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI installation failed - ./3-dbservers

Post by ssax »

Hi, doing well, how about yourself?

Try this:

Code: Select all

touch /usr/lib/systemd/system/postgresql.service
yum reinstall nagiosxi
rm -f /usr/lib/systemd/system/postgresql.service
Edit: The reason that failed was because it thinks it is installed properly as the RPM is technically installed.
UTE-COT
Posts: 18
Joined: Tue Jan 28, 2020 8:29 am

Re: Nagios XI installation failed - ./3-dbservers

Post by UTE-COT »

Now i'm getting the following:

Code: Select all

[root@lvwtelcotnagiosprd01 ~]# touch /usr/lib/systemd/system/postgresql.service
[root@lvwtelcotnagiosprd01 ~]# cd /tmp/rpms/nagiosxi
[root@lvwtelcotnagiosprd01 nagiosxi]# yum reinstall nagiosxi
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-ansible-2.5-rpms                                                                                                         | 2.4 kB  00:00:00
rhel-7-server-extras-rpms                                                                                                              | 2.0 kB  00:00:00
rhel-7-server-optional-rpms                                                                                                            | 1.8 kB  00:00:00
rhel-7-server-rpms                                                                                                                     | 2.0 kB  00:00:00
rhel-7-server-satellite-tools-6.3-rpms                                                                                                 | 2.1 kB  00:00:00
rhel-server-rhscl-7-rpms                                                                                                               | 2.0 kB  00:00:00
Installed package nagiosxi-5.6.13-1.el7.x86_64 not available.
Error: Nothing to do
[root@lvwtelcotnagiosprd01 nagiosxi]#
[root@lvwtelcotnagiosprd01 nagiosxi]# ls -l | grep nagiosxi-
-rw-r--r-- 1 root root 59750608 Apr  8 12:31 nagiosxi-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root   249836 Apr  8 12:31 nagiosxi-mrtg-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root  3983208 Apr  8 12:31 nagiosxi-nagioscore-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root   112604 Apr  8 12:31 nagiosxi-nagiosmobile-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root  1688244 Apr  8 12:31 nagiosxi-nagiosplugins-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root  1658456 Apr  8 12:31 nagiosxi-nagvis-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root   180144 Apr  8 12:31 nagiosxi-ndoutils-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 10832564 Apr  8 12:31 nagiosxi-nrds-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root    88900 Apr  8 12:31 nagiosxi-nrpe-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root    45704 Apr  8 12:31 nagiosxi-nsca-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root    57680 Apr  8 12:31 nagiosxi-nxti-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root    31084 Apr  8 12:31 nagiosxi-pnp-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root   122484 Apr  8 12:31 nagiosxi-shellinabox-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 23486328 Apr  8 12:31 nagiosxi-wkhtmltox-5.6.13-1.el7.x86_64.rpm
-rw-r--r-- 1 root root  4560852 Apr  8 12:31 nagiosxi-wmic-5.6.13-1.el7.x86_64.rpm
[root@lvwtelcotnagiosprd01 nagiosxi]#
[root@lvwtelcotnagiosprd01 nagiosxi]# rpm -qa | grep nagios
nagiosxi-ndoutils-5.6.13-1.el7.x86_64
nagiosxi-wkhtmltox-5.6.13-1.el7.x86_64
nagiosxi-nxti-5.6.13-1.el7.x86_64
nagiosxi-nagiosplugins-5.6.13-1.el7.x86_64
nagiosxi-nagiosmobile-5.6.13-1.el7.x86_64
nagiosxi-nrpe-5.6.13-1.el7.x86_64
nagiosxi-nrds-5.6.13-1.el7.x86_64
nagiosxi-pnp-5.6.13-1.el7.x86_64
nagiosxi-wmic-5.6.13-1.el7.x86_64
nagiosxi-mrtg-5.6.13-1.el7.x86_64
nagiosxi-shellinabox-5.6.13-1.el7.x86_64
nagiosxi-nagvis-5.6.13-1.el7.x86_64
nagiosxi-5.6.13-1.el7.x86_64
nagiosxi-nagioscore-5.6.13-1.el7.x86_64
nagiosxi-nsca-5.6.13-1.el7.x86_64
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI installation failed - ./3-dbservers

Post by ssax »

Please do this instead: (ignore the warnings)

Code: Select all

yum remove nagiosxi -y
touch /usr/lib/systemd/system/postgresql.service
Then go back in and run the fullinstall.

Then do this:

Code: Select all

rm -f /usr/lib/systemd/system/postgresql.service
UTE-COT
Posts: 18
Joined: Tue Jan 28, 2020 8:29 am

Re: Nagios XI installation failed - ./3-dbservers

Post by UTE-COT »

Hi ssax, how are you?

I couldn't test the last commands you sent me because on friday I asked the VMWare admins to wipe the virtual machine and create a new one. They did it today. Then I downloaded the latest offline installer and I could install it without any issues.

Now I just have to activate my XI and my Enterprise Edition licenses.

Thanks for your help!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI installation failed - ./3-dbservers

Post by scottwilkerson »

UTE-COT wrote:Then I downloaded the latest offline installer and I could install it without any issues.
Great!

Locking forum thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked