Update issue with NNA

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Update issue with NNA

Post by snapon_admin »

I'm having this same issue again for some reason: https://support.nagios.com/forum/viewforum.php?f=32

Last time I basically shook my finger at it hard enough that it started working, but that's not helping this time. I've tried doing the update with the proxy on (unless there's somewhere I should be configuring that besides /etc/yum.conf), and with it on and neither works. There's also nothing in our firewall logs to suggest that the firewall is blocking this. Here's what I get with the proxy enabled:

Code: Select all

[root@lisl-ngna-01-pv nagiosna]# yum update      
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
14: PYCURL ERROR 7 - "couldn't connect to host"
Error: Cannot find a valid baseurl for repo: base
[root@lisl-ngna-01-pv nagiosna]# vi /etc/yum.conf
And here's with the proxy off (the setting that it should be):

Code: Select all

[root@lisl-ngna-01-pv nagiosna]# yum update      
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
Error: Cannot find a valid baseurl for repo: base
Different errors, same issue. Thoughts?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Update issue with NNA

Post by hsmith »

yum.conf should do it unless you're using wget. Are you making sure the syntax is correct?

Code: Select all

proxy=http://xxx.xxx.xx.xx:8080
proxy_username=username
proxy_password=password
Really hard to say without seeing the exact configuration..

Are you making it through the proxy?

Code: Select all

curl http://www.google.com URL --proxy http://xxx.xxx.xx.xx:8080
Former Nagios Employee.
me.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Update issue with NNA

Post by snapon_admin »

Yeah syntax is good, but this server is in a location where it should not connect through our proxy. I can't seem to get to google either, with or without proxy. I can perform an update check with no issue, but that's as far out onto the internet I can get. Our firewall at this location is set up for logging this kind of thing too, and it's not spitting out anything indicating that there's a block there.

Code: Select all

[root@lisl-ngna-01-pv tmp]# curl http://www.google.com URL --proxy http://[PROXY REMOVED]:8080
curl: (7) couldn't connect to host
curl: (7) couldn't connect to host
[root@lisl-ngna-01-pv tmp]# curl http://www.google.com 
curl: (7) Failed to connect to 2607:f8b0:4009:808::2004: Network is unreachable
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Update issue with NNA

Post by hsmith »

Didn't we have to add those IPs to your firewall awhile back? I'm surprised it's not logging, as this certainly seems like a firewall issue. You need the IP for the update checks, the IP for assets.nagios.com, and whatever the EPEL/base/update/extras repository is using. I don't have the specific IPs wrote down anywhere..
Former Nagios Employee.
me.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Update issue with NNA

Post by snapon_admin »

Looks like a couple of the IPs weren't in there for some reason. Did a tail on the NNA IP and found 2 denies. I added those to the ACL and now I'm getting this:

Code: Select all

[root@lisl-ngna-01-pv nagiosna]# ./upgrade
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
That looks like an issue on the server itself?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Update issue with NNA

Post by rkennedy »

Just to clarify - are you running IPV6 in your environment, if so - is it on the NNA machine and the proxy?
Former Nagios Employee
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Update issue with NNA

Post by snapon_admin »

No IPv6 here.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Update issue with NNA

Post by hsmith »

Can we see the config file your ethernet interface?

Code: Select all

/etc/sysconfig/network-scripts/ifcfg-whatever
Former Nagios Employee.
me.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Update issue with NNA

Post by snapon_admin »

Code: Select all

[root@lisl-ngna-01-pv nagiosna]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:50:56:8d:10:4f
IPADDR=10.245.128.169
NETMASK=255.255.255.0
GATEWAY=10.245.128.1
ONBOOT=YES
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Update issue with NNA

Post by tgriep »

Let's clear out the repo cache and try the upgrade again. Run the following as root on the system and then try the upgrade.

Code: Select all

yum clean all
Sometimes the yum cache needs to be rebuilt / cleaned out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked