This webpage has a redirect loop
This webpage has a redirect loop
I can get to the welcome page, but after I click "Access Nagios XI" It says "This webpage has a redirect loop" how do I fix this?
Re: This webpage has a redirect loop
We'll have to get a little more detail. Please run the following on the Nagios server and post the output:
Code: Select all
tail -50 /var/log/httpd/error_logFormer Nagios employee
Re: This webpage has a redirect loop
Here it is:
Code: Select all
[root@csvmmon01 ~]# tail -50 /var/log/httpd/error_log
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: min_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 105, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: max_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 106, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: avg_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 107, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: min_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 108, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: max_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 109, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: avg_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 110, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: min_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 115, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: max_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 116, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: avg_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 117, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: min_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 118, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: max_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 119, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:30:53 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: avg_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 120, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: min_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 105, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: max_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 106, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: avg_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 107, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: min_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 108, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: max_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 109, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: avg_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 110, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: min_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 115, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: max_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 116, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: avg_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 117, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: min_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 118, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: max_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 119, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:00 2014] [error] [client 10.160.1.70] PHP Notice: Undefined index: avg_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 120, referer: http://10.150.150.38/nagiosxi/admin/main.php?&=
[Tue Mar 04 09:31:34 2014] [error] [client 10.160.1.70] PHP Notice: Undefined variable: bool in /usr/local/nagiosxi/html/includes/components/massacknowledge/mass_ack.php on line 598, referer: http://10.150.150.38/nagiosxi/includes/components/massacknowledge/mass_ack.php
[Tue Mar 04 09:31:37 2014] [error] [client 10.160.1.70] PHP Notice: Undefined variable: bool in /usr/local/nagiosxi/html/includes/components/massacknowledge/mass_ack.php on line 598, referer: http://10.150.150.38/nagiosxi/includes/components/massacknowledge/mass_ack.php
[Tue Mar 04 09:32:00 2014] [notice] caught SIGTERM, shutting down
[Tue Mar 04 09:33:08 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 04 09:33:08 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Mar 04 09:33:08 2014] [notice] Digest: done
[Tue Mar 04 09:33:10 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
[Tue Mar 04 10:05:44 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[Tue Mar 04 10:05:44 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
[Tue Mar 04 10:07:22 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[Tue Mar 04 10:07:22 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
[Tue Mar 04 10:08:21 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[Tue Mar 04 10:08:21 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
[Tue Mar 04 10:10:42 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[Tue Mar 04 10:10:42 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
[Tue Mar 04 10:11:42 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[Tue Mar 04 10:11:42 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
[Tue Mar 04 10:12:21 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[Tue Mar 04 10:12:21 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
[Tue Mar 04 10:14:01 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0
[Tue Mar 04 10:14:01 2014] [error] [client 127.0.0.1] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
[Tue Mar 04 10:14:21 2014] [error] [client 127.0.0.1] PHP Warning: Unk[Tue Mar 04 10:59:47 2014] [notice] caught SIGTERM, shutting down
[Tue Mar 04 11:01:51 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 04 11:01:51 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Mar 04 11:01:51 2014] [notice] Digest: done
[Tue Mar 04 11:01:52 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
[root@csvmmon01 ~]#
Re: This webpage has a redirect loop
Looking at your logs it seems you have run out of disk space. If these two posts are any indication:
http://stackoverflow.com/questions/7280 ... -device-28
http://stackoverflow.com/questions/5412 ... evice-mean
you either have a hosting provider you need to talk to, or you need to clear up room on your own server.
http://stackoverflow.com/questions/7280 ... -device-28
http://stackoverflow.com/questions/5412 ... evice-mean
you either have a hosting provider you need to talk to, or you need to clear up room on your own server.
Former Nagios employee
Re: This webpage has a redirect loop
I have a 1.1G left.
Code: Select all
[root@csvmmon01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root 7.5G 6.0G 1.1G 85% /
tmpfs 936M 0 936M 0% /dev/shm
/dev/xvda1 485M 114M 347M 25% /boot
[root@csvmmon01 ~]#
Re: This webpage has a redirect loop
When you run out of space, services can no longer create .lock files, subsequently inhibiting the restart or start of the service. Lets restart the whole gambit:
Code: Select all
service mysqld restart
service postgres restart
service ndo2db restart
service httpd restart
service crond restart
service nagios restartFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: This webpage has a redirect loop
The situation cleared up after restarting nagios a couple times. I don't really know what caused it or what exactly fixed it. Next time it happens I will hold off restarting the server to troubleshoot it.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: This webpage has a redirect loop
I would definitely increase your disk space as well, 7.5GB is very low for a Nagios XI server, if it is a VM, I would suggest following:
http://assets.nagios.com/downloads/nagi ... M_Disk.pdf
http://assets.nagios.com/downloads/nagi ... M_Disk.pdf
Re: This webpage has a redirect loop
The problem happened again, so I made sure to check the size of the disk, it was full. I increased the size of the disk by 10 GB. It fixed the problem. This thread can be closed.