Sorry, but you are not authorized to commit the specifie

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Sorry, but you are not authorized to commit the specifie

Post by bosecorp »

When I try to acknowledge an alert all while logged in to the Nagios web interface as nagiosadmin, I get a message which says:

Sorry, but you are not authorized to commit the specified command.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post by Box293 »

Is the user account you are logged in as a read only user?

Admin > Users > Manage Users
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

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

Post by bosecorp »

I am the admin
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

Does the command pipe exist?

Code: Select all

ls -la /usr/local/nagios/var/rw
Is cgi.cfg configured correctly?

Code: Select all

grep nagiosadmin /usr/local/nagios/etc/cgi.cfg
Have you implemented ldap/AD authentication in XI recently?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

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

Post by bosecorp »

I have not...


root@nagmonus1:(03-30 12:27): /root
# ls -la /usr/local/nagios/var/rw
total 16
drwxrwsr-x 2 nagios nagios 4096 Mar 30 12:11 .
drwxrwxr-x 6 nagios nagios 12288 Mar 30 12:27 ..
prw-rw---- 1 nagios nagios 0 Mar 30 12:11 nagios.cmd
srw-rw---- 1 nagios nagios 0 Mar 30 12:11 nagios.qh
root@nagmonus1:(03-30 12:27): /root
# ^C
root@nagmonus1:(03-30 12:27): /root
# grep nagiosadmin /usr/local/nagios/etc/cgi.cfg
authorized_for_all_host_commands=nagiosadmin,ev12190,sj820523,ww15785,dm17745,mn14579,nn71100,gp7238,bg15022,ve12189,sk1009253,pm820550,nagiosadmin,bs1006029,mm38597,kp46240,sm1007622,el872784,ab20256,dcops
authorized_for_all_hosts=nagiosadmin,ev12190,sj820523,ww15785,dm17745,mn14579,nn71100,gp7238,bg15022,ve12189,sk1009253,pm820550,nagiosadmin,bs1006029,mm38597,kp46240,sm1007622,el872784,ab20256,fusion,dcops,jc13935,pp71402,mb3565,tt12422
authorized_for_all_service_commands=nagiosadmin,ev12190,sj820523,ww15785,dm17745,mn14579,nn71100,gp7238,bg15022,ve12189,sk1009253,pm820550,nagiosadmin,bs1006029,mm38597,kp46240,sm1007622,el872784,ab20256,dcops
authorized_for_all_services=nagiosadmin,ev12190,sj820523,ww15785,dm17745,mn14579,nn71100,gp7238,bg15022,ve12189,sk1009253,pm820550,nagiosadmin,bs1006029,mm38597,kp46240,sm1007622,el872784,ab20256,fusion,dcops,jc13935,pp71402,mb3565,tt12422
authorized_for_configuration_information=nagiosadmin,ev12190,sj820523,ww15785,dm17745,mn14579,nn71100,gp7238,bg15022,ve12189,sk1009253,pm820550,nagiosadmin,bs1006029,mm38597,kp46240,sm1007622,el872784,ab20256,fusion,dcops,jc13935,pp71402,mb3565,tt12422
authorized_for_system_commands=nagiosadmin,ev12190,sj820523,ww15785,dm17745,mn14579,nn71100,gp7238,bg15022,ve12189,sk1009253,pm820550,nagiosadmin,bs1006029,mm38597,kp46240,sm1007622,el872784,ab20256,dcops,tt12422
authorized_for_system_information=nagiosadmin,ev12190,sj820523,ww15785,dm17745,mn14579,nn71100,gp7238,bg15022,ve12189,sk1009253,pm820550,nagiosadmin,bs1006029,mm38597,kp46240,sm1007622,el872784,ab20256,dcops,tt12422
root@nagmonus1:(03-30 12:27): /root
#
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 command and show us the output?

Code: Select all

grep nag /etc/group
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

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

Post by bosecorp »

# grep nag /etc/group
nagcmd:x:59016:apache,nagios
nagios:x:59991:nagios,apache
root@nagmonus1:(03-30 15:07): /root
#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

Can you submit commands from the nagios core interface?

Code: Select all

http://<server ip>/nagios/
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

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

Post by bosecorp »

No, same result
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post by Box293 »

Is SELinux enabled?

Code: Select all

getenforce
If is is, disable it:

Code: Select all

sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
setenforce 0
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked