Nagios Upgrade issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Nagios Upgrade issue

Post by jsalsbury »

Good afternoon
I was recently working to upgrade NagiosXI up to the most recent version and I ran into the following issues.

Error: Package: nagiosxi-deps-el7-5.6.9-1.noarch (/nagiosxi-deps-el7-5.6.9-1.noarch)
Requires: php-imap
Error: Package: nagiosxi-deps-el7-5.6.9-1.noarch (/nagiosxi-deps-el7-5.6.9-1.noarch)
Requires: net-snmp-perl

When I go looking into the local repos I cannot find these packages at all. I should state I am going from 5.5.11 to 5.6.9

Has anyone ran into this and is there a work around?

thanks
Jason
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Upgrade issue

Post by cdienger »

These are part of the epel repo which can be installed with:

Code: Select all

yum install epel-release
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Re: Nagios Upgrade issue

Post by jsalsbury »

Unfortunately that didn't work

# yum install epel-release
Loaded plugins: langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64 | 2.4 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
Package epel-release-7-12.noarch already installed and latest version
Nothing to do
User avatar
tgriep
Madmin
Posts: 9179
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Upgrade issue

Post by tgriep »

First, let's clean out the yum cache

Code: Select all

yum clean all
Then see if you can install the required packages.

Code: Select all

yum install php-imap net-snmp-perl -y
If it installs, try the upgrade again.

If not, show the error when you tried to install the above packages.

Run this as well

Code: Select all

yum repolist
Does the nagios server nave access to the internet to download packages?
If your server is setup in an offline environment, you will have to download and install the packages manually or update your local repo.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Re: Nagios Upgrade issue

Post by jsalsbury »

Thanks for sharing these things to try with me.

My Nagios server does have access to the internet it was able to download the upgrade.

This did not work either.

~# yum install php-imap net-snmp-perl -y
Loaded plugins: langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64 | 2.4 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
No package php-imap available.
No package net-snmp-perl available.
Error: Nothing to do
root@xxxxxxxx:~# yum repolist
Loaded plugins: langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
repo id repo name status
!PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64 EPEL7_x86_64 12,636+780
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 12,708+780
nagios-base Nagios 96
nagiosxi-deps Nagios XI Dependencies 26+5
!rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 26,275+197
repolist: 51,741
User avatar
tgriep
Madmin
Posts: 9179
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Upgrade issue

Post by tgriep »

A couple of the server's repositories have expired data so run the following as root in a shell. Post the full output of the commands so we can see the status.

Code: Select all

yum clean all
yum clean expire-cache
yum repolist
The net-snmp-perl package comes from the Redhat Optional RPM's repo so the server will have to have that enabled.

Try this to enable it.

Code: Select all

yum install -y yum-utils
yum-config-manager --enable rhel-7-server-optional-rpms
If it fails, you will have to contact Redhat to see if the server is enabled and licensed.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Re: Nagios Upgrade issue

Post by jsalsbury »

~# yum clean all
Loaded plugins: langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
Cleaning repos: PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64 epel nagios-base nagiosxi-deps rhel-7-server-rpms
Other repos take up 1.6 G of disk space (use --verbose for details)
root@peplap02192:~# yum clean expire-cache
Loaded plugins: langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
Cleaning repos: PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64 epel nagios-base nagiosxi-deps rhel-7-server-rpms
0 metadata files removed
root@peplap02192:~# yum repolist
Loaded plugins: langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64 | 2.4 kB 00:00:00
epel/x86_64/metalink | 18 kB 00:00:00
epel | 5.3 kB 00:00:00
nagios-base | 1.5 kB 00:00:00
nagiosxi-deps | 1.5 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
(1/11): PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64/group | 350 kB 00:00:00
(2/11): PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64/updateinfo | 93 B 00:00:00
(3/11): PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64/primary | 4.7 MB 00:00:00
(4/11): epel/x86_64/group_gz | 90 kB 00:00:00
(5/11): epel/x86_64/updateinfo | 1.0 MB 00:00:01
(6/11): rhel-7-server-rpms/7Server/x86_64/group | 595 kB 00:00:00
(7/11): nagiosxi-deps/primary | 11 kB 00:00:00
(8/11): rhel-7-server-rpms/7Server/x86_64/updateinfo | 93 B 00:00:00
(9/11): nagios-base/primary | 13 kB 00:00:00
(10/11): rhel-7-server-rpms/7Server/x86_64/primary | 35 MB 00:00:00
(11/11): epel/x86_64/primary_db | 6.9 MB 00:00:07
PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64 13416/13416
nagios-base 96/96
nagiosxi-deps 31/31
rhel-7-server-rpms 26472/26472
repo id repo name status
!PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64 EPEL7_x86_64 12,636+780
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 12,710+780
nagios-base Nagios 96
nagiosxi-deps Nagios XI Dependencies 26+5
!rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 26,275+197
repolist: 51,743
root@peplap02192:~# yum install -y yum-utils
Loaded plugins: langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64 | 2.4 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
Package yum-utils-1.1.31-52.el7.noarch already installed and latest version
Nothing to do
root@peplap02192:~# yum-config-manager --enable rhel-7-server-optional-rpms
Loaded plugins: langpacks, product-id, subscription-manager
===================================================================================== repo: rhel-7-server-optional-rpms ======================================================================================
[rhel-7-server-optional-rpms]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7Server
baseurl = https://peplis00330.corp.pep.pvt/pulp/r ... ptional/os
cache = 0
cachedir = /var/cache/yum/x86_64/7Server/rhel-7-server-optional-rpms
check_config_file_age = True
compare_providers_priority = 80
cost = 1000
deltarpm_metadata_percentage = 100
deltarpm_percentage =
enabled = 1
enablegroups = True
exclude =
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/x86_64/7Server/rhel-7-server-optional-rpms/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/7Server/rhel-7-server-optional-rpms/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
hdrdir = /var/cache/yum/x86_64/7Server/rhel-7-server-optional-rpms/headers
http_caching = all
includepkgs =
ip_resolve =
keepalive = True
keepcache = False
mddownloadpolicy = sqlite
mdpolicy = group:small
mediaid =
metadata_expire = 1
metadata_expire_filter = read-only:present
metalink =
minrate = 0
mirrorlist =
mirrorlist_expire = 86400
name = Red Hat Enterprise Linux 7 Server - Optional (RPMs)
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/7Server/rhel-7-server-optional-rpms
pkgdir = /var/cache/yum/x86_64/7Server/rhel-7-server-optional-rpms/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert = /etc/rhsm/ca/katello-server-ca.pem
sslclientcert = /etc/pki/entitlement/4650884007637108060.pem
sslclientkey = /etc/pki/entitlement/4650884007637108060-key.pem
sslverify = True
throttle = 0
timeout = 30.0
ui_id = rhel-7-server-optional-rpms/7Server/x86_64
ui_repoid_vars = releasever,
basearch
username =


I was ab le to get perl installed but the PHP imap is still missing
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Upgrade issue

Post by scottwilkerson »

php-imap is part of the standard EPEL repo, but it appears you are using a custom repo PepsiCoHCL_RHEL7_EPEL_EPEL7_x86_64

You may need to reach out to whoever manages that custom repository and find out why the package isn't mirrored
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jsalsbury
Posts: 87
Joined: Tue Oct 23, 2018 12:57 pm

Re: Nagios Upgrade issue

Post by jsalsbury »

We were able to install imap from a different repository. The upgrade is complete. This can be closed
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Upgrade issue

Post by scottwilkerson »

jsalsbury wrote:We were able to install imap from a different repository. The upgrade is complete. This can be closed
Great!

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked