CGI problems

Israfil Alsafa ialsafa at getcollc.com
Wed Oct 13 22:28:14 CEST 2004


Make sure the sticky bit is on /usr/local/nagios/var/rw directory.  Also, make sure that the webserver which may be called 'wwwrun' is part of the same group as nagios.  Then, it should work with no problems.

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Marc
Powell
Sent: Wednesday, October 13, 2004 2:09 PM
To: Luca Corti; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] CGI problems


----Original Message----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Luca
Corti Sent:
Wednesday, October 13, 2004 12:53 PM To:
nagios-users at lists.sourceforge.net
Subject: [Nagios-users] CGI problems

> Hello,
> 
> I have a problem with the web interface CGIs. I get the following
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.
> 
> Return from whence you came
> 
> This happens if I try to force an immediate check on a host, or if I
try to
> set anything, while I can safely "browse" and see the host and
services
> status. It seems an issue with writing to
> '/usr/local/nagios/var/rw/nagios.cmd' but:   
> 
> prw-rw----    1 nagios   nagios          0 Oct  4 22:21 nagios.cmd
> 
> 
> any ideas?

The above isn't how the documentation explains how to set up external
command functionality but will work if your web server is part of the
nagios group. Is it? Have you restarted your web server since adding it
to that group? If not, you should read the documentation on External
Commands, specifically the page about setting proper permissions.
There's nothing magical about it and it follows standard unix file
permission logic.

--
Marc




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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