Debian, Nagios, CGI, Good config... Still errors !!

Matthijs Macaré matthijs.macare at xs4all.nl
Sat Jan 22 02:21:36 CET 2005


Some manuals (I have read a several one) told me that I only needed to put a 
.htacces in the /usr/lib/cgi-bin/nagios and not in the /etc/nagios when I 
don't wanted to mass secure it. So I didn't do that, maybe in a later 
stadium. I think I have tried it but didn't know for sure anymore.

Yes the username is shown and it's also member of the contactgroup for the 
hosts that I will see. I see the host in the Scheduling Qeueu but can't 
access the extra info when I click there on the Host or the Service that it 
has running. Ik get the error:


"It appears as though you do not have permission to view information for 
this host...


If you believe this is an error, check the HTTP server authentication 
requirements for accessing this CGI
and check the authorization options in your CGI configuration file."


Yes I have read the CGI-configuration for a hundred times now I think. I 
have also searched where I can set the Perl-path for these CGI's because 
when I put a "hello.cgi" in the nagios-cgi dir with the right perlpath in 
it, it runs great (this after removing the .htaccess there offcourse).

I think also that the perl-path isn't right, but the strange thing is that I 
can access the "Scheduling Qeueu"


"Marc Powell" <marc at ena.com> schreef in bericht 
news:349555FA607F3A4CBDA9326035D1A7FC8364F4 at mismail.ena.com...


> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Matthijs Macaré
> Sent: Friday, January 21, 2005 6:05 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Debian, Nagios, CGI, Good config... Still errors
> !!
>
> After fixing a MySQL-bug in the 40.23-1 and upgraded to 4.0.23-3 I ran
> into
> following problem and I did before with the text-version.
>
> Anyone else having problems getting Nagios cgi scripts to run on Debian
> Sarge.  I installed it this and previous week but it's not running so
> good.
> But I
>
> I get the message:
> "It appears as though you do not have permission to view information for
> any of the hosts you requested... If you believe this is an error, check
> the HTTP server authentication requirements for accessing this CGI and
> check the authorization options in your CGI configuration file."
>
> No matter what I've tried, I can't get around this, whether I enable or
> disable authentication.  Anyone know if the newest deb package for
> Nagios is broken?
>
> I currently have authentication turned on.  It appears to be working
> fine, as I am requested to log in with the nagiosadmin account when
> first accessing the web site or see "tactical overview".  But then, any
> link
> that accesses
> status.cgi (and some others) come back with the above message.
>

Just some common pointers to maybe get you going in the right direction:

Do you have the .htaccess file in nagios' sbin directory or just the share 
directory? It needs to be in the sbin directory.

When you log in, does nagios show you as logged in with that username? 
(upper left, Logged In As <fill in the blank>)

Is the above user a member of the contactgroup for the hosts that you are 
expecting to see?

Have you reviewed the documentation on configuring authorization for the 
CGI's to make sure you didn't miss a step? 
http://nagios.sourceforge.net/docs/2_0/cgiauth.html Since you've installed 
from a package, you'll probably need to do some mental transformations to 
get the paths right.

--
Marc



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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





-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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