I solved this problem creating a .htaccess archive at the /usr/local/nagios/bin... Then I configured the minimal.cfg archive defining the contacts with the htpasswd.users archive's users...<br><br><br><div><span class="gmail_quote">
2006/8/31, Andy Shellam <<a href="mailto:andy.shellam-lists@mailnetwork.co.uk">andy.shellam-lists@mailnetwork.co.uk</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I also have this problem. I'd like my users to have different rights<br>dependent on their login name, but I can't use anything unless<br>"default_user_name" is set, and then it always assumes the role of the
<br>default user.<br>I've got a htpasswd.users file in /usr/local/nagios/etc which is<br>readable and writeable by nagios, and readable to the webserver group.<br><br>All users are authenticated via an SQL authentication module, and basic
<br>authentication succeeds, so I can't see this would make a difference.<br>Here's my SQL authentication configuration from Apache. Note that<br>AuthUserFile needs to be /dev/null or it will circumvent the SQL<br>authentication and take the password from AuthUserFile instead of the
<br>database. It is company policy that all users are authenticated from<br>this database.<br><br>Note that basic authentication works - it seems to be Nagios is not<br>reading the logged in user ID.<br><br>An example user is "andyshellam." Which field in the contacts
<br>configuration needs to match the authenticated user ID?<br><br>Here are my configuration files (sensitive values replaced with<br>bracketed expressions):<br><br>*/usr/local/apache2/conf/httpd_auth.conf*<br><br>AuthType Basic
<br>AuthUserFile /dev/null<br>AuthBasicAuthoritative Off<br>Auth_PG_host (DB_HOSTNAME)<br>Auth_PG_port (DB_PORT)<br>Auth_PG_user (DB_USER)<br>Auth_PG_pwd (DB_PASSWORD)<br>Auth_PG_database (DB_NAME)<br>Auth_PG_pwd_table (DB_USERS_TABLE)
<br>Auth_PG_uid_field (DB_USER_ID_COLUMN)<br>Auth_PG_pwd_field (DB_PASSWORD_COLUMN)<br>Require valid-user<br><br>*/usr/local/nagios/etc/htpasswd.users*<br><br>andyshellam:(PASSWORD)<br><br>*/usr/local/nagios/etc/nagcfg/contacts.cfg*
<br><br>define contactgroup {<br> contactgroup_name NetServe<br> alias NetServe Business and Customer<br>Support<br> members andyshellam
<br>}<br><br>define contact {<br> contact_name andyshellam<br> alias andyshellam<br> service_notification_period always<br> host_notification_period always
<br> host_notification_options d,u,r,f<br> host_notification_commands Send_HostAlert<br> service_notification_options w,u,r,f,c<br> service_notification_commands Send_ServiceAlert
<br> email (EMAIL_ADDRESS)<br> pager (PAGER_TO_EMAIL_GATEWAY)<br>}<br><br>Many thanks<br><br>Andy.<br><br>---<br><br>Marc Powell wrote:<br>><br>>> -----Original Message-----
<br>>> From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:nagios-users-">nagios-users-</a><br>>> <a href="mailto:bounces@lists.sourceforge.net">
bounces@lists.sourceforge.net</a>] On Behalf Of Marc Powell<br>>> Sent: Wednesday, August 30, 2006 4:06 PM<br>>> To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
>> Subject: Re: [Nagios-users] Logged in as ?<br>>><br>>><br>>><br>>><br>>>> -----Original Message-----<br>>>> From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">
nagios-users-bounces@lists.sourceforge.net</a><br>>>><br>> [mailto:<a href="mailto:nagios-users-">nagios-users-</a><br>><br>>>> <a href="mailto:bounces@lists.sourceforge.net">bounces@lists.sourceforge.net
</a>] On Behalf Of Rodrigo Maceno<br>>>> Sent: Wednesday, August 30, 2006 2:05 PM<br>>>> To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>>>> Subject: [Nagios-users] Logged in as ?
<br>>>><br>>>> Hello,<br>>>><br>>>> I have an archive htpasswd.users at the /usr/local/nagios/etc<br>>>><br>>> directory<br>>><br>>>> and when I remove the line 'default_user_name' at the
cgi.cfg<br>>>><br>> archive<br>><br>>> and<br>>><br>>>> I try to logging in the Nagios with a user, it shows me the follow<br>>>> message: Logged in as ?. I don't know what can be causing it. Could
<br>>>><br>>> anyone<br>>><br>>>> help me??<br>>>><br>>> Check your .htaccess file in the ~nagios/sbin directory. Make sure<br>>><br>> it's<br>><br>>> readable by your web server and looks like the documentation.
<br>>><br>><br>> Actually I forgot that the new recommended approach if via httpd.conf<br>> configuration entirely. Make sure that you have the relevant httpd.conf<br>> entries for your sbin directory as indicated at
<br>> <a href="http://nagios.sourceforge.net/docs/2_0/installweb.html">http://nagios.sourceforge.net/docs/2_0/installweb.html</a> and have<br>> restarted your web server.<br>><br>> --<br>> Marc<br>><br>> -------------------------------------------------------------------------
<br>> Using Tomcat but need to do more? Need to support web services, security?<br>> Get stuff done quickly with pre-integrated technology to make your job easier<br>> Download IBM WebSphere Application Server v.1.0.1
based on Apache Geronimo<br>> <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br>
> _______________________________________________<br>> Nagios-users mailing list<br>> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>> ::: Messages without supporting info will risk being sent to /dev/null
<br>><br>> !DSPAM:37,44f5fe9a143292131316873!<br>><br>><br>><br><br><br>-------------------------------------------------------------------------<br>Using Tomcat but need to do more? Need to support web services, security?
<br>Get stuff done quickly with pre-integrated technology to make your job easier<br>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">
Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>