Hi All,<div><br></div><div>I'm setting up Nagios to run thorugh Nginx. I have the CGI wrapper working (yey). However, some nagios web based functions require access to a nagios command file (a pipe) in the nagios /var/rw directory.</div>
<div><br></div><div>When the nagios service starts, it creates a "nagios.cmd" pipe file in the rw directory.</div><div><br></div><div>When trying to access that web file through the web interface, there's a permission issue. However, if I set the nagios.cmd file to have 777 permissions, it works fine. </div>
<div><br></div><div>The problem is that when the nagios service is restarted, the nagios.cmd file is recreated and no longer has the 777 permissions.</div><div><br></div><div>I am running the nagios service and the Nginx web server under the same user and group.</div>
<div><br></div><div>The /nagios/ directory is accessed through an alias configuration, so maybe that has something to do with it?</div><div><br></div><div>Regardless, for some reason, the user that Nginx is trying to access the nagios.cmd file is being denied.</div>
<div><br></div><div>Is anyone familiar with this particular issue? Just thought I'd ask this group. I have posted this question at the Nagios group and was told to look at: </div><div><a href="http://nagios.sourceforge.net/docs/2_0/commandfile.html">http://nagios.sourceforge.net/docs/2_0/commandfile.html</a></div>
<div><br></div><div>Which I followed to a tee, but no luck.</div><div><br></div><div>Just thought I'd ask this group... :-)</div><div><br></div><div>Thanks</div>