Page 1 of 1
Updating offline version of Nagios XI through web UI
Posted: Fri Aug 07, 2020 11:10 am
by UTE-COT
Hi, how are you?
After originally installing Nagios XI with the offline method (version 5.6.14) I could set up my proxy and now the web UI prompts me to update to the latest version (5.7.2).
I would like to know if it is possible and safe to update my Nagios XI which was installed using the offline method, using the web UI.
If so, will I lose the ability to install future Nagios XI updates with the offline method ? Just in case I ever lose internet access from that VM.
Thanks in advance!
Bruno
Re: Updating offline version of Nagios XI through web UI
Posted: Fri Aug 07, 2020 11:14 am
by scottwilkerson
It is not possible to update an offline install through the GUI
See pg 3 here
https://assets.nagios.com/downloads/nag ... onment.pdf
Re: Updating offline version of Nagios XI through web UI
Posted: Mon Aug 10, 2020 12:40 pm
by UTE-COT
Ok, I see. Thanks for your reply.
I proceeded to follow the steps on the guide but now I'm having the following error:
Code: Select all
[root@lvwtelcotnagiosprd01 nagiosxi]# ./upgrade
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Examining nagiosxi-shellinabox-5.7.2-2.el7.x86_64.rpm: nagiosxi-shellinabox-5.7.2-2.el7.x86_64
Marking nagiosxi-shellinabox-5.7.2-2.el7.x86_64.rpm as an update to nagiosxi-shellinabox-5.6.14-1.el7.x86_64
Examining nagiosxi-nxti-5.7.2-2.el7.x86_64.rpm: nagiosxi-nxti-5.7.2-2.el7.x86_64
Marking nagiosxi-nxti-5.7.2-2.el7.x86_64.rpm as an update to nagiosxi-nxti-5.6.14-1.el7.x86_64
Skipping: and, filename does not end in .rpm.
Examining perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch.rpm: perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch
perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch.rpm: does not update installed package.
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-nxti.x86_64 0:5.6.14-1.el7 will be updated
--> Processing Dependency: nagiosxi-nxti(x86-64) = 5.6.14-1.el7 for package: nagiosxi-5.6.14-1.el7.x86_64
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
---> Package nagiosxi-nxti.x86_64 0:5.7.2-2.el7 will be an update
---> Package nagiosxi-shellinabox.x86_64 0:5.6.14-1.el7 will be updated
--> Processing Dependency: nagiosxi-shellinabox(x86-64) = 5.6.14-1.el7 for package: nagiosxi-5.6.14-1.el7.x86_64
---> Package nagiosxi-shellinabox.x86_64 0:5.7.2-2.el7 will be an update
--> Finished Dependency Resolution
Error: Package: nagiosxi-5.6.14-1.el7.x86_64 (installed)
Requires: nagiosxi-shellinabox(x86-64) = 5.6.14-1.el7
Removing: nagiosxi-shellinabox-5.6.14-1.el7.x86_64 (installed)
nagiosxi-shellinabox(x86-64) = 5.6.14-1.el7
Updated By: nagiosxi-shellinabox-5.7.2-2.el7.x86_64 (/nagiosxi-shellinabox-5.7.2-2.el7.x86_64)
nagiosxi-shellinabox(x86-64) = 5.7.2-2.el7
Error: Package: nagiosxi-5.6.14-1.el7.x86_64 (installed)
Requires: nagiosxi-nxti(x86-64) = 5.6.14-1.el7
Removing: nagiosxi-nxti-5.6.14-1.el7.x86_64 (installed)
nagiosxi-nxti(x86-64) = 5.6.14-1.el7
Updated By: nagiosxi-nxti-5.7.2-2.el7.x86_64 (/nagiosxi-nxti-5.7.2-2.el7.x86_64)
nagiosxi-nxti(x86-64) = 5.7.2-2.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Could you please point me in the right direction?
Thanks in advance!
Bruno
Re: Updating offline version of Nagios XI through web UI
Posted: Mon Aug 10, 2020 1:03 pm
by scottwilkerson
I believe I found the problem
navigate to the RPM directory and run the following
Code: Select all
yum -y --nogpgcheck localinstall nagiosxi-shellinabox*.rpm nagiosxi-nxti*.rpm perl-Nagios-Monitoring-Plugin*.rpm
Then run
or you can re-download the offline RPM tarball with the updates
https://repo.nagios.com/?repo=offline
Re: Updating offline version of Nagios XI through web UI
Posted: Mon Aug 10, 2020 1:25 pm
by UTE-COT
I still got the same error both redownloading the offline RPM tarball and executing the command:
Code: Select all
[root@lvwtelcotnagiosprd01 nagiosxi]# yum -y --nogpgcheck localinstall nagiosxi-shellinabox*.rpm nagiosxi-nxti*.rpm perl-Nagios-Monitoring-Plugin*.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Examining nagiosxi-shellinabox-5.7.2-2.el7.x86_64.rpm: nagiosxi-shellinabox-5.7.2-2.el7.x86_64
Marking nagiosxi-shellinabox-5.7.2-2.el7.x86_64.rpm as an update to nagiosxi-shellinabox-5.6.14-1.el7.x86_64
Examining nagiosxi-nxti-5.7.2-2.el7.x86_64.rpm: nagiosxi-nxti-5.7.2-2.el7.x86_64
Marking nagiosxi-nxti-5.7.2-2.el7.x86_64.rpm as an update to nagiosxi-nxti-5.6.14-1.el7.x86_64
Examining perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch.rpm: perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch
perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch.rpm: does not update installed package.
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-nxti.x86_64 0:5.6.14-1.el7 will be updated
--> Processing Dependency: nagiosxi-nxti(x86-64) = 5.6.14-1.el7 for package: nagiosxi-5.6.14-1.el7.x86_64
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
---> Package nagiosxi-nxti.x86_64 0:5.7.2-2.el7 will be an update
---> Package nagiosxi-shellinabox.x86_64 0:5.6.14-1.el7 will be updated
--> Processing Dependency: nagiosxi-shellinabox(x86-64) = 5.6.14-1.el7 for package: nagiosxi-5.6.14-1.el7.x86_64
---> Package nagiosxi-shellinabox.x86_64 0:5.7.2-2.el7 will be an update
--> Finished Dependency Resolution
Error: Package: nagiosxi-5.6.14-1.el7.x86_64 (installed)
Requires: nagiosxi-shellinabox(x86-64) = 5.6.14-1.el7
Removing: nagiosxi-shellinabox-5.6.14-1.el7.x86_64 (installed)
nagiosxi-shellinabox(x86-64) = 5.6.14-1.el7
Updated By: nagiosxi-shellinabox-5.7.2-2.el7.x86_64 (/nagiosxi-shellinabox-5.7.2-2.el7.x86_64)
nagiosxi-shellinabox(x86-64) = 5.7.2-2.el7
Error: Package: nagiosxi-5.6.14-1.el7.x86_64 (installed)
Requires: nagiosxi-nxti(x86-64) = 5.6.14-1.el7
Removing: nagiosxi-nxti-5.6.14-1.el7.x86_64 (installed)
nagiosxi-nxti(x86-64) = 5.6.14-1.el7
Updated By: nagiosxi-nxti-5.7.2-2.el7.x86_64 (/nagiosxi-nxti-5.7.2-2.el7.x86_64)
nagiosxi-nxti(x86-64) = 5.7.2-2.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Re: Updating offline version of Nagios XI through web UI
Posted: Mon Aug 10, 2020 2:06 pm
by scottwilkerson
Ok, it looks like you already have them,
Lets just run the following from with the RPM install directory
Code: Select all
yum -y --nogpgcheck localupdate *.rpm
Re: Updating offline version of Nagios XI through web UI
Posted: Mon Aug 10, 2020 2:24 pm
by UTE-COT
Great! The installation completed succesfully with that last command!
What was the issue I was having?
I also got many warnings during the cleanup step. All of them were basically like these:
warning: file /tmp/nagiosxi/subcomponents/ndoutils/upgrade: remove failed: No such file or directory
warning: file /tmp/nagiosxi/subcomponents/ndoutils/post-upgrade: remove failed: No such file or directory
warning: file /tmp/nagiosxi/subcomponents/ndoutils/post-install: remove failed: No such file or directory
warning: file /tmp/nagiosxi/subcomponents/ndoutils/ndoutils-2.1.3/update-version: remove failed: No such file or directory
warning: file /tmp/nagiosxi/subcomponents/ndoutils/ndoutils-2.1.3/startup/upstart-init.in: remove failed: No such file or directory
warning: file /tmp/nagiosxi/subcomponents/ndoutils/ndoutils-2.1.3/startup/upstart-init: remove failed: No such file or directory
warning: file /tmp/nagiosxi/subcomponents/ndoutils/ndoutils-2.1.3/startup/tmpfile.conf.in: remove failed: No such file or directory
I guess I shouldn't worry about them, right?
Thanks in advance!
Bruno
Re: Updating offline version of Nagios XI through web UI
Posted: Mon Aug 10, 2020 3:00 pm
by scottwilkerson
These errors aren't anything to worry about.
I believe there is a bug in the ./upgrade script that comes packaged in the offline install package, I'm sending details over to the developers to adjust the script
Re: Updating offline version of Nagios XI through web UI
Posted: Tue Aug 11, 2020 8:10 am
by UTE-COT
Awesome to hear!
Thanks for your help!
Re: Updating offline version of Nagios XI through web UI
Posted: Tue Aug 11, 2020 8:44 am
by scottwilkerson
UTE-COT wrote:Awesome to hear!
Thanks for your help!
Locking thread