Nagios 2.0b1 and CVS
Luca Corti
cortez at tiscali.it
Tue Dec 21 15:59:04 CET 2004
On Tue, 2004-12-21 at 15:00 +0100, Andreas Ericsson wrote:
> Your permissions on the objects.cache and status.log files and/or the
> directories leading up to them. I would have thought that was obvious,
> given the error message you received.
On the working machine:
# ls -l /usr/local/
drwxr-sr-x 8 nagios nagios 192 Dec 17 11:29 nagios
# ls -l /usr/local/nagios/
total 3
drwxrwsr-x 2 nagios nagios 128 Dec 17 11:02 bin
drwxrwsr-x 2 nagios nagios 576 Dec 21 11:44 etc
drwxr-sr-x 2 root nagios 1936 Dec 17 11:29 libexec
drwxrwsr-x 2 nagios nagios 584 Dec 17 12:14 sbin
drwxrwsr-x 9 nagios nagios 392 Dec 17 12:14 share
drwxrwsr-x 4 nagios nagios 256 Dec 19 16:44 var
# ls -l /usr/local/nagios/var/
total 40
drwxrwsr-x 2 nagios nagios 128 Dec 19 00:00 archives
-rw-rw-r-- 1 nagios nagios 240 Dec 17 12:42 comments.dat
-rw-rw-r-- 1 nagios nagios 241 Dec 17 12:42 downtime.dat
-rw-r--r-- 1 nagios nagios 2884 Dec 19 16:44 nagios.log
-rw-r--r-- 1 nagios nagios 12144 Dec 18 21:38 objects.cache
-rw-r--r-- 1 nagios nagios 12474 Dec 19 16:44 retention.dat
drwxrwsr-x 2 nagios nagios 48 Dec 17 11:03 rw
# ls -l /usr/local/nagios/var/rw/
total 0
On the nonworking machine:
# ls -l /usr/local/
drwxrwsr-x 8 nagios nagios 192 Dec 21 15:20 nagios
# ls -l /usr/local/nagios/
total 6
drwxrwsr-x 2 nagios nagios 128 Dec 21 15:09 bin
drwxr-sr-x 2 root nagios 1080 Dec 21 15:45 etc
drwxr-sr-x 2 root nagios 1968 Dec 21 15:14 libexec
drwxrwsr-x 2 nagios nagios 552 Dec 21 15:09 sbin
drwxrwsr-x 9 nagios nagios 360 Dec 21 15:14 share
drwxrwsr-x 4 nagios nagios 224 Dec 21 15:40 var
# ls -l /usr/local/nagios/var/
total 453
drwxrwsr-x 2 nagios nagios 48 Dec 21 15:09 archives
-rw-r--r-- 1 nagios nagios 6 Dec 21 15:40 nagios.lock
-rw-r--r-- 1 nagios nagios 133 Dec 21 15:40 nagios.log
-rw-r--r-- 1 nagios nagios 452651 Dec 21 15:40 objects.cache
-rw-r--r-- 1 nagios nagios 0 Dec 21 15:40 retention.dat
drwxrwsr-x 2 nagios nagios 80 Dec 21 15:40 rw
# ls -l /usr/local/nagios/var/rw/
total 0
prw-rw---- 1 nagios nagios 0 Dec 21 15:40 nagios.cmd
> Then you obviously haven't done it in the exact same way, or it would
> have worked on both hosts. Perhaps the webserver user is running as a
> different user on either machine, or you have suexec enabled on one but
> not the other. In the end, it's with 99.9% certainty a permission issue.
apache runs on both as www-data, nagios on both as nagios. The only
difference I can think of is the prefix /usr/local/nagios-2.0 instead
of /usr/local/nagios on the nonworking host, but I've symlinked it
to /usr/local/nagios.
No ideas...
thanks
Luca
CONFIDENTIALITY NOTICE
This message and its attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately, delete this message and do not disclose the contents to any other person, do not use it for any purpose or store or copy the information in any medium.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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