Hi all,
We have succesfuly installed nagios server. Service is running. But the web gui is not coming up.
Can you please help with this.
Nagios web gui is not coming up
Re: Nagios web gui is not coming up
We'll need a few details first off...What version of Nagios?
What OS/ Version is the server?
What steps/doc was used for your install - can you provide a link?
Could you post the output of the following commands:
Also, post your /var/log/httpd/error_log
What OS/ Version is the server?
What steps/doc was used for your install - can you provide a link?
Could you post the output of the following commands:
Code: Select all
service httpd status
sestatus
netstat -an|grep 80
Also, post your /var/log/httpd/error_log
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: Nagios web gui is not coming up
Nagios Version : Nagios Core 4.0.8
OS Version : Red Hat Enterprise Linux Server release 6.2 (Santiago)
Installation document referred from following link : http://www.tecmint.com/install-nagios-in-linux/
[root@server1 ~]# service httpd status
httpd (pid 13020) is running...
[root@server1 ~]# sestatus
SELinux status: disabled
[root@server1 ~]# netstat -an|grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:28002 0.0.0.0:* LISTEN
udp 0 0 0.0.0.0:52780 0.0.0.0:*
udp 0 0 127.0.0.1:58081 0.0.0.0:*
unix 2 [ ACC ] STREAM LISTENING 25180 /var/tmp/.oracle/sEXTPROC1529
unix 3 [ ] STREAM CONNECTED 41957880 /usr/local/nagios/var/rw/nagios.qh
[root@server1 ~]# tail -f /var/log/httpd/error_log
[Tue May 31 10:15:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:20:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:25:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:30:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:35:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:40:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:45:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:50:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:55:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
OS Version : Red Hat Enterprise Linux Server release 6.2 (Santiago)
Installation document referred from following link : http://www.tecmint.com/install-nagios-in-linux/
[root@server1 ~]# service httpd status
httpd (pid 13020) is running...
[root@server1 ~]# sestatus
SELinux status: disabled
[root@server1 ~]# netstat -an|grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:28002 0.0.0.0:* LISTEN
udp 0 0 0.0.0.0:52780 0.0.0.0:*
udp 0 0 127.0.0.1:58081 0.0.0.0:*
unix 2 [ ACC ] STREAM LISTENING 25180 /var/tmp/.oracle/sEXTPROC1529
unix 3 [ ] STREAM CONNECTED 41957880 /usr/local/nagios/var/rw/nagios.qh
[root@server1 ~]# tail -f /var/log/httpd/error_log
[Tue May 31 10:15:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:20:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:25:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:30:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:35:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:40:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:45:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:50:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue May 31 10:55:31 2016] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios web gui is not coming up
Did you run?
also, did you restart httpd?
If so, can you post the output of the following?
Code: Select all
make install-webconf
Code: Select all
service httpd restart
Code: Select all
cat /etc/httpd/conf.d/nagios.conf
Re: Nagios web gui is not coming up
I ran these both commands during installation
make install-webconf
service httpd restart
cat /etc/httpd/conf.d/nagios.conf
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
make install-webconf
service httpd restart
cat /etc/httpd/conf.d/nagios.conf
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Re: Nagios web gui is not coming up
Thanks , issue resolved ,
I ran the command "make install-webconf " with wrong path.
Now I ran the command in "nagios-4.0.8" directory , GUI came up.
Thanks alot
I ran the command "make install-webconf " with wrong path.
Now I ran the command in "nagios-4.0.8" directory , GUI came up.
Thanks alot
Re: Nagios web gui is not coming up
Glad to hear you were able to find a solution! Locking this up
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/