Page 2 of 2
Re: Nagios XI Updates fail
Posted: Thu Jan 14, 2016 1:22 pm
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.
Re: Nagios XI Updates fail
Posted: Thu Jan 14, 2016 2:43 pm
by awang
Ok, updated both yum.config & wgetrc with proxy info.
Auto updates still failed. attached output below
Re: Nagios XI Updates fail
Posted: Thu Jan 14, 2016 4:33 pm
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.
Re: Nagios XI Updates fail
Posted: Fri Jan 15, 2016 11:06 am
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]$
Re: Nagios XI Updates fail
Posted: Fri Jan 15, 2016 1:54 pm
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.
Re: Nagios XI Updates fail
Posted: Fri Jan 15, 2016 4:00 pm
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]$
Re: Nagios XI Updates fail
Posted: Mon Jan 18, 2016 11:59 am
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.