Nagios web gui is not coming up

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
merin
Posts: 5
Joined: Thu May 26, 2016 4:50 am

Nagios web gui is not coming up

Post 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.
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios web gui is not coming up

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
merin
Posts: 5
Joined: Thu May 26, 2016 4:50 am

Re: Nagios web gui is not coming up

Post 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/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios web gui is not coming up

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
merin
Posts: 5
Joined: Thu May 26, 2016 4:50 am

Re: Nagios web gui is not coming up

Post 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>
merin
Posts: 5
Joined: Thu May 26, 2016 4:50 am

Re: Nagios web gui is not coming up

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios web gui is not coming up

Post by mcapra »

Glad to hear you were able to find a solution! Locking this up
Former Nagios employee
https://www.mcapra.com/
Locked