Logged in as ? or Sorry, but you are not authorized to commit the specified command.
alexus
tmda at alexus.org
Mon May 30 02:50:07 CEST 2005
Dan,
I used source to compile nagios, so I created a .htaccess file as you said
in mine ~nagios/share used to be just in ~nagios/sbin/
d# grep authorized_for cgi.cfg
authorized_for_system_information=nagios
authorized_for_configuration_information=nagios
authorized_for_system_commands=nagios
authorized_for_all_services=nagios
authorized_for_all_hosts=nagios
authorized_for_all_service_commands=nagios
authorized_for_all_host_commands=nagios
d#
so ~nagios/etc/cgi.cfg part looks ok too.
all files have nagios:nagios as their ownership/group..
which permitino are you refering too?
~nagios have 755 nagios:nobody
Maybe that?
_____
From: Dan Davis [mailto:hokie99cpe at gmail.com]
Sent: Sunday, May 29, 2005 8:26 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.
On 5/29/05, alexus <tmda at alexus.org> wrote:
I have setup a authentication, if I wouldn't set it up then I wouldn't see
"Logged in as nagios" once I go to my nagios page it doesn't ask me for
username or password, but as soon as I click anything under "Monitoring" its
asking me for username and password, so I enter my username and password and
that's when on the top it says that "Logged in as nagios" but as soon as I
manually go and force service to be checked next time or any other manual
stuff I get "Logged in as?" and "Sorry, but you are not authorized to commit
the specified command."
Ah... you need to also setup authentication on the nagios html directory...
which, if you installed via RPM, should be in /usr/share/nagios. That will
cause you to get authenticated first thing when you access the nagios main
page. After that, if things still don't work, make sure your user (nagios in
this case) has permissions to use commands, etc. as defined in cgi.cfg.
Also, as Tonni stated, be sure the permissions on your cmd file are correct
to allow your web server process to write to the file.
-Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050529/cc8fc247/attachment.html>
More information about the Users
mailing list