Logged in as ? or Sorry, but you are not authorized to commit the specified command.

Subhendu Ghosh sghosh at sghosh.org
Tue May 31 05:56:21 CEST 2005


file permissions should allow the web server process to write and nagios 
process to read.

But before the data i actually written to the cmd file, the authentication 
code checks to see if you are allowed to do so.  If you are logged in as 
"?" then by default you are not allowed to send commands.

If you want non-contacts to send commands, edit cgi.cfg and updated 
"authorized_for_*_commands"

You have to login and authenticate in the web interface before sending 
commands.

On Mon, 30 May 2005, alexus wrote:

> Once again..
>
>
>
> My ~nagios/var/rw/nagios.cmd
>
>
>
> I even tried with 777. didn't help.
>
>
>
> What else I can try to get it to work? Is there a way to run nagios in debug
> mode where I can see what is happening and where the problem is?
>
>
>
> I even tried to use user nobody to write and read from/to that file..
>
>
>
>
>
>  _____
>
> From: Dan Davis [mailto:hokie99cpe at gmail.com]
> Sent: Sunday, May 29, 2005 9:44 PM
> To: alexus
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Logged in as ? or Sorry, but you are not
> authorized to commit the specified command.
>
>
>
> all files have nagios:nagios as their ownership/group..
>
> ~nagios have 755 nagios:nobody
>
> Maybe that?
>
>
> Everything else looks ok... and the nagios home directory is not the problem
> in and of itself... but the nagios.cmd file needs to be writable by your web
> server user. Be sure of that and you should be good to go.
>
> -Dan
>
>

-- 



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
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