Problems Starting Nagios

Danilo Perdomo danilo.perdomo at intercable.com.ve
Wed Jun 13 22:59:05 CEST 2007


I'm still getting an error, even though i have the permissions:

*drwxrwxrwx  4 nagios nagios   4096 2007-06-13 16:17 .
drwxr-xr-x 11 nagios nagios   4096 2007-05-10 11:26 ..
drwxrwxr-x  2 nagios nagios   4096 2007-05-10 11:24 archives
-rw-rw-r--  1 nagios nagios    238 2007-06-12 17:40 comments.dat
-rw-rw-r--  1 nagios nagios    239 2007-06-12 17:40 downtime.dat
-rw-r--r--  1 nagios nagios      0 2007-06-13 16:17 nagios.lock
-rwxrwxrwx  1 nagios nagios  14268 2007-06-13 16:56 nagios.log
-rwxrwxrwx  1 nagios nagios 118664 2007-06-13 16:56 objects.cache
-rw-------  1 nagios nagios 162982 2007-06-13 16:17 retention.dat
drwxrwsr-x  2 nagios nagios   4096 2007-06-13 12:08 rw

root at server:/var/log# /usr/local/nagios/bin/nagios 
/usr/local/nagios/etc/nagios.cfg

Nagios 2.7
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 01-19-2007
License: GPL

Warning: Could not get passwd entry for 'nagiosadmin'
Nagios 2.7 starting... (PID=13453)
Error: Could not create external command file 
'/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (13) -> Permission 
denied.  If this file already exists and you are sure that another copy 
of Nagios is not running, you should delete this file.
Bailing out due to errors encountered while trying to initialize the 
external command file... (PID=13453)
*
Marc Powell escribió:
>   
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Danilo Perdomo
>> Sent: Wednesday, June 13, 2007 1:58 PM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] Problems Starting Nagios
>>
>> Hi All!. Im having problems configuring Nagios 2.7, i have all the .cfg
>> files ready to get started but when i try to
>> initialize the nagios process i get this error message: "Error: Could not
>> create external command file '/usr/local/nagios/var/rw/nagios.cmd'.
>> as named pipe: (13) -> Permission denied.  If this file already exists and
>> you are sure that another copy of Nagios is not running, you should
>> delete this file."
>> Any ideas? the nagios.cmd is supposed to be created automatically but that
>> isn´t happening.
>>     
>
> The error indicates that the user you've configured nagios to run as, usually nagios, does not have permission to write to the directory you've configured to hold the external command file (/usr/local/nagios/var/rw/). You'll need to --
>
> - verify the directory you've specified exists and is owned by the nagios user
> - the nagios user can create files within that directory
> - if the file exists and isn't owned by the nagios user, stop nagios, remove it, restart nagios.
> - if the file exists and nagios isn't running, remove it then restart nagios
>
> --
> Marc
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070613/cc86462d/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
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