No Login Required

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
AmyMarie58
Posts: 3
Joined: Mon Oct 06, 2014 10:22 am

No Login Required

Post by AmyMarie58 »

I have just installed Nagios 3 on a FreeBSD 9.1 system from the ports. When I finally proceeded to where I can go to the web and access Nagios, I was able to see the page without any login required.
I have added an admin user with password but did not need it.

Can someone please help me with this.
Thank you so much for your help.
Amy
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: No Login Required

Post by abrist »

Have you previously logged in from that workstation recently? I ask because core, by default, uses basic auth. You need to either log out, clear the cache, or wait for the auth to timeout.
Can you post the apache vhost file for nagios?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
AmyMarie58
Posts: 3
Joined: Mon Oct 06, 2014 10:22 am

Re: No Login Required

Post by AmyMarie58 »

No I have not logged in from this computer before, there was never a login screen, it just show the index page. nor did I ever see anything about adding nagios to the apache vhost in the installtion docs. What needs to be in there? I have added it to the apache httpd.conf file is that is what you mean. Here it is
<Directory "/usr/local/www/nagios">
Options None
AllowOverride None
Require all granted
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
Allow from 127.0.0.1
php_flag engine on
php_admin_value open_basedir /usr/local/www/nagios/:/var/spool/nagios
</Directory>

<Directory "/usr/local/www/nagios/cgi-bin">
Options ExecCGI
AllowOverride None
Require all granted
</Directory>

ScriptAlias /nagios/cgi-bin "/usr/local/www/nagios/cgi-bin"
Alias /nagios "/usr/local/www/nagios"


I had to do some tweeking of that information because of it being on a FreeBSD machine.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No Login Required

Post by scottwilkerson »

Usually looks like this

Code: Select all

# 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 Core"
   AuthType Basic
   AuthUserFile /usr/local/nagiosxi/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 Core"
   AuthType Basic
   AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
   Require valid-user
</Directory>
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
AmyMarie58
Posts: 3
Joined: Mon Oct 06, 2014 10:22 am

Re: No Login Required

Post by AmyMarie58 »

Hello Again,

I searched the web and found this site:
http://www.xfiles.dk/guide-on-how-to-in ... n-freebsd/
It worked perfect for installing on a FreeBSD system.
Can you please include this link on your Quick Install Guide for FreeBSD users.

thank you so much for your help in all this.

Amy
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: No Login Required

Post by abrist »

Oh, I was unaware of an "official" FreeBSD install guide. Could you post a link to the official guide that you are referring to?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked