Page 1 of 1
Cannot access to Web interface - Ubuntu
Posted: Tue Apr 08, 2014 8:30 am
by onedata
Hi all,
I have installed Nagios core 4.0 - last stable version. When I want to login on the
Apache ask me for credentials, I tried lodin and always I got - 401 Authorization required. The credentials are correct, regarging
Code: Select all
/usr/local/nagios/etc/htpasswd.users
Here some outputs:
Code: Select all
root@onedata-desktop:/usr/local/nagios/sbin# sestatus
SELinux status: disabled
root@onedata-desktop:/usr/local/nagios/sbin# service nagios status
nagios (pid 3309) is running...
Are you think that issue can be with SELinux status? How can I fixed this?
Thank you
Re: Cannot access to Web interface - Ubuntu
Posted: Tue Apr 08, 2014 9:21 am
by slansing
I hope you are not trying to log in with the obfuscated password... The defaults should be:
U: nagiosadmin
P: nagiosadmin
To change this run the following:
Code: Select all
sudo htpasswd /etc/nagios4/htpasswd.users nagiosadmin
Re: Cannot access to Web interface - Ubuntu
Posted: Tue Apr 08, 2014 9:40 am
by onedata
no, unfortunetly..I tried to change it several times and it wasn't helpful, but now I found that I have the file htpasswd.users in this directory:
it means somthing?
Re: Cannot access to Web interface - Ubuntu
Posted: Tue Apr 08, 2014 1:40 pm
by slansing
You mentioned:
Code: Select all
/usr/local/nagios/etc/htpasswd.users
Being the path above, is that not actually the path? If it is not in that directory how did you verify it there? Perhaps you should install 'mlocate' and check.
I believe mlocate is in the aptitude repo's:
run:
Re: Cannot access to Web interface - Ubuntu
Posted: Thu Apr 10, 2014 2:50 pm
by onedata
This is the output of the command you adviced us.
Code: Select all
onedata@onedata-desktop:~$ locate htpasswd.users
/usr/local/nagios/etc/htpasswd.users
Re: Cannot access to Web interface - Ubuntu
Posted: Fri Apr 11, 2014 10:53 am
by sreinhardt
If that is the actual path you need, can be verified by looking at the nagios.conf in your apache conf.d directory (/etc/apache2/conf.d in ubuntu\debian land), you likely built from source, is that true or did you use a package manager version?