Upgrade error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Re: Upgrade error

Post by Kimba7070 »

[aobridko@localhost ~]$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:86:3E:C9
inet addr:192.168.130.50 Bcast:192.168.130.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe86:3ec9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45305014 errors:0 dropped:0 overruns:0 frame:0
TX packets:1173030 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3151840983 (2.9 GiB) TX bytes:306743074 (292.5 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:42518311 errors:0 dropped:0 overruns:0 frame:0
TX packets:42518311 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12789051952 (11.9 GiB) TX bytes:12789051952 (11.9 GiB)

[aobridko@localhost ~]$ ping 192.168.120.50
PING 192.168.120.50 (192.168.120.50) 56(84) bytes of data.
64 bytes from 192.168.120.50: icmp_seq=1 ttl=64 time=0.695 ms
64 bytes from 192.168.120.50: icmp_seq=2 ttl=64 time=0.632 ms
^C
--- 192.168.120.50 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1645ms
rtt min/avg/max/mdev = 0.632/0.663/0.695/0.040 ms
[aobridko@localhost ~]$ wget http://www.google.com -O wget-test && rm -f wget_test
--2014-03-05 08:56:49-- http://www.google.com/
Connecting to 192.168.120.50:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “wget-test”

[ <=> ] 10,998 --.-K/s in 0.001s

2014-03-05 08:56:49 (11.9 MB/s) - “wget-test” saved [10998]
Last edited by slansing on Wed Mar 05, 2014 12:06 pm, edited 1 time in total.
Reason: Do not double post or bump, it will bump you to the bottom of our "to check" list.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Upgrade error

Post by sreinhardt »

The item you are missing, is the exclusion for localhost within your wget config.

Code: Select all

no_proxy=localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # Hosts to exclude from proxying
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Re: Upgrade error

Post by Kimba7070 »

We addedThe item you are missing, is the exclusion for localhost within your wget config.


but we still are get upgrade failed

any other suggestions
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Upgrade error

Post by sreinhardt »

Could you post the output of the latest upgrade attempt, and the results from the following commands please.

Code: Select all

wget http://192.168.130.50/nagiosxi/index.php
wget http://localhost/nagiosxi/index.php
wget http://127.0.0.1/nagiosxi/index.php
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Re: Upgrade error

Post by Kimba7070 »

1.
[root@localhost ~]# wget http://192.168.130.50/nagiosxi/index.php
--2014-03-10 09:45:11-- http://192.168.130.50/nagiosxi/index.php
Connecting to 192.168.120.50:3128... connected.
Proxy request sent, awaiting response... 302 Moved Temporarily
Location: http://192.168.130.50/nagiosxi/login.ph ... f&noauth=1 [following]
--2014-03-10 09:45:11-- http://192.168.130.50/nagiosxi/login.ph ... f&noauth=1
Connecting to 192.168.120.50:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “login.php?redirect=%2Fnagiosxi%2Findex.php?&noauth=1”

[ <=> ] 15,972 --.-K/s in 0.007s

2014-03-10 09:45:12 (2.18 MB/s) - “login.php?redirect=%2Fnagiosxi%2Findex.php?&noauth=1” saved [15972]

2.
[root@localhost ~]# wget http://localhost/nagiosxi/index.php
--2014-03-10 09:45:38-- http://localhost/nagiosxi/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosxi/login.php?red ... f&noauth=1 [following]
--2014-03-10 09:45:39-- http://localhost/nagiosxi/login.php?red ... f&noauth=1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “login.php?redirect=%2Fnagiosxi%2Findex.php?&noauth=1.1”

[ <=> ] 15,682 --.-K/s in 0.01s

2014-03-10 09:45:39 (1.08 MB/s) - “login.php?redirect=%2Fnagiosxi%2Findex.php?&noauth=1.1” saved [15682]



3.
[root@localhost ~]# wget http://127.0.0.1/nagiosxi/index.php
--2014-03-10 09:46:09-- http://127.0.0.1/nagiosxi/index.php
Connecting to 192.168.120.50:3128... connected.
Proxy request sent, awaiting response... 404 Not Found
2014-03-10 09:46:10 ERROR 404: Not Found.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Upgrade error

Post by sreinhardt »

OK so localhost is responding correctly, however 127.0.0.1 is not, which shouldn't be a big deal. What errors are you presently getting?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Re: Upgrade error

Post by Kimba7070 »

When we go to the GUI interface side and go to admin and check for update

we get a message back update failed
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Upgrade error

Post by tmcdonald »

sreinhardt wrote:Could you post the output of the latest upgrade attempt
Can you post this screenshot please?
Former Nagios employee
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Re: Upgrade error

Post by Kimba7070 »

Please review attached screen shot for error

Thank you
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade error

Post by lmiltchev »

Let's clarify. What is the main issue at the moment - you couldn't upgrade successfully or you did upgrade, but "Check For Updates" is showing you a wrong info?

Did you enable proxy for update checks?

Code: Select all

Admin->Proxy Configuration 
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked