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
Updating offline version of Nagios xi through web UI
-
- Posts: 18
- Joined: Tue Jan 28, 2020 8:29 am
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Updating offline version of Nagios xi through web UI
It is not possible to update an offline install through the GUI
See pg 3 here
https://assets.nagios.com/downloads/nag ... onment.pdf
See pg 3 here
https://assets.nagios.com/downloads/nag ... onment.pdf
-
- Posts: 18
- Joined: Tue Jan 28, 2020 8:29 am
Re: Updating offline version of Nagios xi through web UI
Ok, I see. Thanks for your reply.
I proceeded to follow the steps on the guide but now I'm having the following error:
Could you please point me in the right direction?
Thanks in advance!
Bruno
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
Thanks in advance!
Bruno
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Updating offline version of Nagios xi through web UI
I believe I found the problem
navigate to the RPM directory and run the following
Then run
or you can re-download the offline RPM tarball with the updates
https://repo.nagios.com/?repo=offline
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
Code: Select all
./upgrade
https://repo.nagios.com/?repo=offline
-
- Posts: 18
- Joined: Tue Jan 28, 2020 8:29 am
Re: Updating offline version of Nagios xi through web UI
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Updating offline version of Nagios xi through web UI
Ok, it looks like you already have them,
Lets just run the following from with the RPM install directory
Lets just run the following from with the RPM install directory
Code: Select all
yum -y --nogpgcheck localupdate *.rpm
-
- Posts: 18
- Joined: Tue Jan 28, 2020 8:29 am
Re: Updating offline version of Nagios xi through web UI
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:
Thanks in advance!
Bruno
What was the issue I was having?
I also got many warnings during the cleanup step. All of them were basically like these:
I guess I shouldn't worry about them, right?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
Thanks in advance!
Bruno
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Updating offline version of Nagios xi through web UI
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
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
-
- Posts: 18
- Joined: Tue Jan 28, 2020 8:29 am
Re: Updating offline version of Nagios xi through web UI
Awesome to hear!
Thanks for your help!
Thanks for your help!
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Updating offline version of Nagios xi through web UI
Locking threadUTE-COT wrote:Awesome to hear!
Thanks for your help!