Web interface time out
Re: Web interface time out
[root@localhost ~]# httpd -S
VirtualHost configuration:
Syntax OK
[root@localhost ~]#
VirtualHost configuration:
Syntax OK
[root@localhost ~]#
Re: Web interface time out
Your apache server is not using *any* vhost files. Have you made any changes to the httpd.conf file? Or any changes to the apache configuration in general?
Former 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: Web interface time out
just the commands suggested earlier
usermod -a -G nagios apache
usermod -a -G nagios nagios
usermod -a -G nagios apache
usermod -a -G nagios nagios
Re: Web interface time out
Are you including the vhost files in your httpd conf?
Code: Select all
grep Include /etc/httpd/conf/httpd.confFormer 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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Web interface time out
Lets
also, lets make sure apache is part of the nagios group
Code: Select all
chown nagios:nagios /usr/local/nagiosCode: Select all
cat /etc/group|grep nagios
Re: Web interface time out
[root@localhost conf]# grep Include /etc/httpd/conf/httpd.conf
Include conf.d/*.conf
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# (You will also need to add "Includes" to the "Options" directive.)
Options IncludesNoExec
AddOutputFilter Includes html
[root@localhost conf]# chown nagios:nagios /usr/local/nagios
[root@localhost conf]# cat /etc/group|grep nagios
nagios
501:apache,nagios
nagcmd
502:nagios,apache
[root@localhost conf]#
Include conf.d/*.conf
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# (You will also need to add "Includes" to the "Options" directive.)
Options IncludesNoExec
AddOutputFilter Includes html
[root@localhost conf]# chown nagios:nagios /usr/local/nagios
[root@localhost conf]# cat /etc/group|grep nagios
nagios
nagcmd
[root@localhost conf]#
Re: Web interface time out
I am running out of ideas. Can you curl the nagios page?
You should get "authorization required"
Code: Select all
curl 127.0.0.1/nagiosFormer 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: Web interface time out
[root@com-vfcmon-01 ~]# curl 127.0.0.1/nagios
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at 127.0.0.1 Port 80</address>
</body></html>
[root@com-vfcmon-01 ~]#
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at 127.0.0.1 Port 80</address>
</body></html>
[root@com-vfcmon-01 ~]#
Re: Web interface time out
hmmm. So when you browse to:
http://<nagios server ip>/nagios/index.php
Do you get a password prompt?
http://<nagios server ip>/nagios/index.php
Do you get a password prompt?
Former 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: Web interface time out
I found the problem. It was the firewall on the server. I added a line with the command:
iptables -I INPUT 5 -i eth0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
Even though I had the line in the iptable:
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
It wasn't working.
Thanks for all the input.
iptables -I INPUT 5 -i eth0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
Even though I had the line in the iptable:
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
It wasn't working.
Thanks for all the input.