Problem with External Command File

Kaplan, Andrew H. AHKAPLAN at PARTNERS.ORG
Wed Jan 3 21:52:54 CET 2007


Can you clarify the "named-pipe"? Thanks. 

 

________________________________

From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Petersen, Mark
Sent: Wednesday, January 03, 2007 3:42 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Problem with External Command File

 

I'm pretty sure the webserver (apache, nobody, www-data, or whatever you setup)
needs write permissions for that file.  It may also need to be a named pipe.

 

________________________________

From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew
H.
Sent: Wednesday, January 03, 2007 2:29 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Problem with External Command File

 

I am running Nagios 2.6 and whenever I want to "schedule a check of all
services...", I get the following error message:

 

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

An error occurred while attempting to commit your command for processing.

 

I first went to the nagios.cfg file and confirmed that external commands were
activated, and that the path of the nagios.cmd file,

/usr/local/nagios/var/rw/nagios.cmd was uncommented and correct.

 

I checked the permissions on the nagios directory and its subdirectories. The
nagios directory is owned by nagios:nagios, and the

permissions on the directory are 777. This is also true for child directories
under the main one. The ../nagios/var/rw directory has the

same owners and permissions, while the nagios.cmd file is owned by nagios:nagios
with the permissions prw-rw----.

 

Has anyone seen this, and can tell me what I need to do to correct it? Thanks. 

THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY
FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL
AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER
USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR
ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS
INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND
PROPERLY DISPOSE OF THIS INFORMATION. 





THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL.  ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED.  IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070103/5fec1de4/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- 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