Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7.x86

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by rtsupport »

its mentioned earlier as well, we are upgrading existing version from Nagios XI 2014R2.7 to latest one on RHEL 7.4

As current version is running on Linux Server release 6.9 (Santiago) and new VM having Linux Server release 7.4 (Maipo) OS so we have to first
Install the same version of XI on RHEL 7.4, then restore from a existing Nagios backup then upgrade the XI to the latest.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by scottwilkerson »

It does but I don't believe the doc author had this in mind as many of the repositories used 3 + years ago don't even exist. Here is what I would suggest.

Install the latest on a clean minimal install RHEL 7 machine with optional channels enabled.

Then,, perform the restore from backup, which will revert your UI back to the 2014R2.7 version

Finally, perform an upgrade on the machine to get it up to current.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by rtsupport »

is it so..?

As this scenario was discussed earlier as well and as per @npolovenko advised-- if we go with Plan B then we have to recreate users in XI GUI, re enable mail settings, and the historical performance data will not get carried over from the old XI. (which we have to carry)

And if you check this thread form beginning we was able to successfully install the old version, and now when we trying again with clean installation we are getting error.

PLAN - A
a) do a backup - restore. Install the same version of XI on RHEL 7.4, then restore from a backup and then upgrade the XI to the latest.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

PLAN - B
b) Install the latest version of XI on RHEL 7.4, then copy the cfg files from the old XI server to the new one and simply import configs in the following order:
Untitled.png
Untitled.png (3.91 KiB) Viewed 54 times

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Plan B is definitely easier, but you will have to recreate users in XI GUI, reenable mail settings, and the historical performance data will not get carried over from the old XI.

If you go with the Plan A please do not enable firewall, proxy or install any other security enhancements on the new OS until you finish installing and restoring XI. This will make the process way easier.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by scottwilkerson »

I am proposing Plan A, but start with installing latest version of XI and them perform the restore, followed by an upgrade.

If you do Plan B it is going to be a lot more work as you have to re-add ALL the user setting etc.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by rtsupport »

so if we go with Plan A -- will historical performance data get carried over from the old XI to latest one? as we don't want to lose any data..

Also for installation, again it was done before with old XI version ( 2 weeks ago ) and not sure what's wrong now.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by scottwilkerson »

rtsupport wrote:so if we go with Plan A -- will historical performance data get carried over from the old XI to latest one?
Yes, a restore of backup will bring over historical performance data. Plan B will not.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by rtsupport »

hmm lets give a hit this way as well.. will back to you with status.

Also just to confirm before start installation we have to configure proxy as per below URL's so for smooth installation.

https://support.nagios.com/kb/article.php?id=147
https://support.nagios.com/kb/print-555.html
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by scottwilkerson »

Yes if you have proxies you should follow this article first

https://support.nagios.com/kb/article.php?id=147

And also enable the RHEL optional channel (rhel-7-server-optional-rpms) before starting.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by rtsupport »

Hi,

As per your suggestion - I have install latest version of Nagios on Virtual machine installed on local system instead of server for testing purpose.

output --

OS - CentOS Linux release 7.3.1611 (Core)
Nagios XI - Latest Version ( Installed )

And during backup restore -

1st warring --
WARNING: you are trying to restore a OS 6 backup on a OS 7 system
Compiled plugins and other binaries as well as httpd configurations
will NOT be restored.

And after complete restore process Nagios web page goes down with error --

Message: A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, please contact Nagios support.

Run the following from the CLI as root to attempt to repair the DB

/usr/local/nagiosxi/scripts/repair_databases.sh

While repairing DB getting error --

[root@localhost scripts]# /usr/local/nagiosxi/scripts/repair_databases.sh
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2018-06-20 10:55:30 EDT; 44min ago
Process: 27417 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
Process: 27385 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 27416 (mysqld_safe)
CGroup: /system.slice/mariadb.service
├─27416 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─27657 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-fi...

Jun 20 10:55:23 localhost.localdomain systemd[1]: Starting MariaDB database server...
Jun 20 10:55:23 localhost.localdomain mariadb-prepare-db-dir[27385]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.
Jun 20 10:55:26 localhost.localdomain mysqld_safe[27416]: 180620 10:55:26 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Jun 20 10:55:26 localhost.localdomain mysqld_safe[27416]: 180620 10:55:26 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Jun 20 10:55:30 localhost.localdomain systemd[1]: Started MariaDB database server.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2018-06-20 10:55:30 EDT; 44min ago
Process: 27417 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
Process: 27385 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 27416 (mysqld_safe)
CGroup: /system.slice/mariadb.service
├─27416 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─27657 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-fi...

Jun 20 10:55:23 localhost.localdomain systemd[1]: Starting MariaDB database server...
Jun 20 10:55:23 localhost.localdomain mariadb-prepare-db-dir[27385]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.
Jun 20 10:55:26 localhost.localdomain mysqld_safe[27416]: 180620 10:55:26 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Jun 20 10:55:26 localhost.localdomain mysqld_safe[27416]: 180620 10:55:26 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Jun 20 10:55:30 localhost.localdomain systemd[1]: Started MariaDB database server.
DATABASE: nagios
TABLE:
pushd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
ERROR: Could not change to dir: /var/lib/mysql/nagios
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2018-06-20 10:55:30 EDT; 44min ago
Process: 27417 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
Process: 27385 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 27416 (mysqld_safe)
CGroup: /system.slice/mariadb.service
├─27416 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─27657 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-fi...

Jun 20 10:55:23 localhost.localdomain systemd[1]: Starting MariaDB database server...
Jun 20 10:55:23 localhost.localdomain mariadb-prepare-db-dir[27385]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.
Jun 20 10:55:26 localhost.localdomain mysqld_safe[27416]: 180620 10:55:26 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Jun 20 10:55:26 localhost.localdomain mysqld_safe[27416]: 180620 10:55:26 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Jun 20 10:55:30 localhost.localdomain systemd[1]: Started MariaDB database server.
DATABASE: nagiosql
TABLE:
pushd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
ERROR: Could not change to dir: /var/lib/mysql/nagiosql
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by scottwilkerson »

Did you run the ./upgrade script after the restore?
scottwilkerson wrote:I am proposing Plan A, but start with installing latest version of XI and them perform the restore, followed by an upgrade.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked