Nagios XI Updates fail

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Updates fail

Post by tgriep »

Let us know how it works for you.

I did find this link for "How to access Red Hat Subscription Manager (RHSM) through a firewall/proxy"
https://access.redhat.com/solutions/65300
I included it just in case you need to change those settings.
Be sure to check out our Knowledgebase for helpful articles and solutions!
awang
Posts: 25
Joined: Wed Jun 17, 2015 12:32 pm

Re: Nagios XI Updates fail

Post by awang »

Ok, updated both yum.config & wgetrc with proxy info.
Auto updates still failed. attached output below
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Updates fail

Post by tgriep »

It looks like the epel repository isn't installed on your server and one of the packages didn't get installed because of that.
Follow this to install epel on your server.
Login as root and run the following.

Code: Select all

cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
Then run this to install the missing package.

Code: Select all

yum install perl-Math-Calc-Units -y
If the above works for you, rerun the upgrade and let us know if it works for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
awang
Posts: 25
Joined: Wed Jun 17, 2015 12:32 pm

Re: Nagios XI Updates fail

Post by awang »

File is downloaded, but received error when I run :

Code: Select all

 sudo rpm -Uvh epel-release-6*.rpm
Below is the output:

Code: Select all

[awang@lltcnagios-sed02 tmp]$  wget https://dl.fedoraproject.org/pub/epel/epel-r                                                                                                                                                             elease-latest-6.noarch.rpm
--2016-01-15 09:51:06--  https://dl.fedoraproject.org/pub/epel/epel-release-late                                                                                                                                                             st-6.noarch.rpm
Resolving dl.fedoraproject.org... 209.132.181.26, 209.132.181.27, 209.132.181.23                                                                                                                                                             , ...
Connecting to dl.fedoraproject.org|209.132.181.26|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14540 (14K) [application/x-rpm]
Saving to: “epel-release-latest-6.noarch.rpm”

100%[======================================>] 14,540      --.-K/s   in 0.06s

2016-01-15 09:51:06 (228 KB/s) - “epel-release-latest-6.noarch.rpm” saved [14540                                                                                                                                                             /14540]

[awang@lltcnagios-sed02 tmp]$ sudo rpm -Uvh epel-release-6*.rpm
Enter PASSCODE:
error: File not found by glob: epel-release-6*.rpm
Then I tried running the following cmd instead and received the output below :

Code: Select all

[awang@lltcnagios-sed02 tmp]$ sudo rpm -Uvh epel-release-latest-6.noarch.rpm
Preparing...                ########################################### [100%]
        package epel-release-6-8.noarch is already installed
[awang@lltcnagios-sed02 tmp]$ yum install perl-Math-Calc-Units -y
Loaded plugins: product-id, rhnplugin, security, subscription-manager
*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.
You need to be root to perform this command.
[awang@lltcnagios-sed02 tmp]$ sudo yum install perl-Math-Calc-Units -y
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
nagios-base                                                                                                                                                                                                           | 1.5 kB     00:00
nagiosxi-deps                                                                                                                                                                                                         | 1.5 kB     00:00
rhel-x86_64-server-6                                                                                                                                                                                                  | 1.8 kB     00:00
rhel-x86_64-server-6/primary                                                                                                                                                                                          |  24 MB     00:05
rhel-x86_64-server-6                                                                                                                                                                                                             16486/16486
rhel-x86_64-server-optional-6                                                                                                                                                                                         | 1.8 kB     00:00
rpmforge                                                                                                                                                                                                              | 1.9 kB     00:00
No package perl-Math-Calc-Units available.
Error: Nothing to do
[awang@lltcnagios-sed02 tmp]$
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI Updates fail

Post by hsmith »

You downloaded epel-release-latest-6.noarch.rpm

Then you tried to install epel-release-6*.rpm

This didn't work because the filename is wrong. it needs the word latest.
Former Nagios Employee.
me.
awang
Posts: 25
Joined: Wed Jun 17, 2015 12:32 pm

Re: Nagios XI Updates fail

Post by awang »

Yes,you are right and I got that part. So I tried running the following cmd instead, and received this output

Code: Select all

[awang@lltcnagios-sed02 tmp]$ sudo rpm -Uvh epel-release-latest-6.noarch.rpm
Preparing...                ########################################### [100%]
        package epel-release-6-8.noarch is already installed
[awang@lltcnagios-sed02 tmp]$ yum install perl-Math-Calc-Units -y
Loaded plugins: product-id, rhnplugin, security, subscription-manager
*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.
You need to be root to perform this command.
[awang@lltcnagios-sed02 tmp]$ sudo yum install perl-Math-Calc-Units -y
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
nagios-base                                                                                                                                                                                                           | 1.5 kB     00:00
nagiosxi-deps                                                                                                                                                                                                         | 1.5 kB     00:00
rhel-x86_64-server-6                                                                                                                                                                                                  | 1.8 kB     00:00
rhel-x86_64-server-6/primary                                                                                                                                                                                          |  24 MB     00:05
rhel-x86_64-server-6                                                                                                                                                                                                             16486/16486
rhel-x86_64-server-optional-6                                                                                                                                                                                         | 1.8 kB     00:00
rpmforge                                                                                                                                                                                                              | 1.9 kB     00:00
No package perl-Math-Calc-Units available.
Error: Nothing to do
[awang@lltcnagios-sed02 tmp]$
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI Updates fail

Post by tmcdonald »

Let's try to install it directly from the perl CPAN:

perl -MCPAN -e "install Math::Calc::Units"

You may need to hit Enter to continue if it asks about configuring anything.
Former Nagios employee
Locked