[Nagios-users] nagios.cmd permission issue
Hi, New to Nagios... Got everything pretty much running, except when I try to modify things using the web interface, I get this error: 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 occurred while attempting to commit your command for processing. This is clearly a permission issue as when I manually change the permissions of the /rw/nagios.cmd to 777 for example, it works fine. When the service is restarted and the pipe is recreated though, the permissions are re-set. I am running the nginx web server, not apache. SELinux is disabled. The rw directory has 777 permissions and is owned by the nagios user and group. The Nginx server runs under a different user / group and this could be the issue. However, I tried to set up the rw directory with that user and group and still no luck. Help? -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
Set the sticky bit on the directory. Rutger On Sun, Oct 3, 2010 at 8:55 AM, Ilan Berkner iberk...@gmail.com wrote: Hi, New to Nagios... Got everything pretty much running, except when I try to modify things using the web interface, I get this error: 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 occurred while attempting to commit your command for processing. This is clearly a permission issue as when I manually change the permissions of the /rw/nagios.cmd to 777 for example, it works fine. When the service is restarted and the pipe is recreated though, the permissions are re-set. I am running the nginx web server, not apache. SELinux is disabled. The rw directory has 777 permissions and is owned by the nagios user and group. The Nginx server runs under a different user / group and this could be the issue. However, I tried to set up the rw directory with that user and group and still no luck. Help? -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Rutger Blom Luzernvägen 14 227 38 LUND Sweden Tel. +46 763 46 99 44 www.rutgerblom.com http://delicious.com/rbml77 http://www.facebook.com/rutgerblom http://foursquare.com/user/rutgerblom http://www.linkedin.com/in/rutgerblom http://picasaweb.google.com/rutger.blom http://twitter.com/rutgerblom -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? On Sun, Oct 3, 2010 at 5:03 AM, Rutger Blom rut...@blokje.net wrote: Set the sticky bit on the directory. Rutger On Sun, Oct 3, 2010 at 8:55 AM, Ilan Berkner iberk...@gmail.com wrote: Hi, New to Nagios... Got everything pretty much running, except when I try to modify things using the web interface, I get this error: 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 occurred while attempting to commit your command for processing. This is clearly a permission issue as when I manually change the permissions of the /rw/nagios.cmd to 777 for example, it works fine. When the service is restarted and the pipe is recreated though, the permissions are re-set. I am running the nginx web server, not apache. SELinux is disabled. The rw directory has 777 permissions and is owned by the nagios user and group. The Nginx server runs under a different user / group and this could be the issue. However, I tried to set up the rw directory with that user and group and still no luck. Help? -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Rutger Blom Luzernvägen 14 227 38 LUND Sweden Tel. +46 763 46 99 44 www.rutgerblom.com http://delicious.com/rbml77 http://www.facebook.com/rutgerblom http://foursquare.com/user/rutgerblom http://www.linkedin.com/in/rutgerblom http://picasaweb.google.com/rutger.blom http://twitter.com/rutgerblom -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote: Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? Your web server is trying to write to the pipe so it's whatever user your web server is configured to run as. -- Marc -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
Yep, there's no question that's what it is, but I've set it up so that the webserver user is part of the group that owns the rw directory with the sticky bit set, but no luck (yet) On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell li...@xodus.org wrote: On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote: Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? Your web server is trying to write to the pipe so it's whatever user your web server is configured to run as. -- Marc -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
I followed the instructions in commandfile.html documentation to the letter, its still not working. Its clearly a permissions issue between the user that the web server is running as and the user that nagios is running is. I did create a nagcmd group where both users are a part of and set up the sticky bit, but no luck. I am running Nginx web server, not Apache so maybe there's some kind of configuration issue that has to be dealt with, does anyone have any experience with Nginx, Nagios and the command file? Thanks On Sun, Oct 3, 2010 at 9:57 AM, Martin Melin mme...@gmail.com wrote: Have a look at this page from the official docs: http://nagios.sourceforge.net/docs/2_0/commandfile.html http://nagios.sourceforge.net/docs/2_0/commandfile.htmlDo as it says and things will work. Re: your second question, just look in nagios.conf. http://nagios.sourceforge.net/docs/2_0/commandfile.htmlBest regards, Martin Melin On Sun, Oct 3, 2010 at 3:48 PM, Ilan Berkner iberk...@gmail.com wrote: Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? On Sun, Oct 3, 2010 at 5:03 AM, Rutger Blom rut...@blokje.net wrote: Set the sticky bit on the directory. Rutger On Sun, Oct 3, 2010 at 8:55 AM, Ilan Berkner iberk...@gmail.com wrote: Hi, New to Nagios... Got everything pretty much running, except when I try to modify things using the web interface, I get this error: 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 occurred while attempting to commit your command for processing. This is clearly a permission issue as when I manually change the permissions of the /rw/nagios.cmd to 777 for example, it works fine. When the service is restarted and the pipe is recreated though, the permissions are re-set. I am running the nginx web server, not apache. SELinux is disabled. The rw directory has 777 permissions and is owned by the nagios user and group. The Nginx server runs under a different user / group and this could be the issue. However, I tried to set up the rw directory with that user and group and still no luck. Help? -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Rutger Blom Luzernvägen 14 227 38 LUND Sweden Tel. +46 763 46 99 44 www.rutgerblom.com http://delicious.com/rbml77 http://www.facebook.com/rutgerblom http://foursquare.com/user/rutgerblom http://www.linkedin.com/in/rutgerblom http://picasaweb.google.com/rutger.blom http://twitter.com/rutgerblom -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users
Re: [Nagios-users] nagios.cmd permission issue
I've reconfigured nagios to run as the same user and group as that of the web server. Still getting this command file issue. Any other suggestions? Many thanks... On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner iberk...@gmail.com wrote: Yep, there's no question that's what it is, but I've set it up so that the webserver user is part of the group that owns the rw directory with the sticky bit set, but no luck (yet) On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell li...@xodus.org wrote: On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote: Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? Your web server is trying to write to the pipe so it's whatever user your web server is configured to run as. -- Marc -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
Lets start here... What is your nginx server running as? You can specify it or it takes the owner that starts it depending how you have it configured. So if it's not specified, do a 'ps aux|grep nginx' and check it there. What is your nagios server running as? I am going to guess 'nagios:nagios' but please confirm. Can you give us the 'ls -la' of your rw directory? Thanks, Charlie On Oct 3, 2010, at 12:35 PM, Ilan Berkner wrote: I've reconfigured nagios to run as the same user and group as that of the web server. Still getting this command file issue. Any other suggestions? Many thanks... On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner iberk...@gmail.com wrote: Yep, there's no question that's what it is, but I've set it up so that the webserver user is part of the group that owns the rw directory with the sticky bit set, but no luck (yet) On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell li...@xodus.org wrote: On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote: Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? Your web server is trying to write to the pipe so it's whatever user your web server is configured to run as. -- Marc -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@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 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
Who's the owner of the pipe? On 3 okt 2010, at 19.25, Ilan Berkner iberk...@gmail.com wrote: Yep, there's no question that's what it is, but I've set it up so that the webserver user is part of the group that owns the rw directory with the sticky bit set, but no luck (yet) On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell li...@xodus.org wrote: On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote: Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? Your web server is trying to write to the pipe so it's whatever user your web server is configured to run as. -- Marc -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
Unfortunately, I did the same and am still getting the same error. From: Ilan Berkner [mailto:iberk...@gmail.com] Sent: Sunday, October 03, 2010 1:35 PM To: Nagios Users List Subject: Re: [Nagios-users] nagios.cmd permission issue I've reconfigured nagios to run as the same user and group as that of the web server. Still getting this command file issue. Any other suggestions? Many thanks... On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner iberk...@gmail.com wrote: Yep, there's no question that's what it is, but I've set it up so that the webserver user is part of the group that owns the rw directory with the sticky bit set, but no luck (yet) On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell li...@xodus.org wrote: On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote: Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? Your web server is trying to write to the pipe so it's whatever user your web server is configured to run as. -- Marc -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
I have a fairly complicated setup at work where I don't have the option of changing groups around system-wide so what I do is edit the startup file instead. You could edit the start() function to have an explicit chgrp on the command-pipe to whatever group you need for your setup (after the daemon has been started of course so the command-pipe file exists). We use chgrp apache /var/log/nagios/rw/nagios.cmd. It's a bit of a kludge but it works! Another possibility is that your setup is just fine but the nagcmd group (of which both the apache and nagios users should be a member) was created after your apache process was already running. In this case you just need to restart apache so it can pick up its new group permissions. -f On Sun, 3 Oct 2010, Ilan Berkner wrote: Date: Sun, 3 Oct 2010 02:55:25 -0400 From: Ilan Berkner iberk...@gmail.com Reply-To: Nagios Users List nagios-users@lists.sourceforge.net To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] nagios.cmd permission issue Hi, New to Nagios... Got everything pretty much running, except when I try to modify things using the web interface, I get this error: 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 occurred while attempting to commit your command for processing. This is clearly a permission issue as when I manually change the permissions of the /rw/nagios.cmd to 777 for example, it works fine. When the service is restarted and the pipe is recreated though, the permissions are re-set. I am running the nginx web server, not apache. SELinux is disabled. The rw directory has 777 permissions and is owned by the nagios user and group. The Nginx server runs under a different user / group and this could be the issue. However, I tried to set up the rw directory with that user and group and still no luck. Help? -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
Have you verified that the user you log in with into the Nagios CGI has permission to execute commands? Rutger On 3 okt 2010, at 21.25, Robert Wolfe robert.wo...@robertwolfe.org wrote: Unfortunately, I did the same and am still getting the same error. *From:* Ilan Berkner [mailto:iberk...@gmail.com] *Sent:* Sunday, October 03, 2010 1:35 PM *To:* Nagios Users List *Subject:* Re: [Nagios-users] nagios.cmd permission issue I've reconfigured nagios to run as the same user and group as that of the web server. Still getting this command file issue. Any other suggestions? Many thanks... On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner iberk...@gmail.com wrote: Yep, there's no question that's what it is, but I've set it up so that the webserver user is part of the group that owns the rw directory with the sticky bit set, but no luck (yet) On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell li...@xodus.org wrote: On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote: Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? Your web server is trying to write to the pipe so it's whatever user your web server is configured to run as. -- Marc -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@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 -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d ___ Nagios-users mailing list Nagios-users@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 -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios.cmd permission issue
Hi All, Turns out that the FCGI wrapper process was running under a different user than both the web server and nagios and although CGI scripts were running, that may have contributed to the problem. I also noticed that there were other nagios processes running at the same time that should have been previously killed but were not so that may also have been a contributing factor. I've now normalized all of the web processes with the same user: 1. Nginx 2. PHP 3. FCGIWrapper 4. Nagios service and the problem seems to be resolved. Thanks to everyone for their support, suggestions and help. On Sun, Oct 3, 2010 at 4:30 PM, Rutger Blom rut...@blokje.net wrote: Have you verified that the user you log in with into the Nagios CGI has permission to execute commands? Rutger On 3 okt 2010, at 21.25, Robert Wolfe robert.wo...@robertwolfe.org wrote: Unfortunately, I did the same and am still getting the same error. *From:* Ilan Berkner [mailto:iberk...@gmail.com] *Sent:* Sunday, October 03, 2010 1:35 PM *To:* Nagios Users List *Subject:* Re: [Nagios-users] nagios.cmd permission issue I've reconfigured nagios to run as the same user and group as that of the web server. Still getting this command file issue. Any other suggestions? Many thanks... On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner iberk...@gmail.com iberk...@gmail.com wrote: Yep, there's no question that's what it is, but I've set it up so that the webserver user is part of the group that owns the rw directory with the sticky bit set, but no luck (yet) On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell li...@xodus.org li...@xodus.org wrote: On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote: Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? Your web server is trying to write to the pipe so it's whatever user your web server is configured to run as. -- Marc -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.netNagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users 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 -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d ___ Nagios-users mailing list Nagios-users@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 -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d ___ Nagios-users mailing list Nagios-users@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 -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d___ Nagios-users mailing list Nagios-users@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