I: Autentications problems

Nicola Agnelli nicola.agnelli at spiderwall.com
Mon Jan 23 15:59:48 CET 2006


 

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: 

1.	Check the Nagios log file for messages relating to startup or status
data errors. 
2.	Always verify configuration options using the -v command-line option
before starting or restarting Nagios! 
3.	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> http://www.nagios.org. 

 

 

 

I need some help to resolv :-).. How can I fix this error?

 

Tnx all 

 

Nicola

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060123/8e7fbad2/attachment.html>


More information about the Users mailing list