strange error

Marc Powell marc at ena.com
Wed Aug 10 16:31:33 CEST 2005


Changing the permissions is only a temporary fix. The next time you
restart nagios they're just going to go back to what they were. One
correct solution is to use group permissions as you touched on although
'nogroup' might not be appropriate depending on what that's indicating
--

http://nagios.sourceforge.net/docs/1_0/commandfile.html

--
Marc

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Pete Dewell
> Sent: Wednesday, August 10, 2005 8:56 AM
> To: Frank Fuhrmann
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] strange error
> 
> Change the permissions on the nagios.cmd file to 666.
> 
> Or change the user/group that your nagios dameon is running as to
> nagios:nogroup.
> 
> I find that changing the permissions is a quick'n'dirty fix for this
> problem
> 
> Pete Dewell
> 
> Frank Fuhrmann wrote:
> > When I try to enable notification for all hosts in a particular
> > hostgroup, I get the following errors:
> >
> >
-----------------------------------------------------------------------
> > Error: Could not stat() command file
'/opt/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.
> > An error occurred while attempting to commit your command for
> > processing.
> >
-----------------------------------------------------------------------
> >
> > The command file exists:
> >
> > $ ls -l /opt/nagios/var/rw/
> > insgesamt 8
> > drwxrws---  2 nagios nogroup 4096 2005-08-10 13:26 .
> > drwxrwxr-x  4 nagios nogroup 4096 2005-08-10 13:40 ..
> > prw-rw----  1 nagios nogroup    0 2005-08-10 13:26 nagios.cmd
> >
> > Nagios is running and check_external_commands is set to 1 in
nagios.cfg.
> >
> > $ ps ax | grep nagios
> > 23160 ?        Ss     0:00 /opt/nagios/bin/nsca
> > -c /opt/nagios/etc/nsca.cfg
> > 2856 ?        Ss     0:00 /opt/nagios/bin/nagios
> > -d /opt/nagios/etc/nagios.cfg
> >
> >
> > What is the problem here?


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