Auth problems
Nicola Agnelli
nicola.agnelli at spiderwall.com
Fri May 26 09:36:08 CEST 2006
Morris, Patrick wrote:
> Did you do this part (specifically, the changes to /etc/conf.d/apache2)
> and restart Apache?
>
> http://gentoo-wiki.com/HOWTO_Install_Nagios#Setting_Up_The_Web_Interface
>
>
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Nicola
> Agnelli
> Sent: Thursday, May 25, 2006 7:40 AM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Auth problems
>
> Hugo van der Kooij wrote:
>> On Thu, 25 May 2006, Nicola Agnelli wrote:
>>
>>> Hugo van der Kooij wrote:
>>>> On Thu, 25 May 2006, Nicola Agnelli wrote:
>>>>
>>>>>> I still have many problems with authentication.. i've read docs
>>>>>> but i can't resolve.. Have anyone some ideas ?
>>>> Start again and show us:
>>>> - apache config changes
>>>> - settings you think are relevant/changed in nagios config files.
>>>>
>>>> Do not assume anything. Do not think we know how you did things so
>>>> describe them clearly from scratch.
>>> I've done exactly what is described in this guide:
>>> http://gentoo-wiki.com/HOWTO_Install_Nagios
>>>
>>> I've tried to remove /etc/nagios/htpasswd.users and recreate it with
>>>
>>> htpasswd2 -c /etc/nagios/htpasswd.users nagiosadmin
>>>
>>> but anyway i can't login !
>>>
>>> I attach my apache.conf file anche nagios module..
>> And just where did you define NAGIOS? The next part will never be used
>
>> unless you define it.
>>
>> <IfDefine NAGIOS>
>> ScriptAlias /nagios/cgi-bin/ /usr/nagios/sbin/
>> <Directory "/usr/nagios/sbin/">
>> AllowOverride AuthConfig
>> Options ExecCGI
>> Order allow,deny
>> Allow from all
>> </Directory>
>> Alias /nagios /usr/nagios/share/
>> <Directory "/usr/nagios/share">
>> AllowOverride AuthConfig
>> Order allow,deny
>> Allow from all
>> </Directory>
>> </IfDefine>
>>
>> Hugo.
>>
>
> I've defined it in /etc/apache2/modules.d/99_nagios.conf and in it i've
> this:
>
>
> <IfDefine NAGIOS>
> ScriptAlias /nagios/cgi-bin/ /usr/nagios/sbin/
> <Directory "/usr/nagios/sbin/">
> AllowOverride AuthConfig
> Options ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
> Alias /nagios /usr/nagios/share/
> <Directory "/usr/nagios/share">
> AllowOverride AuthConfig
> Order allow,deny
> Allow from all
> </Directory>
> </IfDefine>
>
>
> --
> Nicola
>
>
> -------------------------------------------------------
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications
> in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&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
>
>
> -------------------------------------------------------
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
> _______________________________________________
> 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
>
Unfortunatly i still having problems with auth.. i can't login in noway!
I post my dir structure, maybe usefull:
# ls -la /etc/nagios/
total 163
drwxr-x--- 2 nagios nagios 440 May 24 18:25 .
drwxr-xr-x 47 root root 3304 May 25 17:28 ..
-rw-r--r-- 1 root root 0 May 24 11:19 .keep
-rwxr--r-- 1 root root 31338 May 24 14:04 bigger.cfg
-rwxr--r-- 1 root root 9780 May 24 18:21 cgi.cfg
-rwxr--r-- 1 root root 4999 May 24 14:04 checkcommands.cfg
-rw-r--r-- 1 root root 2286 May 24 12:20 hosts.cfg
-rw-r----- 1 apache apache 26 May 24 18:25 htpasswd.users
-rwxr--r-- 1 root root 35288 May 24 14:08 minimal.cfg
-rwxr--r-- 1 root root 4373 May 24 14:04 misccommands.cfg
-rw-r--r-- 1 root root 31458 May 24 14:05 nagios.cfg
-rw-r----- 1 root nagios 4740 May 24 11:49 nrpe.cfg
-rw-r--r-- 1 root root 4673 May 24 11:48 nsca.cfg
-rwxr--r-- 1 root root 1357 May 24 14:04 resource.cfg
-rw-r--r-- 1 root root 1628 May 24 11:48 send_nsca.cfg
# ls -la /usr/nagios/
total 2
drwxrwxr-x 6 nagios nagios 144 May 24 11:48 .
drwxr-xr-x 14 root root 392 May 24 11:19 ..
drwxrwxr-x 2 nagios nagios 264 May 24 11:49 bin
drwxr-x--- 3 nagios nagios 1944 May 24 11:49 libexec
drwxrwxr-x 2 nagios nagios 616 May 24 12:08 sbin
drwxrwxr-x 8 nagios nagios 368 May 24 12:09 share
# ls -la /usr/nagios/sbin/
total 2517
drwxrwxr-x 2 nagios nagios 616 May 24 12:08 .
drwxrwxr-x 6 nagios nagios 144 May 24 11:48 ..
-rw-r----- 1 apache apache 99 May 24 12:08 .htaccess
-rwxrwxr-x 1 nagios nagios 195580 May 24 11:19 avail.cgi
-rwxrwxr-x 1 nagios nagios 193012 May 24 11:19 cmd.cgi
-rwxrwxr-x 1 nagios nagios 148540 May 24 11:19 config.cgi
-rwxrwxr-x 1 nagios nagios 207220 May 24 11:19 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 158172 May 24 11:19 histogram.cgi
-rwxrwxr-x 1 nagios nagios 136316 May 24 11:19 history.cgi
-rwxrwxr-x 1 nagios nagios 132188 May 24 11:19 notifications.cgi
-rwxrwxr-x 1 nagios nagios 133112 May 24 11:19 outages.cgi
-rwxrwxr-x 1 nagios nagios 132476 May 24 11:19 showlog.cgi
-rwxrwxr-x 1 nagios nagios 187384 May 24 11:19 status.cgi
-rwxrwxr-x 1 nagios nagios 156924 May 24 11:19 statusmap.cgi
-rwxrwxr-x 1 nagios nagios 145628 May 24 11:19 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 133628 May 24 11:19 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 154876 May 24 11:19 summary.cgi
-rwxrwxr-x 1 nagios nagios 150104 May 24 11:19 tac.cgi
-rwxr-xr-x 1 nagios nagios 5329 May 24 11:19 traceroute.cgi
-rwxrwxr-x 1 nagios nagios 167196 May 24 11:19 trends.cgi
#ls -la /usr/nagios/share/
total 38
drwxrwxr-x 8 nagios nagios 368 May 24 12:09 .
drwxrwxr-x 6 nagios nagios 144 May 24 11:48 ..
-rw-r----- 1 apache apache 99 May 24 12:09 .htaccess
drwxrwxr-x 2 nagios nagios 1560 May 24 11:19 contexthelp
drwxrwxr-x 3 nagios nagios 2040 May 24 11:19 docs
drwxrwxr-x 3 nagios nagios 1944 May 24 11:19 images
-rw-rw-r-- 1 nagios nagios 658 May 24 11:19 index.html
-rw-rw-r-- 1 nagios nagios 2339 May 24 11:19 main.html
drwxrwxr-x 2 nagios nagios 144 May 24 11:19 media
-rw-rw-r-- 1 nagios nagios 26 May 24 11:19 robots.txt
-rw-rw-r-- 1 nagios nagios 12729 May 24 11:19 side.html
drwxrwxr-x 2 nagios nagios 72 May 24 11:19 ssi
drwxrwxr-x 2 nagios nagios 584 May 24 11:19 stylesheets
Thank you all for help,
--
Nicola
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&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
More information about the Users
mailing list