RE: Nagios Home Page

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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: RE: Nagios Home Page

Post by abrist »

You have declared "AuthType Digest" which uses htdigest, whereas the default "AuthType Basic" uses htpasswd. Additionally, did you fix the ScriptAlias path?
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.
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: RE: Nagios Home Page

Post by devilsguest »

Here is the issue again.............When i give "AllowOverride None" it's not asking me for a password and directly I can see the web console. But, when I change it to "AllowOverried AuthConfig" password i enter is not being accepted and kicking me back with same error which we were struggling to solve.
[auth_basic:error]AH01617: user nagiosadmin: authentication failure for "/nagios/": Password Mismatch
I don't really understand why nagios is behaving so weird or the problem is with the newer version of webserver. I am sick to work on one environment since last 2 weeks. God would be the only one who might have known answer to this situation...... :oops:
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: RE: Nagios Home Page

Post by abrist »

I just upgraded one of my core instances to apache 2.4.4 and the old (default) vhosts file works fine.
Did you fix the ScriptAlias path?
What does your vhost config look like at this point?
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.
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: RE: Nagios Home Page

Post by devilsguest »

Code: Select all

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin/"

<Directory "/usr/local/nagios/sbin/">
Options ExecCGI
AllowOverride AuthConfig
Require all granted
AuthName "Nagios Web Access"
AuthType Digest
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>

ScriptAlias /nagios "/usr/local/nagios/share/"

<Directory "/usr/local/nagios/share/">
Options None
AllowOverride AuthConfig
Require all granted
AuthName "Nagios Web Access"
AuthType Digest
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: RE: Nagios Home Page

Post by devilsguest »

where do i find this file called
"/nagios/"
what is it actually.....what type of file is it on core 3.4.4
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: RE: Nagios Home Page

Post by sreinhardt »

/nagios/ is actually referencing the virtual host directory, and tells apache what to retieve from the filesystem to get the proper files for that site. The line ScriptAlias /nagios "/usr/local/nagios/share/" States that referencing /nagios/ in your web browser will point apache to files in /usr/local/nagios/share/. The files contained inside of that folder are largely CGI scripts.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked