Nagios command file not working

Marc Powell mpowell at ena.com
Wed May 7 17:32:16 CEST 2003


Ah, the sticky bit always gets me. chmod g+x /usr/local/nagios/var/rw.
The directory needs to be executable to be accessible. 

--
Marc

> -----Original Message-----
> From: Martens, Jason [mailto:jmartens at cityofevanston.org]
> Sent: Wednesday, May 07, 2003 10:11 AM
> To: Marc Powell
> 
> Yes, Apache has been restarted since changing the permissions, and is
a
> member of nagiosapache.  Here's the permissions on /usr/local/nagios
and
> /usr/local/nagios/var:
> 
> [root at testwebserver nagios]# ll -d var
> drwxrwxr-x    4 nagios   nagios       4096 May  7 10:08 var
> [root at testwebserver local]# ll -d nagios
> drwxr-xr-x    7 nagios   nagios       4096 May  5 16:41 nagios
> 
> Jason
> 
> 
> -----Original Message-----
> From: Marc Powell [mailto:mpowell at ena.com]
> Sent: Wednesday, May 07, 2003 10:05 AM
> To: Martens, Jason; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Nagios command file not working
> 
> 
> Permissions on /usr/local/nagios? Apache is a member of group
> nagiosapache and _has been restarted_ since adding it to that group?
> 
> --
> Marc
> 
> > -----Original Message-----
> > From: Martens, Jason [mailto:jmartens at cityofevanston.org]
> > Sent: Wednesday, May 07, 2003 9:45 AM
> > To: nagios-users at lists.sourceforge.net
> >
> > I've read the FAQ and set the permissions exactly as they asked, but
> for
> > some reason, nagios still can't open the file.  All of the links in
> the
> > web interface exist, but when I try to run a command, like force an
> > update on a host, I get the following error message:
> >
> > Error: Could not stat() command file
> > '/usr/local/nagios/var/rw/nagios.cmd'!
> >
> > The external command file may be missing, Nagios may not be running,
> > and/or Nagios may not be checking external commands.
> >
> > The permissions on the file are like so:
> >
> > [root at testwebserver rw]# pwd
> > /usr/local/nagios/var/rw
> > [root at testwebserver rw]# ll
> > total 0
> > prw-rw----    1 nagios   nagiosapache        0 May  6 16:59
nagios.cmd
> >
> > The permissions on the directory are like this:
> >
> > [root at testwebserver var]# ll -d rw
> > drwxrwS---    2 nagios   nagiosapache     4096 May  6 16:59 rw
> > [root at testwebserver var]#
> >
> >
> > Any thoughts?
> > Jason
> >
> >
> > -------------------------------------------------------
> > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa
Clara
> > The only event dedicated to issues related to Linux enterprise
> solutions
> > www.enterpriselinuxforum.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


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.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