Page 1 of 1
Disable authentication and short url
Posted: Mon Mar 11, 2013 11:35 pm
by reistlin
Hi all.
I have debian 6 and nagios 3 core .
1) I set
- use_authentication=1
default_user_name=guest
authorized_for_system_information= *
authorized_for_configuration_information=*
authorized_for_system_commands=*
authorized_for_all_services=*
authorized_for_all_hosts=*
authorized_for_all_service_commands=*
authorized_for_all_host_commands=*
But i login in 192.168.1.1/nagios3 and it need to authorization . How to disable this?
2)How to make short url ? Connect to nagios type 192.168.1.1 instead of 192.168.1.1/nagios3
Re: Disable authentication and short url
Posted: Tue Mar 12, 2013 9:39 am
by abrist
What guide did you follow? Did you setup basic authentication? (htpasswd)
Re: Disable authentication and short url
Posted: Tue Mar 12, 2013 11:33 pm
by reistlin
abrist wrote:What guide did you follow? Did you setup basic authentication? (htpasswd)
It is russian article
http://ubuntologia.ru/nagios
Yes, i add nagiosadmin and guest to htpasswd (htpasswd -c /etc/nagios3/htpasswd.users nagiosadmin)
Re: Disable authentication and short url
Posted: Wed Mar 13, 2013 9:42 am
by abrist
Does it work without auth? Just to test that the rest of the config is working, set:
And restart apache/nagios. If it is working, we will drill down the auth problem.
reistlin wrote:
2)How to make short url ? Connect to nagios type 192.168.1.1 instead of 192.168.1.1/nagios3
There are a couple of ways. Most people edit their apache vhost setup to taste. You could use dns to do so as well.
What does your nagios apache vhost config look like?
Re: Disable authentication and short url
Posted: Wed Mar 13, 2013 10:07 pm
by reistlin
abrist wrote:Does it work without auth? Just to test that the rest of the config is working, set:
And restart apache/nagios. If it is working, we will drill down the auth problem.
I set use_authentication=0 and restart apache/nagios, but it is still requires authentication. Maybe problem in apache ?
abrist wrote:
There are a couple of ways. Most people edit their apache vhost setup to taste. You could use dns to do so as well.
What does your nagios apache vhost config look like?
My 000-default file is:
Code: Select all
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Re: Disable authentication and short url
Posted: Thu Mar 14, 2013 9:43 am
by abrist
Do you have a specific vhost file for nagios? I noticed that you have your cgi-bin directories declared, but are your nagios html files in the /var/www directory?