new install won't start

Arno Lehmann al at its-lehmann.de
Mon Sep 5 20:22:38 CEST 2005


Hello,

Robert Fitzpatrick wrote:

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

That looks like it might be a permissions problem with the web server 
user. Remember that the CGIs run as the same user you web server runs 
as. And between distributions that usually not the same, and it might 
even change from one version of the distribution to another.

You should check what user and group your web server runs as, and 
probably add it to the nagiocmd group. There is some information in the 
manual.

Arno

> 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
> 
> 

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
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