R: External Commands via CGI interface

Marco Borsani m.borsani at it.net
Wed Mar 16 10:16:08 CET 2005


Well,
I submit commands with "marco" user, that is inside of nagios group:
# id marco
uid=101(marco) gid=200(nagios) groups=20(users)

Moreover I add rx permissions to "other" for rw directory, but this should
be unusefull.

Marco

-}-----Messaggio originale-----
-}Da: nagios-users-admin at lists.sourceforge.net
-}[mailto:nagios-users-admin at lists.sourceforge.net]Per conto di Peter J.
-}Holzer
-}Inviato: mercoledi 16 marzo 2005 9.56
-}A: nagios-users
-}Oggetto: Re: [Nagios-users] External Commands via CGI interface
-}
-}
-}On 2005-03-16 09:21:45 +0100, Marco Borsani wrote:
-}> I never have used before ext commands via CGI, until today.
-}>
-}> Now, I' like to use some of them, like :
-}> - Add a new comment
-}> - Disable/enable notifications
-}> - ....
-}> but, when I try to use them , I receive this error message:
-}
-}The first thing to do when you receive an error message is to paste it
-}into google. Chances are high that you are not the first one who
-}received it. In this case you don't even have to click on any of the
-}links, because the solution is right in the synopsis of google's first
-}hit.
-}
-}
-}> Error: Could not stat() command file
-}'/usr/local/nagios/var/rw/nagios.cmd'!
-}> The external command file may be missing, Nagios may not be
-}running, and/or
-}> Nagios may not be checking external commands.
-}
-}This error message should be changed to include the most common cause:
-}The CGI script has no permission to stat the file.
-}
-}> An error occurred while attempting to commit your command for
-}processing.
-}>
-}> File nagios.cmd has these permissions:
-}> prw-rw----   1 nagios     nagios           0 Mar 16 09:18 nagios.cmd
-}
-}Hint: Which user and group are your CGI scripts running as?
-}
-}	hp
-}
-}--
-}   _  | Peter J. Holzer \Beta means "we're down to fixing
-}misspelled comments in
-}|_|_) | Sysadmin WSR     \the source, and you might run into a
-}memory leak if
-}| |   | hjp at wsr.ac.at     \you enable embedded haskell as a
-}loadable module and
-}__/   | http://www.hjp.at/ \write your plugins upside-down in
-}lisp". --ae at op5.se
-}



-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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