Nagios CGI authentication woes.
Peter L. Berghold
Peter at berghold.net
Mon Jan 22 22:25:40 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi folks,
Just put up a new installation of Nagios (version 2.6) and it's not like
I haven't done this before so there is obviously something I'm overlooking.
When I set up authentication I did the same things I've done before (I
think) but it ain't working. When I try to log in I see in the Apache
error logs:
[Mon Jan 22 16:18:26 2007] [error] [client 68.37.227.52] access to
/nagios/cgi-bin/status.cgi failed, reason: verification of user id
'peter' not configured, referer: http://monitor.berghold.net/side.html
and in the cgi.cfg file I've done this:
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=*
which is not quite where I want to be but I've gotten there through
desperation at this point.
The cgi-bin directory (/local/nagios/sbin in my case) has an .htaccess
file that looks like this:
- -rw-r--r-- 1 apache root 104 Jan 22 15:58 .htaccess
permissions wise and has the following contents:
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /local/nagios/etc/nagios.users
require valid-user
The nagios.users file has the requisite userids in it with passwords
generated by htpasswd.
I'm baffled at this point. From my experience this should work but it
isn't. Is there something I'm overlooking?
- --
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Peter L. Berghold Peter at Berghold.Net
"Those who fail to learn from history are condemned to repeat it."
AIM: redcowdawg Yahoo IM: blue_cowdawg ICQ: 11455958
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org
iD8DBQFFtSvTUM9/01RIhaARAngyAKCqy74Fr08zqftXz8HZ/ikoz3SdqwCeL8IE
cDDSPoFwKyjD2Mb6EWYsvoQ=
=EUNJ
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Peter.vcf
Type: text/x-vcard
Size: 239 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070122/70fca4e3/attachment.vcf>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list