Page 1 of 3
nagiosxi 5.5.11 install showing wrong version
Posted: Wed Apr 10, 2019 1:00 pm
by rjmon
I installed 5.5.11 on a new server RHEL 7.6 after installing it shows me 5.4.7 version. After installing i copied the configs and the database from another server. Not sure whether the version comes from DB copy. Please let me know
Re: nagiosxi 5.5.11 install showing wrong version
Posted: Wed Apr 10, 2019 1:18 pm
by tgriep
Yes, if you did a backup of a 5.4.7 server and restored it on the new server, that will revert the version number and overwrite the new server with the older Nagios XI packages, etc....
To bring the server back up to XI version 5.5.11, you can follow the manual upgrade procedure at the following link.
https://assets.nagios.com/downloads/nag ... ctions.pdf
Try it out and let us know if you have any further questions.
Re: nagiosxi 5.5.11 install showing wrong version
Posted: Wed Apr 10, 2019 1:57 pm
by rjmon
I ran the upgrade script and i am still seeing the old version. Attaching the upgrade log.
Re: nagiosxi 5.5.11 install showing wrong version
Posted: Wed Apr 10, 2019 2:50 pm
by ssax
*** NOTE: You can only backup and restore to the exact same XI version.
Your options are:
1) Upgrade the OLD server first to 5.5.11, back up the OLD server (now at 5.5.11), transfer the backup file to the new XI server and restore to it.
OR
2) Install XI 5.4.7 on the NEW server, back up the OLD server (now at 5.4.7), transfer the backup file to the new XI server and restore to it, now upgrade the new server to XI 5.5.11.
Which method did you do? Or did you restore an XI 5.4.7 backup on top of XI 5.5.11? That won't work.
Re: nagiosxi 5.5.11 install showing wrong version
Posted: Wed Apr 10, 2019 8:29 pm
by rjmon
I installed 5.5.11 on the new server and then copied the files from 5.4.7.. Looks like that is not right method i guess?
Re: nagiosxi 5.5.11 install showing wrong version
Posted: Thu Apr 11, 2019 2:44 pm
by ssax
Correct, if you want to go that route you would need to follow these instructions (which is essentially a Core migration to XI):
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: nagiosxi 5.5.11 install showing wrong version
Posted: Tue May 21, 2019 9:29 am
by rjmon
I was working on other projects before i tried this again..
2) Install XI 5.4.7 on the NEW server, back up the OLD server (now at 5.4.7), transfer the backup file to the new XI server and restore to it, now upgrade the new server to XI 5.5.11.
I tried this method...Only change is the version, this time i used 5.6.2. Still the same .. As per the document after running the upgrade script it should tell me that it is complete. i did`nt see any message from it.
Code: Select all
[nagadm@nagio01aplxa nagiosxi]$ sudo ./upgrade
RPM Install detected, switching to yum update
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
epel/x86_64/metalink | 15 kB 00:00:00
epel | 4.7 kB 00:00:00
rhel-7-server-optional-rpms | 2.0 kB 00:00:00
rhel-7-server-rh-common-rpms | 2.1 kB 00:00:00
rhel-7-server-rhn-tools-rpms | 1.8 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-7-server-satellite-tools-6.4-rpms | 2.1 kB 00:00:00
(1/2): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(2/2): epel/x86_64/primary_db | 6.7 MB 00:00:00
No packages marked for update
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
After upgrade when i tried to access nagiosxi , it asked me to run the repair_database script which i ran. After logging in i am still seeing the 5.4.7 version. Any thoughts ??
Re: nagiosxi 5.5.11 install showing wrong version
Posted: Tue May 21, 2019 2:50 pm
by ssax
I don't see the nagios repos listed in that output and that's where the updates would be coming from for RPM installs, you would need to do this:
Code: Select all
rpm -Uvh https://repo.nagios.com/nagios/7/nagios-repo-7-3.el7.noarch.rpm
yum update nagiosxi
Taken from here:
https://repo.nagios.com/?repo=rpm-rhel
Re: nagiosxi 5.5.11 install showing wrong version
Posted: Wed May 22, 2019 2:01 pm
by rjmon
Firewall rules will not allow to access that repo. That is the reason i downloaded the package and running the upgrade from that folder..
Code: Select all
$ sudo rpm -Uvh https://repo.nagios.com/nagios/7/nagios-repo-7-3.el7.noarch.rpm
Retrieving https://repo.nagios.com/nagios/7/nagios-repo-7-3.el7.noarch.rpm
warning: /var/tmp/rpm-tmp.Y6YYVy: Header V4 RSA/SHA1 Signature, key ID 1e924cb3: NOKEY
Preparing... ################################# [100%]
package nagios-repo-7-3.el7.noarch is already installed
$ sudo yum update nagiosxi
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
epel/x86_64/metalink | 18 kB 00:00:00
rhel-7-server-optional-rpms | 2.0 kB 00:00:00
rhel-7-server-rh-common-rpms | 2.1 kB 00:00:00
rhel-7-server-rhn-tools-rpms | 1.8 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-7-server-satellite-tools-6.4-rpms | 2.1 kB 00:00:00
No packages marked for update
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
Re: nagiosxi 5.5.11 install showing wrong version
Posted: Thu May 23, 2019 2:04 pm
by rjmon
Now i am able to run upgrade.. I got conflicts with packages so i tried to skip those, but it is still showing the old version(5.4.7)
Code: Select all
]$ sudo yum upgrade --skip-broken
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
rhel-7-server-optional-rpms | 2.0 kB 00:00:00
rhel-7-server-rh-common-rpms | 2.1 kB 00:00:00
rhel-7-server-rhn-tools-rpms | 1.8 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-7-server-satellite-tools-6.4-rpms | 2.1 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package gearmand.x86_64 1:0.33-2 will be updated
---> Package gearmand.x86_64 1:0.33-7 will be an update
---> Package gearmand-devel.x86_64 1:0.33-2 will be updated
---> Package gearmand-devel.x86_64 1:0.33-7 will be an update
---> Package gearmand-server.x86_64 1:0.33-2 will be updated
---> Package gearmand-server.x86_64 1:0.33-7 will be an update
---> Package nagiosxi.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi.x86_64 0:5.6.2-1.el7 will be an update
--> Processing Dependency: nagiosxi-shellinabox(x86-64) = 5.6.2-1.el7 for package: nagiosxi-5.6.2-1.el7.x86_64
--> Processing Dependency: nagiosxi-nxti(x86-64) = 5.6.2-1.el7 for package: nagiosxi-5.6.2-1.el7.x86_64
--> Processing Dependency: php-imap for package: nagiosxi-5.6.2-1.el7.x86_64
--> Processing Dependency: perl-Nagios-Monitoring-Plugin for package: nagiosxi-5.6.2-1.el7.x86_64
--> Processing Dependency: net-snmp-perl for package: nagiosxi-5.6.2-1.el7.x86_64
---> Package nagiosxi-ajaxterm.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-ajaxterm.x86_64 0:5-4.13.el7 will be an update
---> Package nagiosxi-mrtg.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-mrtg.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-nagioscore.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nagioscore.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-nagiosmobile.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nagiosmobile.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-nagiosplugins.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nagiosplugins.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-nagiosql.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nagiosql.x86_64 0:5-4.13.el7 will be an update
---> Package nagiosxi-nagvis.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nagvis.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-ndoutils.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-ndoutils.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-nrds.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nrds.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-nrpe.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nrpe.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-nsca.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nsca.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-pnp.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-pnp.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-wkhtmltox.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-wkhtmltox.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-wmic.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-wmic.x86_64 0:5.6.2-1.el7 will be an update
--> Running transaction check
---> Package nagiosxi-nxti.x86_64 0:5.6.2-1.el7 will be installed
---> Package nagiosxi-shellinabox.x86_64 0:5.6.2-1.el7 will be installed
---> Package net-snmp-perl.x86_64 1:5.7.2-37.el7 will be installed
---> Package perl-Nagios-Monitoring-Plugin.noarch 0:0.51-1.el7 will be installed
---> Package php-imap.x86_64 0:5.4.16-9.el7 will be installed
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.4.16-9.el7.x86_64
--> Running transaction check
---> Package libc-client.x86_64 0:2007f-16.el7 will be installed
--> Processing Conflict: nagiosxi-shellinabox-5.6.2-1.el7.x86_64 conflicts shellinabox
epel/x86_64/filelists_db | 11 MB 00:00:00
nagiosxi-deps/filelists | 16 kB 00:00:00
rhel-7-server-optional-rpms/x86_64/filelists | 23 MB 00:00:00
--> Running transaction check
---> Package gearmand.x86_64 1:0.33-2 will be updated
---> Package gearmand.x86_64 1:0.33-7 will be an update
---> Package gearmand-devel.x86_64 1:0.33-2 will be updated
---> Package gearmand-devel.x86_64 1:0.33-7 will be an update
---> Package gearmand-server.x86_64 1:0.33-2 will be updated
---> Package gearmand-server.x86_64 1:0.33-7 will be an update
---> Package nagiosxi.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-ajaxterm.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-ajaxterm.x86_64 0:5-4.13.el7 will be an update
---> Package nagiosxi-nagioscore.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nagioscore.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-nagiosql.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nagiosql.x86_64 0:5-4.13.el7 will be an update
--> Running transaction check
---> Package gearmand.x86_64 1:0.33-2 will be updated
---> Package gearmand.x86_64 1:0.33-7 will be an update
---> Package gearmand-devel.x86_64 1:0.33-2 will be updated
---> Package gearmand-devel.x86_64 1:0.33-7 will be an update
---> Package gearmand-server.x86_64 1:0.33-2 will be updated
---> Package gearmand-server.x86_64 1:0.33-7 will be an update
---> Package nagiosxi-ajaxterm.x86_64 0:5-4.7.el7 will be updated
--> Processing Dependency: nagiosxi-ajaxterm(x86-64) = 5-4.7.el7 for package: nagiosxi-5-4.7.el7.x86_64
---> Package nagiosxi-ajaxterm.x86_64 0:5-4.13.el7 will be an update
---> Package nagiosxi-nagioscore.x86_64 0:5-4.7.el7 will be updated
--> Processing Dependency: nagiosxi-nagioscore(x86-64) = 5-4.7.el7 for package: nagiosxi-5-4.7.el7.x86_64
---> Package nagiosxi-nagioscore.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-nagiosql.x86_64 0:5-4.7.el7 will be updated
--> Processing Dependency: nagiosxi-nagiosql(x86-64) = 5-4.7.el7 for package: nagiosxi-5-4.7.el7.x86_64
---> Package nagiosxi-nagiosql.x86_64 0:5-4.13.el7 will be an update
--> Running transaction check
---> Package nagiosxi-ajaxterm.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-ajaxterm.x86_64 0:5-4.13.el7 will be an update
---> Package nagiosxi-nagioscore.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nagioscore.x86_64 0:5.6.2-1.el7 will be an update
---> Package nagiosxi-nagiosql.x86_64 0:5-4.7.el7 will be updated
---> Package nagiosxi-nagiosql.x86_64 0:5-4.13.el7 will be an update
--> Running transaction check
---> Package gearmand.x86_64 1:0.33-2 will be updated
---> Package gearmand.x86_64 1:0.33-7 will be an update
---> Package gearmand-devel.x86_64 1:0.33-2 will be updated
---> Package gearmand-devel.x86_64 1:0.33-7 will be an update
---> Package gearmand-server.x86_64 1:0.33-2 will be updated
---> Package gearmand-server.x86_64 1:0.33-7 will be an update
--> Finished Dependency Resolution
Packages skipped because of dependency problems:
libc-client-2007f-16.el7.x86_64 from epel
nagiosxi-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-ajaxterm-5-4.13.el7.x86_64 from nagios-base
nagiosxi-mrtg-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-nagioscore-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-nagiosmobile-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-nagiosplugins-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-nagiosql-5-4.13.el7.x86_64 from nagios-base
nagiosxi-nagvis-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-ndoutils-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-nrds-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-nrpe-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-nsca-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-nxti-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-pnp-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-shellinabox-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-wkhtmltox-5.6.2-1.el7.x86_64 from nagios-base
nagiosxi-wmic-5.6.2-1.el7.x86_64 from nagios-base
1:net-snmp-perl-5.7.2-37.el7.x86_64 from rhel-7-server-optional-rpms
perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch from nagiosxi-deps
php-imap-5.4.16-9.el7.x86_64 from epel
Error: Success - deps resolved
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************
Dependencies Resolved
============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Updating:
gearmand x86_64 1:0.33-7 nagios-base 106 k
gearmand-devel x86_64 1:0.33-7 nagios-base 193 k
gearmand-server x86_64 1:0.33-7 nagios-base 116 k
Skipped (dependency problems):
libc-client x86_64 2007f-16.el7 epel 562 k
nagiosxi x86_64 5.6.2-1.el7 nagios-base 55 M
nagiosxi-ajaxterm x86_64 5-4.13.el7 nagios-base 67 k
nagiosxi-mrtg x86_64 5.6.2-1.el7 nagios-base 244 k
nagiosxi-nagioscore x86_64 5.6.2-1.el7 nagios-base 3.8 M
nagiosxi-nagiosmobile x86_64 5.6.2-1.el7 nagios-base 110 k
nagiosxi-nagiosplugins x86_64 5.6.2-1.el7 nagios-base 1.6 M
nagiosxi-nagiosql x86_64 5-4.13.el7 nagios-base 667 k
nagiosxi-nagvis x86_64 5.6.2-1.el7 nagios-base 1.6 M
nagiosxi-ndoutils x86_64 5.6.2-1.el7 nagios-base 176 k
nagiosxi-nrds x86_64 5.6.2-1.el7 nagios-base 10 M
nagiosxi-nrpe x86_64 5.6.2-1.el7 nagios-base 87 k
nagiosxi-nsca x86_64 5.6.2-1.el7 nagios-base 45 k
nagiosxi-nxti x86_64 5.6.2-1.el7 nagios-base 56 k
nagiosxi-pnp x86_64 5.6.2-1.el7 nagios-base 30 k
nagiosxi-shellinabox x86_64 5.6.2-1.el7 nagios-base 120 k
nagiosxi-wkhtmltox x86_64 5.6.2-1.el7 nagios-base 22 M
nagiosxi-wmic x86_64 5.6.2-1.el7 nagios-base 4.3 M
net-snmp-perl x86_64 1:5.7.2-37.el7 rhel-7-server-optional-rpms 337 k
perl-Nagios-Monitoring-Plugin noarch 0.51-1.el7 nagiosxi-deps 62 k
php-imap x86_64 5.4.16-9.el7 epel 38 k
Transaction Summary
============================================================================================================================================================================================================
Upgrade 3 Packages
Skipped (dependency problems) 21 Packages
Total download size: 414 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7Server/nagios-base/packages/gearmand-devel-0.33-7.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID c62934a0: NOKEY ] 0.0 B/s | 0 B --:--:-- ETA
Public key for gearmand-devel-0.33-7.el7.x86_64.rpm is not installed
(1/3): gearmand-devel-0.33-7.el7.x86_64.rpm | 193 kB 00:00:00
(2/3): gearmand-0.33-7.el7.x86_64.rpm | 106 kB 00:00:00
(3/3): gearmand-server-0.33-7.el7.x86_64.rpm | 116 kB 00:00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 610 kB/s | 414 kB 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2
Importing GPG key 0xC62934A0:
Userid : "Nagios Enterprises <[email protected]>"
Fingerprint: f704 41a0 2616 a51c 6fef c500 67a7 5c9b c629 34a0
Package : nagios-repo-7-3.el7.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : 1:gearmand-0.33-7.x86_64 1/6
Updating : 1:gearmand-devel-0.33-7.x86_64 2/6
Updating : 1:gearmand-server-0.33-7.x86_64 3/6
Cleanup : 1:gearmand-devel-0.33-2.x86_64 4/6
Cleanup : 1:gearmand-0.33-2.x86_64 5/6
Cleanup : 1:gearmand-server-0.33-2.x86_64 6/6
Uploading Package Profile
Verifying : 1:gearmand-devel-0.33-7.x86_64 1/6
Verifying : 1:gearmand-server-0.33-7.x86_64 2/6
Verifying : 1:gearmand-0.33-7.x86_64 3/6
Verifying : 1:gearmand-server-0.33-2.x86_64 4/6
Verifying : 1:gearmand-0.33-2.x86_64 5/6
Verifying : 1:gearmand-devel-0.33-2.x86_64 6/6
Updated:
gearmand.x86_64 1:0.33-7 gearmand-devel.x86_64 1:0.33-7 gearmand-server.x86_64 1:0.33-7
Skipped (dependency problems):
libc-client.x86_64 0:2007f-16.el7 nagiosxi.x86_64 0:5.6.2-1.el7 nagiosxi-ajaxterm.x86_64 0:5-4.13.el7 nagiosxi-mrtg.x86_64 0:5.6.2-1.el7
nagiosxi-nagioscore.x86_64 0:5.6.2-1.el7 nagiosxi-nagiosmobile.x86_64 0:5.6.2-1.el7 nagiosxi-nagiosplugins.x86_64 0:5.6.2-1.el7 nagiosxi-nagiosql.x86_64 0:5-4.13.el7
nagiosxi-nagvis.x86_64 0:5.6.2-1.el7 nagiosxi-ndoutils.x86_64 0:5.6.2-1.el7 nagiosxi-nrds.x86_64 0:5.6.2-1.el7 nagiosxi-nrpe.x86_64 0:5.6.2-1.el7
nagiosxi-nsca.x86_64 0:5.6.2-1.el7 nagiosxi-nxti.x86_64 0:5.6.2-1.el7 nagiosxi-pnp.x86_64 0:5.6.2-1.el7 nagiosxi-shellinabox.x86_64 0:5.6.2-1.el7
nagiosxi-wkhtmltox.x86_64 0:5.6.2-1.el7 nagiosxi-wmic.x86_64 0:5.6.2-1.el7 net-snmp-perl.x86_64 1:5.7.2-37.el7 perl-Nagios-Monitoring-Plugin.noarch 0:0.51-1.el7
php-imap.x86_64 0:5.4.16-9.el7
Complete!
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager