Nagios CentOS 6.2 Issues

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
adionisi
Posts: 4
Joined: Mon Jul 09, 2012 6:03 pm

Nagios CentOS 6.2 Issues

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios CentOS 6.2 Issues

Post 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/
adionisi
Posts: 4
Joined: Mon Jul 09, 2012 6:03 pm

Re: Nagios CentOS 6.2 Issues

Post 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>
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Nagios CentOS 6.2 Issues

Post 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.
adionisi
Posts: 4
Joined: Mon Jul 09, 2012 6:03 pm

Re: Nagios CentOS 6.2 Issues

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Nagios CentOS 6.2 Issues

Post 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).
adionisi
Posts: 4
Joined: Mon Jul 09, 2012 6:03 pm

Re: Nagios CentOS 6.2 Issues

Post 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.
Locked