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

alexus tmda at alexus.org
Tue May 31 15:14:58 CEST 2005


Before submit button

24.188.13.29 - nagios [31/May/2005:09:07:49 -0400] "GET
/nagios/cgi-bin/cmd.cgi?cmd_typ=6&host=10%2E10%2E10%2E10&service=SSH+%2D+22%
2FTCP HTTP/1.1" 200 3228
"http://nagios.alexus.org/nagios/cgi-bin/extinfo.cgi?type=2&host=10%2E10%2E1
0%2E10&service=SSH+%2D+22%2FTCP" "Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; SV1; .NET CLR 1.1.4322)"

After submit button

24.188.13.29 - - [31/May/2005:09:07:59 -0400] "POST /nagios/cgi-bin/cmd.cgi
HTTP/1.1" 200 1564
"http://nagios.alexus.org/nagios/cgi-bin/cmd.cgi?cmd_typ=6&host=10%2E10%2E10
%2E10&service=SSH+%2D+22%2FTCP" "Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; SV1; .NET CLR 1.1.4322)"



It seems like it really looses nagios user... what could be the problem??
I'm using a nagios 1.2, apache 2.x 

<VirtualHost xx.xxx.xx.xxx:80>
        ServerName nagios.xxxxx.tld
        DocumentRoot /usr/local/nagios/share/

ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">

        AllowOverride AuthConfig
        Options ExecCGI
        Order allow,deny
        Allow from all
</Directory>

Alias /nagios/ /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
        Options None
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
</Directory>
</VirtualHost>

 
What do you mean by using standard CGI? 



-----Original Message-----
From: Subhendu Ghosh [mailto:sghosh at sghosh.org] 
Sent: Tuesday, May 31, 2005 9:07 AM
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.

On Tue, 31 May 2005, alexus wrote:

>
> My nagios.cmd have enough permition to be read and written by nobody
> (apache) and nagios itself
>
> # ls -ld ~nagios/var/rw/nagios.cmd
> -rw-rw----  1 nagios  nobody  0 May 30 23:33
> /usr/local/nagios/var/rw/nagios.cmd
> # ls -ld ~nagios/var/rw/
> drwsr-sr-x  2 nobody  nagios  512 May 30 23:33 /usr/local/nagios/var/rw/
> #
>
> I loged in as "nagios"
>
> It is only when I confirm an actual manual commmand it changes myself as
> "Logged in as ?" and "Logged in as ? or Sorry, but you are not authorized
to
> commit the specified command."
>
> at all other time it shows me "Logged in as nagios"
>
>

Check the web server logs for errors - if you successfully logged in as 
nagios, you should remain logged in as such.

Are you using the standard CGI?




-------------------------------------------------------
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