Logged in as ?

Rodrigo Maceno rodrigo.maceno at gmail.com
Thu Aug 31 18:47:31 CEST 2006


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...


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