Page 1 of 1

Nagios CentOS 6.2 Issues

Posted: Mon Jul 09, 2012 6:14 pm
by adionisi
Hello All,

I am working on a Nagios Core Install on CentOS 6.2. I am running to some issues when I try to access the Nagios web interface from another workstation. When I go to the address of the site it brings up a Nagios IX login page. I am able to log into the web interface on the server fine and I can access all of the features. The problem is just trying to access the interface from another workstation. If there is anyone with any advice or help with this issue it would be greatly appreciated.

Re: Nagios CentOS 6.2 Issues

Posted: Tue Jul 10, 2012 9:41 am
by mguthrie
It sounds like the apache alias could be pointing to the XI directory instead of core. Can you post your nagios related configs in /etc/httpd/conf.d/

Re: Nagios CentOS 6.2 Issues

Posted: Tue Jul 10, 2012 11:03 am
by adionisi
Thank you for responding. Here are the contents of that file.

# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# 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 CentOS 6.2 Issues

Posted: Wed Jul 11, 2012 10:27 am
by agriffin
So what have you done to set up this server? You say this is a Nagios Core install, but if it brings up an XI login page you must have also installed Nagios XI at some point.

Re: Nagios CentOS 6.2 Issues

Posted: Wed Jul 11, 2012 10:35 am
by adionisi
I have done a complete reinstall of Nagios on my centOS 6.2 system. Everything seems to be working fine on the server side. The problem now is when I try to connect from my workstation to the nagios site running on the server I can't pull up the login screen. The broswer will send back a response saying the server took to long to respond or something like that. I am not sure on what the issue could be.

Re: Nagios CentOS 6.2 Issues

Posted: Wed Jul 11, 2012 10:45 am
by agriffin
Are you running iptables or selinux? Make sure that iptables has a rule allowing external connections to Apache, or disable it temporarily to test it (service iptables restart). Likewise, disable selinux to see if that's the issue (setenforce 0).

Re: Nagios CentOS 6.2 Issues

Posted: Wed Jul 11, 2012 3:22 pm
by adionisi
I tried both of those and still nothing. The web browser will just quit out. The server that nagios is running on is pingable. I am not sure if it is a configuration issue or if it is possibly a network issue. Any other thoughts or suggestions.