I: Autentications problems

Tedman Eng teng at dataway.com
Tue Jan 24 20:15:30 CET 2006


Please always respond to the list.


The FAQ section on the Nagios website provides answers to your question.
http://www.nagios.org/faqs/viewfaq.php?faq_id=48&expand=false&showdesc=false
http://www.nagios.org/faqs/viewfaq.php?faq_id=47&expand=false&showdesc=false

The upper left hand box of the main frame should display the user that
you're logged in as
 -------------------------------------------
|Current Network Status                     |
|Last Updated: Tue Jan 24 11:05:34 PST 2006 |
|Updated every 60 seconds                   |
|Nagios® - www.nagios.org                   |
|Logged in as SomeUser                      |
 -------------------------------------------


> -----Original Message-----
> From: Nicola Agnelli [mailto:nicola.agnelli at spiderwall.com]
> Sent: Tuesday, January 24, 2006 3:04 AM
> To: 'Tedman Eng'
> Subject: R: [Nagios-users] I: Autentications problems
> 
> 
> Thank you for your answer, now i've another problem, now when 
> i click on
> host details or something else i've this error:
> 
> 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.
> 
> 
> 
> How can I fix this ? 
> 
> Tnx
> 
> nicola
> 
> -----Messaggio originale-----
> Da: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] Per conto 
> di Tedman Eng
> Inviato: lunedì 23 gennaio 2006 20.20
> A: 'Nicola Agnelli'; nagios-users at lists.sourceforge.net
> Cc: nicola.agnelli at gmail.com
> Oggetto: RE: [Nagios-users] I: Autentications problems
> 
> The ../nagios directory needs to be readable/executable by 
> the nagios user
> and the apache user.
> drwxr-xr-x    9 nagios   nagios       4096 Jan  1 2003  nagios/
> 
> The ../nagios/var directory needs to be readable/executable 
> by the nagios
> user and the apache user.
> drwxr-xr-x    4 nagios   nagios       4096 Jan  1 2003  var/
> 
> The ../nagios/var/rw directory needs to be 
> readable/writable/executable by
> the nagios user and apache user (or group).
> drwxrwsr-x    2 nagios   nagioscmd    4096 Jan  1 2003  var/rw/
> 
> 
> Your changes fixed the web interface because apache could now 
> access the
> files, but now nagios cannot access the files anymore, 
> causing the error
> messages you saw.
> 
> Follow the official docs, paying special attention to the 
> part about using
> "chmod" and you should be okay.
> http://nagios.sourceforge.net/docs/2_0/installing.html
> 
> 
> 
> -----Original Message-----
> From: Nicola Agnelli [mailto:nicola.agnelli at spiderwall.com]
> Sent: Monday, January 23, 2006 7:00 AM
> To: nagios-users at lists.sourceforge.net
> Cc: nicola.agnelli at gmail.com
> Subject: [Nagios-users] I: Autentications problems
> 
> 
>  
> Hi all,
> this is the firt time i write to this list, i've just 
> installed Nagios on a
> Gentoo machine following this how-to :
> http://forums.gentoo.org/viewtopic-t-262408-highlight-howto+na
> gios.html
>  
> When I started nagios, with /etc/inid.d/nagios start I've no 
> problem, I've
> verified conf file with -v option and I've no errors.
>  
> The problem is that when I put my user/pass it'don't 
> authenticate me, so
> I've change permission of nagios directory in /etc:
>  
> drwxr-x---   2 apache apache    672 Jan 20 15:47 nagios
>  
> Those are the file:
>  
> -rw-r--r--  1 apache apache 17049 Jan 23 15:31 cgi.cfg
> -rw-r--r--  1 apache apache  4475 Jan 19 14:32 checkcommands.cfg
> -rw-r--r--  1 apache apache   816 Jan 19 15:11 contactgroups.cfg
> -rw-r--r--  1 apache apache  1055 Jan 19 15:12 contacts.cfg
> -rw-r--r--  1 apache apache  1662 Jan 19 15:14 dependencies.cfg
> -rw-r--r--  1 apache apache  2047 Jan 19 15:16 escalations.cfg
> -rw-r--r--  1 apache apache   835 Jan 19 15:28 hostgroups.cfg
> -rw-r--r--  1 apache apache  1625 Jan 19 15:19 hosts.cfg
> -rwxrwxrwx  1 apache apache    26 Jan 20 15:53 htpasswd.users
> -rw-r--r--  1 apache apache  4226 Jan 19 14:32 misccommands.cfg
> -rwx------  1 apache apache  3832 Jan 19 14:44 mknagios-sql.sh
> -rw-r--r--  1 apache apache 21149 Jan 19 17:19 nagios.cfg
> -rw-r-----  1 apache apache  3501 Jan 19 14:13 nrpe.cfg
> -rw-r--r--  1 apache apache  4960 Jan 19 14:08 nsca.cfg
> -rw-r--r--  1 apache apache  2987 Jan 20 13:21 resource.cfg
> -rw-r--r--  1 apache apache  1628 Jan 19 14:08 send_nsca.cfg
> -rw-r--r--  1 apache apache  2418 Jan 19 15:26 services.cfg
> -rw-r--r--  1 apache apache 17675 Jan 19 15:25 services.cfg.old
> -rw-r--r--  1 apache apache  1589 Jan 19 14:32 timeperiods.cfg
>  
> In this way I can login, but when I try to click on "Host detail" (for
> example) I' ve this error:
>  
>  
> Whoops!
> Error: Could not read host and service status information!
> The most common cause of this error message (especially for 
> new users), is
> the fact that Nagios is not actually running. If Nagios is indeed not
> running, this is a normal error message. It simply indicates 
> that the CGIs
> could not obtain the current status of hosts and services 
> that are being
> monitored. If you've just installed things, make sure you read the
> documentation on starting Nagios. 
> Some other things you should check in order to resolve this 
> error include: 
> Check the Nagios log file for messages relating to startup or 
> status data
> errors. 
> Always verify configuration options using the -v command-line 
> option before
> starting or restarting Nagios! 
> Make sure you've compiled the main program and the CGIs to 
> use the same
> status data storage options (i.e. text file or database). If the main
> program is storing status data in a text file and the CGIs 
> are trying to
> read status data from a database, you'll have problems. 
> Make sure you read the documentation on installing, 
> configuring and running
> Nagios thoroughly before continuing. If all else fails, try sending a
> message to one of the mailing lists. More information can be found at
> http://www.nagios.org. 
>  
>  
>  
> I need some help to resolv J.... How can I fix this error?
>  
> Tnx all 
>  
> Nicola
>  
>  
>  
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  
> DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&
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

__________ NOD32 1.1372 (20060119) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&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





More information about the Users mailing list