Sorry, but you are not authorized to commit the specified co

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Sorry, but you are not authorized to commit the specified co

Post by Francesco »

Hi team, on our customer I'm facing an error when I try to schedule a service downtime (picture 1). I'm using NagiosXI (Nagios XI 2014R2.7 ). I obtain the same issue from “Service Status Detail-AdvancedMore Options-See this in Nagios Core” (picture 2). Few times ago this feature worked fine, could you help me in troubleshooting the problem?

Thank you
Francesco
You do not have the required permissions to view the files attached to this post.
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Re: Sorry, but you are not authorized to commit the specifie

Post by Francesco »

Hi,
with "nagiosadmin" user only the functionality “Service Status Detail-Advanced-More Options-See this in Nagios Core” it works.

Francesco
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Sorry, but you are not authorized to commit the specifie

Post by rkennedy »

Can you post your /usr/local/nagios/etc/cgi.cfg file for us to look at? Additionally, what user are you logged in as currently?
Former Nagios Employee
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Re: Sorry, but you are not authorized to commit the specifie

Post by Francesco »

Hi,
below the requested data:

[garufif@nagiosxxx ~]$ ll /usr/local/nagios/etc/cgi.cfg
-rw-r--r-- 1 apache nagios 1309 Jun 10 13:50 /usr/local/nagios/etc/cgi.cfg
[garufif@nagiosxxx ~]$ cat /usr/local/nagios/etc/cgi.cfg
# MODIFIED
default_statusmap_layout=6


# UNMODIFIED
action_url_target=_blank
#authorized_for_all_host_commands=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_all_hosts=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_all_service_commands=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_all_services=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_configuration_information=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_system_commands=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_system_information=nagiosadmin,nagiosadmin,armando,garufif
default_statuswrl_layout=4
escape_html_tags=1
lock_author_names=1
main_config_file=/usr/local/nagios/etc/nagios.cfg
notes_url_target=_blank
physical_html_path=/usr/local/nagios/share
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate=15
show_context_help=0
url_html_path=/nagios
use_authentication=1
use_pending_states=1
use_ssl_authentication=0
authorized_for_read_only=user1,user2,user3

On web console I'm logged with "garufif" user (Auth Level Admin).

Thank you
Francesco
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Sorry, but you are not authorized to commit the specifie

Post by lmiltchev »

Can you run the following commands and show the output?

Code: Select all

ls -lad /usr/local/nagios/var/rw
ls -la /usr/local/nagios/var/rw
grep nag /etc/group
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Re: Sorry, but you are not authorized to commit the specifie

Post by Francesco »

Hi,
below the requested data:

[garufif@nagiosxxx ~]$ ls -lad /usr/local/nagios/var/rw
drwsr-xr-x 2 nagios nagios 4096 Jun 10 17:16 /usr/local/nagios/var/rw
[garufif@nagiosxxx ~]$ ls -la /usr/local/nagios/var/rw
total 8
drwsr-xr-x 2 nagios nagios 4096 Jun 10 17:16 .
drwxrwxr-x 6 nagios nagios 4096 Jun 10 17:40 ..
prw-rw---- 1 nagios nagios 0 Jun 10 17:16 nagios.cmd
srw-rw---- 1 nagios nagios 0 Jun 10 17:16 nagios.qh
[garufif@nagiosxxx ~]$ grep nag /etc/group
nagcmd:x:1006:apache,nagios
nagios:x:1007:apache,nagios

Thank you
Francesco
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Sorry, but you are not authorized to commit the specifie

Post by lmiltchev »

The only difference I see between your permissions and mine is on the "rw" directory. Yours is not group writable. Try running:

Code: Select all

chmod g+w /usr/local/nagios/var/rw
to see if this is going to solve the issue.

Also, I noticed that all of the lines below in the cgi.cfg file are commented out...

Code: Select all

#authorized_for_all_host_commands=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_all_hosts=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_all_service_commands=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_all_services=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_configuration_information=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_system_commands=nagiosadmin,nagiosadmin,armando,garufif
#authorized_for_system_information=nagiosadmin,nagiosadmin,armando,garufif
Have you modified this file manually? Try removing the "#" from all lines and see if this is going to help.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Re: Sorry, but you are not authorized to commit the specifie

Post by Francesco »

Hi,
I have attached the picture containing the "Monitoring Engine Status".

Francesco
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Sorry, but you are not authorized to commit the specifie

Post by lmiltchev »

Please follow the instructions from my previous post and let us know if this solved the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Re: Sorry, but you are not authorized to commit the specifie

Post by Francesco »

Hi,

it works!

Thank you
Francesco
Locked