new install won't start

Robert Fitzpatrick lists at webtent.net
Mon Sep 5 17:08:42 CEST 2005


On Mon, 2005-09-05 at 09:05 +0200, Arno Lehmann wrote:
> Hello,
> 
> Robert Fitzpatrick wrote:
> 
> > I am lost. I am setup Nagios 1.2 many times. Now I have setup on my SuSE
> > 9.3 box with rpm packages. All the files are there, I believe the
> > permissions are fine, the configuration file checks out OK with '-v' and
> > the log file just gives me the following. The lock file even has the
> > PID, but no such PID running after starting. Any ideas...
> > 
> > [1125887280] Nagios 1.2 starting... (PID=8639)
> > [1125887280] Finished daemonizing... (New PID=8640)
> 
> What does happen when you start Nagios in the foreground, i.e. without 
> -d switch, and strace it?

Thanks, that got it going after getting all the perms right. The only
problem I'm having is the CGI execution. I used to have Nagios running
on this same machine and have all the backup files from that install. I
have matched everything up to what is was before, but still getting a
perms error when starting nagios, but it starts fine and writes the
files it was complaining about. The init script is using 'daemon' as the
user, if I change all my nagios perms to that user, the error goes away
and it starts, but still no CGI capability. The old config had 'daemon'
also in the init script and all worked fine. I have the user 'nagios'
and group 'nagiocmd' in my nagios.cfg file.

columbus:/var/spool/nagios # ls -la
total 12
drwxrwsr-x   3 nagios nagios   4096 Sep  5 10:55 .
drwxr-xr-x  17 root   root     4096 Sep  4 17:36 ..
drwxr-sr-x   2 nagios nagiocmd 4096 Sep  5 10:54 rw
columbus:/var/spool/nagios # ls -la rw
total 8
drwxr-sr-x  2 nagios nagiocmd 4096 Sep  5 10:54 .
drwxrwsr-x  3 nagios nagios   4096 Sep  5 10:55 ..
columbus:/var/spool/nagios # /etc/rc.d/nagios start
Starting nagios touch: cannot touch `/var/log/nagios/nagios.log':
Permission denied
touch: cannot touch `/var/log/nagios/status.sav': Permission denied

done
columbus:/var/spool/nagios # ls -la
total 32
drwxrwsr-x   3 nagios nagios    4096 Sep  5 10:55 .
drwxr-xr-x  17 root   root      4096 Sep  4 17:36 ..
-rw-rw-r--   1 nagios nagios       0 Sep  5 10:55 comment.log
-rw-rw-r--   1 nagios nagios       0 Sep  5 10:55 downtime.log
-rw-r--r--   1 root   nagios       6 Sep  5 10:55 nagios.lock
-rw-r--r--   1 root   nagios     101 Sep  5 10:55 nagios.log
drwxr-sr-x   2 nagios nagiocmd  4096 Sep  5 10:55 rw
-rw-rw-r--   1 nagios nagios   11249 Sep  5 10:55 status.log
columbus:/var/spool/nagios # ls -la rw
total 8
drwxr-sr-x  2 nagios nagiocmd 4096 Sep  5 10:55 .
drwxrwsr-x  3 nagios nagios   4096 Sep  5 10:59 ..
prw-rw----  1 nagios nagiocmd    0 Sep  5 10:55 nagios.cmd



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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