Nagios: External directory permission issue.
Jon Angliss
jon at netdork.net
Sat May 2 23:34:20 CEST 2009
On Sat, 2 May 2009 10:46:52 +0530, Jimmyboy <jimmyjose2980 at gmail.com>
wrote:
>Hi,
>
>After installing Nagios 3.0.6, I login to the web interface using
>http://localhost/nagios.
>When I attempt to restart the Nagios service using 'Process Info', the error
>thrown is as seen below.
>
>=-=-=
>Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for
>update!
>
>The permissions on the external command file and/or directory may be
>incorrect. Read the FAQs on how to setup proper permissions.
>
>An error occured while attempting to commit your command for processing.
>
>*Return from whence you came
>*=-=-=
>
>I checked the directory permissions and here is the output.
>
>*Output of 'ls -al /usr/local/nagios/var'*
>drwxrwsr-x 2 nagios nagcmd 4096 2009-04-18 07:25 rw
>
>*Output of 'ls -al /usr/local/nagios/var/rw'*
>prw-rw---- 1 nagios nagcmd 14049 2009-04-18 07:25 nagios.cmd
>=-=-=
>
>Any idea what else need to be done?
What user is your web server running as? Going to assume something
like www-data, or apache. In either case, the above permissions
wouldn't allow for access. You could add your webserver user into the
nagcmd group to get permissions.
--
Jonathan Angliss
<jon at netdork.net>
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
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