Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nagios not prompting for username/password
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cuban
Guru
Guru


Joined: 23 Aug 2003
Posts: 448
Location: Houston, TX

PostPosted: Thu Mar 10, 2005 4:04 pm    Post subject: Nagios not prompting for username/password Reply with quote

All.

I'm using nagios with apache1. I've put .htaccess in /usr/sbin/nagios and nagios is not prompting me when I go to the website. Anyone have any idea why?

Thanks,
Daniel
_________________
Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today!
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu Mar 10, 2005 5:25 pm    Post subject: Reply with quote

/usr/sbin/nagios is a binary on my system, though I am running 2.0 instead of 1.2. I'd check /etc/apache/conf.d/nagios.conf to see where Apache thinks it needs to be. If it's like my system it'll be in /usr/nagios/share/

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
cuban
Guru
Guru


Joined: 23 Aug 2003
Posts: 448
Location: Houston, TX

PostPosted: Thu Mar 10, 2005 5:26 pm    Post subject: Reply with quote

Sorry, it's /usr/nagios/sbin is where instructions said to put it. I put it in /usr/nagios/share and /usr/nagios/sbin and it still does not prompt me for un/pw.
_________________
Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today!
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu Mar 10, 2005 5:53 pm    Post subject: Reply with quote

edit to fix grammar

Are you doing anything interesting in the allow portion of /etc/apache/conf.d/nagios.conf ? IP's on the allow from line are *not* prompted for a password. You'll want a deny from any line and then maybe allow specific IP's if you're loke. Mine looks like this:
Code:

ScriptAlias /nagios/cgi-bin/ /usr/nagios/sbin/
<Directory /usr/nagios/sbin/>
   AllowOverride AuthConfig
   Options ExecCGI
   order deny,allow
   deny from all
   allow from 127.0.0.1
   AuthType Basic
   AuthName "Nagios"
   AuthUserFile /usr/nagios/sbin/.htpasswd
   require valid-user
   Satisfy Any
</Directory>

Alias /nagios/ /usr/nagios/share/
<Directory /usr/nagios/share/>
   AllowOverride AuthConfig
   Options None
   order deny,allow
   deny from all
   allow from 127.0.0.1
   AuthType Basic
   AuthName "Nagios"
   AuthUserFile /usr/nagios/share/.htpasswd
   require valid-user
   Satisfy Any
</Directory>


kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.


Last edited by kashani on Thu Mar 10, 2005 9:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
cuban
Guru
Guru


Joined: 23 Aug 2003
Posts: 448
Location: Houston, TX

PostPosted: Thu Mar 10, 2005 8:02 pm    Post subject: Reply with quote

Code:
ScriptAlias /nagios/cgi-bin/ /usr/nagios/sbin/
<Directory "/usr/nagios/sbin/">
        AllowOverride AuthConfig
        Options ExecCGI
        order deny,allow
        allow from all
        AuthType Basic
        AuthName "Nagios"
        AuthUserFile /etc/nagios/htpasswd.users
        require valid-user
        Satisfy Any
</Directory>


Alias /nagios /usr/nagios/share/
<Directory "/usr/nagios/share">
        AllowOverride AuthConfig
        Options ExecCGI
        order deny,allow
        allow from all
        AuthType Basic
        AuthName "Nagios"
        AuthUserFile /etc/nagios/htpasswd.users
        require valid-user
        Satisfy Any
</Directory>


All that is there and I'm still not even prompted for a username/password.
_________________
Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today!
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu Mar 10, 2005 9:36 pm    Post subject: Reply with quote

Of course you're not getting prompted. You've got that big fat "allow from all" line sitting in your config.

Looking at my previous post that should read "IP in the allow from line are NOT prompted for passwords" which might be your problem. Make it look like mine and it should work.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum