Page 2 of 3

Re: Getting Login Terminal to the Nagios Server

Posted: Mon Jun 24, 2019 12:26 pm
by lmiltchev
Are you using custom local repos? There packages are provided by the base repo... Do you have the optional channel added? What is the output of the following command?

Code: Select all

yum repolist -v

Re: Getting Login Terminal to the Nagios Server

Posted: Mon Jun 24, 2019 12:31 pm
by anilgupta

Code: Select all

[root@pstvmpkimon02 nagiosxi]# yum repolist -v
Not loading "rhnplugin" plugin, as it is disabled
Loading "langpacks" plugin
Loading "product-id" plugin
Loading "search-disabled-repos" plugin
Loading "subscription-manager" plugin
Adding en_US.UTF-8 to language list
Updating Subscription Management repositories.
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.

*** WARNING ***
The subscription for following product(s) has expired:
  - MRG Realtime
  - Oracle Java (for RHEL Server)
  - Oracle Java (for RHEL Server) - Extended Update Support
  - RHEL for SAP (for IBM Power LE) - Update Services for SAP Solutions
  - RHEL for SAP - Extended Update Support
  - RHEL for SAP - Update Services for SAP Solutions
  - RHEL for SAP HANA - Extended Update Support
  - RHEL for SAP HANA - Update Services for SAP Solutions
  - Red Hat Ansible Engine
  - Red Hat Beta
  - Red Hat Container Development Kit
  - Red Hat Container Images
  - Red Hat Container Images Beta
  - Red Hat Developer Tools (for RHEL Server)
  - Red Hat Developer Tools Beta (for RHEL Server)
  - Red Hat Developer Toolset (for RHEL Server)
  - Red Hat EUCJP Support (for RHEL Server) - Extended Update Support
  - Red Hat Enterprise Linux Atomic Host
  - Red Hat Enterprise Linux Atomic Host Beta
  - Red Hat Enterprise Linux High Availability (for RHEL Server)
  - Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support
  - Red Hat Enterprise Linux High Availability - Update Services for SAP Solutions
  - Red Hat Enterprise Linux High Performance Networking (for RHEL Compute Node)
  - Red Hat Enterprise Linux High Performance Networking (for RHEL Server)
  - Red Hat Enterprise Linux High Performance Networking (for RHEL Server) - Extended Update Support
  - Red Hat Enterprise Linux Load Balancer (for RHEL Server)
  - Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support
  - Red Hat Enterprise Linux Resilient Storage (for RHEL Server)
  - Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Extended Update Support
  - Red Hat Enterprise Linux Scalable File System (for RHEL Server)
  - Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended Update Support
  - Red Hat Enterprise Linux Server
  - Red Hat Enterprise Linux Server - Extended Update Support
  - Red Hat Enterprise Linux Server - Update Services for SAP Solutions
  - Red Hat Enterprise Linux for ARM 64
  - Red Hat Enterprise Linux for ARM 64 Beta
  - Red Hat Enterprise Linux for Real Time
  - Red Hat Enterprise Linux for SAP
  - Red Hat Enterprise Linux for SAP Hana
  - Red Hat S-JIS Support (for RHEL Server) - Extended Update Support
  - Red Hat Software Collections (for RHEL Server)
  - Red Hat Software Collections Beta (for RHEL Server)
  - dotNET on RHEL (for RHEL Server)
  - dotNET on RHEL Beta (for RHEL Server)
You no longer have access to the repositories that provide these products.  It is important that you apply an active subscription in order to resume access to security and other critical updates. If you don't have other active subscriptions, you can renew the expired subscription.
Config time: 0.739
Yum version: 3.4.3
Setting up Package Sacks
pkgsack time: 0.011
Repo-id      : epel/x86_64
Repo-name    : Extra Packages for Enterprise Linux 7 - x86_64
Repo-revision: 1561335207
Repo-updated : Sun Jun 23 20:22:39 2019
Repo-pkgs    : 13,237
Repo-size    : 15 G
Repo-metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64
  Updated    : Sun Jun 23 20:22:39 2019
Repo-baseurl : https://muug.ca/mirror/fedora-epel/7/x86_64/ (48 more)
Repo-expire  : 21,600 second(s) (last: Mon Jun 24 12:43:17 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/epel.repo

Repo-id      : nagios-base
Repo-name    : Nagios
Repo-revision: 1561061651
Repo-updated : Thu Jun 20 16:14:12 2019
Repo-pkgs    : 11
Repo-size    : 101 M
Repo-baseurl : http://repo.nagios.com/nagios/5/
Repo-expire  : 21,600 second(s) (last: Mon Jun 24 12:43:18 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/nagios-5.repo

Repo-id      : nagiosxi-deps
Repo-name    : Nagios XI Dependencies
Repo-revision: 1561061767
Repo-updated : Thu Jun 20 16:16:07 2019
Repo-pkgs    : 26
Repo-size    : 13 M
Repo-baseurl : http://repo.nagios.com/nagiosxi-deps/5/
Repo-expire  : 21,600 second(s) (last: Mon Jun 24 12:43:18 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/nagios-5.repo

repolist: 13,274

Re: Getting Login Terminal to the Nagios Server

Posted: Mon Jun 24, 2019 1:41 pm
by lmiltchev
I don't see the RHEL 7 Server RPMs and the optional channel in the output. You should see something like this in the output:

Code: Select all

Repo-id      : rhel-7-server-optional-rpms/7Server/x86_64
Repo-name    : Red Hat Enterprise Linux 7 Server - Optional (RPMs)
Repo-revision: 1559667596
Repo-updated : Tue Jun  4 11:59:56 2019
Repo-pkgs    : 17,777
Repo-size    : 39 G
Repo-baseurl : https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/optional/os
Repo-expire  : 86,400 second(s) (last: Tue Jun 11 11:59:16 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-rpms/7Server/x86_64
Repo-name    : Red Hat Enterprise Linux 7 Server (RPMs)
Repo-revision: 1559773717
Repo-updated : Wed Jun  5 17:28:37 2019
Repo-pkgs    : 24,345
Repo-size    : 36 G
Repo-baseurl : https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os
Repo-expire  : 86,400 second(s) (last: Tue Jun 11 11:59:16 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo
You will need to add the missing repos in order to fix the issue with upgrading XI.

Re: Getting Login Terminal to the Nagios Server

Posted: Mon Jun 24, 2019 2:30 pm
by anilgupta
I got the missing repos, refer below.

Code: Select all

Loading "enabled_repos_upload" plugin
Loading "langpacks" plugin
Loading "package_upload" plugin
Loading "product-id" plugin
Loading "search-disabled-repos" plugin
Loading "subscription-manager" plugin
Adding en_US.UTF-8 to language list
Updating Subscription Management repositories.
Config time: 0.434
Yum version: 3.4.3
Setting up Package Sacks
pkgsack time: 0.021
Repo-id      : rhel-7-fast-datapath-rpms/7Server/x86_64
Repo-name    : Red Hat Enterprise Linux Fast Datapath (RHEL 7 Server) (RPMs)
Repo-revision: 1561139535
Repo-updated : Fri Jun 21 13:52:15 2019
Repo-pkgs    : 206
Repo-size    : 268 M
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/fast-datapath/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-ansible-2.4-rpms/x86_64
Repo-name    : Red Hat Ansible Engine 2.4 RPMs for Red Hat Enterprise Linux 7 Server
Repo-revision: 1542282596
Repo-updated : Thu Nov 15 06:49:56 2018
Repo-pkgs    : 23
Repo-size    : 60 M
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/ansible/2.4/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-ansible-2.5-rpms/x86_64
Repo-name    : Red Hat Ansible Engine 2.5 RPMs for Red Hat Enterprise Linux 7 Server
Repo-revision: 1554821178
Repo-updated : Tue Apr  9 10:46:18 2019
Repo-pkgs    : 35
Repo-size    : 149 M
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/ansible/2.5/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-ansible-2.6-rpms/x86_64
Repo-name    : Red Hat Ansible Engine 2.6 RPMs for Red Hat Enterprise Linux 7 Server
Repo-revision: 1561139502
Repo-updated : Fri Jun 21 13:51:42 2019
Repo-pkgs    : 22
Repo-size    : 171 M
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/ansible/2.6/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-ansible-2.7-rpms/x86_64
Repo-name    : Red Hat Ansible Engine 2.7 RPMs for Red Hat Enterprise Linux 7 Server
Repo-revision: 1561139500
Repo-updated : Fri Jun 21 13:51:40 2019
Repo-pkgs    : 16
Repo-size    : 125 M
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/ansible/2.7/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-dotnet-rpms/7Server/x86_64
Repo-name    : dotNET on RHEL RPMs for Red Hat Enterprise Linux 7 Server
Repo-revision: 1561139554
Repo-updated : Fri Jun 21 13:52:34 2019
Repo-pkgs    : 255
Repo-size    : 2.7 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/dotnet/1/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-eus-rpms/7Server/x86_64
Repo-name    : Red Hat Enterprise Linux 7 Server - Extended Update Support (RPMs)
Repo-revision: 1561139541
Repo-updated : Fri Jun 21 13:52:21 2019
Repo-pkgs    : 19,030
Repo-size    : 28 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/eus/rhel/server/7/7Server/x86_64/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-extras-rpms/x86_64
Repo-name    : Red Hat Enterprise Linux 7 Server - Extras (RPMs)
Repo-revision: 1561139541
Repo-updated : Fri Jun 21 13:52:21 2019
Repo-pkgs    : 1,113
Repo-size    : 2.7 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/extras/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-optional-rpms/7Server/x86_64
Repo-name    : Red Hat Enterprise Linux 7 Server - Optional (RPMs)
Repo-revision: 1561139553
Repo-updated : Fri Jun 21 13:52:33 2019
Repo-pkgs    : 17,788
Repo-size    : 39 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/optional/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-ose-3.1-rpms/x86_64
Repo-name    : Red Hat OpenShift Enterprise 3.1 (RPMs)
Repo-revision: 1547824841
Repo-updated : Fri Jan 18 10:20:41 2019
Repo-pkgs    : 756
Repo-size    : 1.3 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/ose/3.1/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-ose-3.10-rpms/x86_64
Repo-name    : Red Hat OpenShift Container Platform 3.10 (RPMs)
Repo-revision: 1561139505
Repo-updated : Fri Jun 21 13:51:45 2019
Repo-pkgs    : 857
Repo-size    : 4.5 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/ose/3.10/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-ose-3.11-rpms/x86_64
Repo-name    : Red Hat OpenShift Container Platform 3.11 (RPMs)
Repo-revision: 1561139502
Repo-updated : Fri Jun 21 13:51:42 2019
Repo-pkgs    : 523
Repo-size    : 5.4 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/ose/3.11/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-ose-3.2-rpms/x86_64
Repo-name    : Red Hat OpenShift Enterprise 3.2 (RPMs)
Repo-revision: 1544177524
Repo-updated : Fri Dec  7 05:12:04 2018
Repo-pkgs    : 887
Repo-size    : 2.0 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/ose/3.2/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-ose-3.9-rpms/x86_64
Repo-name    : Red Hat OpenShift Container Platform 3.9 (RPMs)
Repo-revision: 1561139509
Repo-updated : Fri Jun 21 13:51:49 2019
Repo-pkgs    : 955
Repo-size    : 6.4 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/ose/3.9/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-rh-common-rpms/7Server/x86_64
Repo-name    : Red Hat Enterprise Linux 7 Server - RH Common (RPMs)
Repo-revision: 1561139546
Repo-updated : Fri Jun 21 13:52:26 2019
Repo-pkgs    : 238
Repo-size    : 4.5 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/rh-common/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-rhn-tools-rpms/7Server/x86_64
Repo-name    : RHN Tools for Red Hat Enterprise Linux 7 Server (RPMs)
Repo-revision: 1544177543
Repo-updated : Fri Dec  7 05:12:23 2018
Repo-pkgs    : 136
Repo-size    : 34 M
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/rhn-tools/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-rpms/7Server/x86_64
Repo-name    : Red Hat Enterprise Linux 7 Server (RPMs)
Repo-revision: 1561139546
Repo-updated : Fri Jun 21 13:52:26 2019
Repo-pkgs    : 24,390
Repo-size    : 36 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-excluded: 1
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-satellite-tools-6.3-puppet4-rpms/x86_64
Repo-name    : Red Hat Satellite Tools 6.3 - Puppet 4 (for RHEL 7 Server) (RPMs)
Repo-revision: 1542282941
Repo-updated : Thu Nov 15 06:55:41 2018
Repo-pkgs    : 1
Repo-size    : 26 M
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.3-puppet4/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-satellite-tools-6.3-rpms/x86_64
Repo-name    : Red Hat Satellite Tools 6.3 (for RHEL 7 Server) (RPMs)
Repo-revision: 1542282937
Repo-updated : Thu Nov 15 06:55:37 2018
Repo-pkgs    : 94
Repo-size    : 9.1 M
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.3/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-7-server-supplementary-rpms/7Server/x86_64
Repo-name    : Red Hat Enterprise Linux 7 Server - Supplementary (RPMs)
Repo-revision: 1561139543
Repo-updated : Fri Jun 21 13:52:23 2019
Repo-pkgs    : 322
Repo-size    : 8.0 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/supplementary/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

Repo-id      : rhel-server-rhscl-7-rpms/7Server/x86_64
Repo-name    : Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
Repo-revision: 1561139559
Repo-updated : Fri Jun 21 13:52:39 2019
Repo-pkgs    : 11,241
Repo-size    : 11 G
Repo-baseurl : https://rhn-satellite-gdc.tools.cihs.gov.on.ca/pulp/repos/its-dco/PROD/soe_rhel7/content/dist/rhel/server/7/7Server/x86_64/rhscl/1/os
Repo-expire  : 1 second(s) (last: Mon Jun 24 15:22:14 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/redhat.repo

repolist: 78,888
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager

Still upgrade is not going through.

Code: Select all

[root@cacbigdcapmdw51 nagiosxi]# ./upgrade
RPM Install detected, switching to yum update
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-
              : manager
rhel-7-fast-datapath-rpms                                                                     | 2.3 kB  00:00:00
rhel-7-server-ansible-2.4-rpms                                                                | 2.3 kB  00:00:00
rhel-7-server-ansible-2.5-rpms                                                                | 2.3 kB  00:00:00
rhel-7-server-ansible-2.6-rpms                                                                | 2.3 kB  00:00:00
rhel-7-server-ansible-2.7-rpms                                                                | 2.3 kB  00:00:00
rhel-7-server-dotnet-rpms                                                                     | 2.3 kB  00:00:00
rhel-7-server-eus-rpms                                                                        | 2.0 kB  00:00:00
rhel-7-server-extras-rpms                                                                     | 2.0 kB  00:00:00
rhel-7-server-optional-rpms                                                                   | 2.0 kB  00:00:00
rhel-7-server-ose-3.1-rpms                                                                    | 2.4 kB  00:00:00
rhel-7-server-ose-3.10-rpms                                                                   | 2.3 kB  00:00:00
rhel-7-server-ose-3.11-rpms                                                                   | 2.3 kB  00:00:00
rhel-7-server-ose-3.2-rpms                                                                    | 2.3 kB  00:00:00
rhel-7-server-ose-3.9-rpms                                                                    | 2.3 kB  00:00:00
rhel-7-server-rh-common-rpms                                                                  | 2.1 kB  00:00:00
rhel-7-server-rhn-tools-rpms                                                                  | 2.1 kB  00:00:00
rhel-7-server-rpms                                                                            | 2.0 kB  00:00:00
rhel-7-server-satellite-tools-6.3-puppet4-rpms                                                | 2.1 kB  00:00:00
rhel-7-server-satellite-tools-6.3-rpms                                                        | 2.1 kB  00:00:00
rhel-7-server-supplementary-rpms                                                              | 2.0 kB  00:00:00
rhel-server-rhscl-7-rpms                                                                      | 2.0 kB  00:00:00
No packages marked for update
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager

Re: Getting Login Terminal to the Nagios Server

Posted: Mon Jun 24, 2019 3:23 pm
by lmiltchev
It seems like you have a RPM install... In this case, you need to run:

Code: Select all

yum clean all
yum update
yum update nagiosxi

Re: Getting Login Terminal to the Nagios Server

Posted: Wed Aug 07, 2019 5:11 pm
by anilgupta
Sorry for late response.
It seems like you have a RPM install
How to confirm if the target is RPM install?

I executed the suggested commands but does NOT seem to be working.

Code: Select all

[root@pstvmpkimon02 ~]# [b]yum clean all[/b]
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
Cleaning repos: InstallMedia epel epel-debuginfo epel-source epel-testing epel-testing-debuginfo epel-testing-source
              : nagios-base nagiosxi-deps skype-stable
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
[root@pstvmpkimon02 ~]# [b]yum update[/b]
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml"
Trying other mirror.
epel/x86_64/metalink                                                                          |  15 kB  00:00:00
epel                                                                                          | 5.3 kB  00:00:00
epel-debuginfo/x86_64/metalink                                                                |  15 kB  00:00:00
epel-debuginfo                                                                                | 3.0 kB  00:00:00
epel-source/x86_64/metalink                                                                   |  15 kB  00:00:00
epel-source                                                                                   | 4.1 kB  00:00:00
epel-testing/x86_64/metalink                                                                  |  16 kB  00:00:00
epel-testing                                                                                  | 5.3 kB  00:00:00
epel-testing-debuginfo/x86_64/metalink                                                        |  16 kB  00:00:00
epel-testing-debuginfo                                                                        | 3.0 kB  00:00:00
epel-testing-source/x86_64/metalink                                                           |  16 kB  00:00:00
epel-testing-source                                                                           | 4.1 kB  00:00:00
nagios-base                                                                                   | 1.2 kB  00:00:00
nagiosxi-deps                                                                                 | 1.2 kB  00:00:00
skype-stable                                                                                  | 2.9 kB  00:00:00
(1/15): epel/x86_64/group_gz                                                                  |  88 kB  00:00:00
(2/15): epel/x86_64/updateinfo                                                                | 992 kB  00:00:00
(3/15): epel-debuginfo/x86_64/primary_db                                                      | 904 kB  00:00:00
(4/15): epel-source/x86_64/updateinfo                                                         | 992 kB  00:00:00
(5/15): epel-testing/x86_64/group_gz                                                          |  88 kB  00:00:00
(6/15): epel-source/x86_64/primary_db                                                         | 2.4 MB  00:00:00
(7/15): epel/x86_64/primary_db                                                                | 6.8 MB  00:00:01
(8/15): epel-testing/x86_64/updateinfo                                                        |  58 kB  00:00:00
(9/15): epel-testing-debuginfo/x86_64/primary_db                                              |  37 kB  00:00:00
(10/15): epel-testing/x86_64/primary_db                                                       | 438 kB  00:00:00
(11/15): epel-testing-source/x86_64/updateinfo                                                |  58 kB  00:00:00
(12/15): epel-testing-source/x86_64/primary_db                                                | 115 kB  00:00:00
(13/15): skype-stable/primary_db                                                              |  11 kB  00:00:00
(14/15): nagios-base/primary                                                                  | 1.9 kB  00:00:00
(15/15): nagiosxi-deps/primary                                                                | 7.0 kB  00:00:00
nagios-base                                                                                                    11/11
nagiosxi-deps                                                                                                  26/26
No packages marked for update
[root@pstvmpkimon02 ~]# [b]yum update nagiosxi[/b]
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml"
Trying other mirror.
No Match for argument: nagiosxi
No package nagiosxi available.
No packages marked for update

Re: Getting Login Terminal to the Nagios Server

Posted: Thu Aug 08, 2019 10:05 am
by lmiltchev
How to confirm if the target is RPM install?
Run the following command from the command line:

Code: Select all

yum list installed | grep nagiosxi
On a source install, you should see the nagiosxi-deps package in the output, e.g.

Code: Select all

nagiosxi-deps-el7.noarch                5.6.5-1                        installed
On a RPM install, you should see the nagiosxi package, e.g.

Code: Select all

nagiosxi.x86_64                    5.6.5-1.el7                    @nagios-base
I executed the suggested commands but does NOT seem to be working.
Is this an offline upgrade? What commands did you run? Can you show us the /tmp/xi-upgrade.log?

Re: Getting Login Terminal to the Nagios Server

Posted: Thu Aug 08, 2019 4:28 pm
by anilgupta
Yes, This is Source Install:

Code: Select all

[root@pstvmpkimon02 guptaa]# yum list installed | grep nagiosxi
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
nagiosxi-deps-el7.noarch             5.5.8-1                 installed
nmap.x86_64                          2:6.47-1                @nagiosxi-deps
Is this an offline upgrade?
Yes, This is offline upgrade.
What commands did you run?
I am executing below command from https://assets.nagios.com/downloads/nag ... ctions.pdf

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
Can you show us the /tmp/xi-upgrade.log?
I am NOT able to find the xi-upgrade.log file anywhere in my server.

Code: Select all

[root@pstvmpkimon02 nagiosxi]# date; find / -name xi-upgrade.log; date;
Thu Aug  8 17:02:51 EDT 2019
Thu Aug  8 17:02:53 EDT 2019
I can share the screen output:

Code: Select all

[root@pstvmpkimon02 nagiosxi]# cd /tmp
[root@pstvmpkimon02 tmp]# rm -rf nagiosxi xi*.tar.gz
[root@pstvmpkimon02 tmp]# wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
--2019-08-08 17:05:12--  http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
Connecting to 204.40.194.129:3128... connected.
Proxy request sent, awaiting response... 301 Moved Permanently
Location: https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz [following]
--2019-08-08 17:05:12--  https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
Connecting to 204.40.194.129:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 58048805 (55M) [application/x-gzip]
Saving to: ‘xi-latest.tar.gz’

100%[===========================================================================>] 58,048,805  2.03MB/s   in 28s

2019-08-08 17:05:40 (2.00 MB/s) - ‘xi-latest.tar.gz’ saved [58048805/58048805]

Code: Select all

[root@pstvmpkimon02 tmp]# tar xzf xi-latest.tar.gz
[root@pstvmpkimon02 tmp]# cd nagiosxi/
[root@pstvmpkimon02 nagiosxi]# ./upgrade
Nagios XI Upgrade Log
==========================
DATE: Thu Aug  8 17:09:15 EDT 2019

DISTRO INFO:
RedHatEnterpriseServer
7.5
x86_64


Archive:  sourceguardian/ixed4.lin.x86-64.zip
  inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Checking required prereqs...
Please wait...

OLD VERSION: 5508
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
              : manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml"
Trying other mirror.
No packages marked for update
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
              : manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
Examining /tmp/nagiosxi/nagiosxi-deps-el7-5.6.5-1.noarch.rpm: nagiosxi-deps-el7-5.6.5-1.noarch
Marking /tmp/nagiosxi/nagiosxi-deps-el7-5.6.5-1.noarch.rpm as an update to nagiosxi-deps-el7-5.5.8-1.noarch
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-deps-el7.noarch 0:5.5.8-1 will be updated
---> Package nagiosxi-deps-el7.noarch 0:5.6.5-1 will be an update
--> Processing Dependency: php-imap for package: nagiosxi-deps-el7-5.6.5-1.noarch
file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml"
Trying other mirror.
--> Processing Dependency: ansible for package: nagiosxi-deps-el7-5.6.5-1.noarch
--> Running transaction check
---> Package ansible.noarch 0:2.8.2-1.el7 will be installed
--> Processing Dependency: python-httplib2 for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: python-jinja2 for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: python2-cryptography for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: python2-jmespath for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: sshpass for package: ansible-2.8.2-1.el7.noarch
---> 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 ansible.noarch 0:2.8.2-1.el7 will be installed
--> Processing Dependency: python-jinja2 for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: python2-cryptography for package: ansible-2.8.2-1.el7.noarch
---> Package libc-client.x86_64 0:2007f-16.el7 will be installed
---> Package python-httplib2.noarch 0:0.9.2-0.2.el7 will be installed
---> Package python-paramiko.noarch 0:2.1.1-0.10.el7 will be installed
--> Processing Dependency: python-cryptography for package: python-paramiko-2.1.1-0.10.el7.noarch
--> Processing Dependency: python2-pyasn1 for package: python-paramiko-2.1.1-0.10.el7.noarch
---> Package python2-jmespath.noarch 0:0.9.0-1.el7 will be installed
---> Package sshpass.x86_64 0:1.06-1.el7 will be installed
--> Finished Dependency Resolution
Error: Package: ansible-2.8.2-1.el7.noarch (epel)
           Requires: python-jinja2
Error: Package: python-paramiko-2.1.1-0.10.el7.noarch (epel)
           Requires: python-cryptography
Error: Package: ansible-2.8.2-1.el7.noarch (epel)
           Requires: python2-cryptography
Error: Package: python-paramiko-2.1.1-0.10.el7.noarch (epel)
           Requires: python2-pyasn1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
              : manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
Cleaning repos: InstallMedia epel epel-debuginfo epel-source epel-testing
              : epel-testing-debuginfo epel-testing-source nagios-base
              : nagiosxi-deps skype-stable
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
              : manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
Examining /tmp/nagiosxi/nagiosxi-deps-el7-5.6.5-1.noarch.rpm: nagiosxi-deps-el7-5.6.5-1.noarch
Marking /tmp/nagiosxi/nagiosxi-deps-el7-5.6.5-1.noarch.rpm as an update to nagiosxi-deps-el7-5.5.8-1.noarch
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-deps-el7.noarch 0:5.5.8-1 will be updated
---> Package nagiosxi-deps-el7.noarch 0:5.6.5-1 will be an update
--> Processing Dependency: php-imap for package: nagiosxi-deps-el7-5.6.5-1.noarch
file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml"
Trying other mirror.
--> Processing Dependency: ansible for package: nagiosxi-deps-el7-5.6.5-1.noarch
--> Running transaction check
---> Package ansible.noarch 0:2.8.2-1.el7 will be installed
--> Processing Dependency: python-httplib2 for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: python-jinja2 for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: python2-cryptography for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: python2-jmespath for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: sshpass for package: ansible-2.8.2-1.el7.noarch
---> 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 ansible.noarch 0:2.8.2-1.el7 will be installed
--> Processing Dependency: python-jinja2 for package: ansible-2.8.2-1.el7.noarch
--> Processing Dependency: python2-cryptography for package: ansible-2.8.2-1.el7.noarch
---> Package libc-client.x86_64 0:2007f-16.el7 will be installed
---> Package python-httplib2.noarch 0:0.9.2-0.2.el7 will be installed
---> Package python-paramiko.noarch 0:2.1.1-0.10.el7 will be installed
--> Processing Dependency: python-cryptography for package: python-paramiko-2.1.1-0.10.el7.noarch
--> Processing Dependency: python2-pyasn1 for package: python-paramiko-2.1.1-0.10.el7.noarch
---> Package python2-jmespath.noarch 0:0.9.0-1.el7 will be installed
---> Package sshpass.x86_64 0:1.06-1.el7 will be installed
--> Finished Dependency Resolution
Error: Package: ansible-2.8.2-1.el7.noarch (epel)
           Requires: python-jinja2
Error: Package: python-paramiko-2.1.1-0.10.el7.noarch (epel)
           Requires: python-cryptography
Error: Package: ansible-2.8.2-1.el7.noarch (epel)
           Requires: python2-cryptography
Error: Package: python-paramiko-2.1.1-0.10.el7.noarch (epel)
           Requires: python2-pyasn1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Re: Getting Login Terminal to the Nagios Server

Posted: Thu Aug 08, 2019 4:40 pm
by scottwilkerson
Could this be related to your other post
https://support.nagios.com/forum/viewto ... 19#p289727

Where your RHEL subscription is expired and as such cannot download packages?

Re: Getting Login Terminal to the Nagios Server

Posted: Thu Aug 08, 2019 6:04 pm
by anilgupta
Looks similar issue. I will work with my Linux team and update.

Thanks,