I: Autentications problems

Tedman Eng teng at dataway.com
Mon Jan 23 20:20:00 CET 2006


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





More information about the Users mailing list