Page 1 of 1

Nagios web gui is not coming up

Posted: Thu May 26, 2016 7:44 am
by merin
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.

Re: Nagios web gui is not coming up

Posted: Thu May 26, 2016 10:02 am
by bwallace
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:

Code: Select all

service httpd status
sestatus
 netstat -an|grep 80

Also, post your /var/log/httpd/error_log

Re: Nagios web gui is not coming up

Posted: Tue May 31, 2016 4:04 am
by merin
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/

Re: Nagios web gui is not coming up

Posted: Tue May 31, 2016 9:36 am
by scottwilkerson
Did you run?

Code: Select all

make install-webconf 
also, did you restart httpd?

Code: Select all

service httpd restart
If so, can you post the output of the following?

Code: Select all

cat /etc/httpd/conf.d/nagios.conf

Re: Nagios web gui is not coming up

Posted: Thu Jun 02, 2016 3:58 am
by merin
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>

Re: Nagios web gui is not coming up

Posted: Thu Jun 02, 2016 3:59 am
by merin
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

Re: Nagios web gui is not coming up

Posted: Thu Jun 02, 2016 9:57 am
by mcapra
Glad to hear you were able to find a solution! Locking this up