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

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


I already have that

 

# 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

#

 

 

  _____  

From: François Laupretre [mailto:francois.laupretre-prestataire at calyon.com] 
Sent: Tuesday, May 31, 2005 9:18 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.

 

Your problem is not related to the file permissions. As Mr Gosh told you,
you must be a declared contact in order to issue a command against a given
object. Or you must be listed in the authorized_for_all_*_commands parameter
in cgi.cfg.

If you really want nagios to issue any command, put the following lines in
your cgi.cfg : 

authorized_for_all_service_commands=nagios 
authorized_for_all_host_commands=nagios 
authorized_for_system_commands=nagios 

> -----Original Message----- 
> From: alexus [mailto:tmda at alexus.org] 
> Sent: Tuesday, May 31, 2005 2:47 PM 
> To: 'Subhendu Ghosh' 
> 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. 
> 
> 
> 
> 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" 
> 
> 
> 
>  
> -----Original Message----- 
> From: Subhendu Ghosh [mailto:sghosh at sghosh.org] 
> Sent: Monday, May 30, 2005 11:56 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. 
> 
> 
> 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 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050531/5e0cca3a/attachment.html>


More information about the Users mailing list