nagios.cmd

Andreas Ericsson ae at op5.se
Mon Nov 29 21:53:50 CET 2004


Wengrzik, Andreas wrote:
> Hi!
> 
> I have some trouble with my /nagios/var/rw/nagios.cmd  file.
> After restarting nagios i have always to set the permissions to execute...
> Basic settings seems like 644 - the owner is my nagios user...
> 
> So why this file always gets to this 644 mode after restarting nagios??
> 

The +x bit is for executable files. A FIFO pipe is not one of those, so 
it doesn't need +x to work properly, since it's designed to work more or 
less like a file. One program opens it for writing in one end (in this 
case usually cmd.cgi) and writes messages for some other program 
listening in the other end (in this case nagios). A drawback to a FIFO 
pipe is the fairly small amount of data it can handle before being 
emptied (4096 bytes by default on Linux systems).

I believe you should be able to find more info in 
/usr/src/linux/Documentation. grep -irl FIFO to find it quickly.

Another (usually more efficient but somewhat trickier to handle) way of 
doing IPC (InterProcess Communication) is local unix sockets. This is 
usually preferrable for large amounts of data and is as such often used 
by databases running at localhost (like mysql.sock, for instance).

> 
> Thanks for help
> 

You're welcome.

> -regards andreas
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.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
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.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