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

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

Post by bosecorp »

#
root@nagmonus1:(03-30 18:15): /root
# getenforce
Disabled
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 »

What is the output of this?

Code: Select all

now_epoch=$(eval date +%s); printf "[$now_epoch] ADD_HOST_COMMENT;centos03;1;nagiosadmin;This host does funny stuff\n" > /usr/local/nagios/var/rw/nagios.cmd
This should also be logged in /usr/local/nagios/var/nagios.log

Code: Select all

grep centos03 /usr/local/nagios/var/nagios.log
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 »

root@nagmonus1:(03-30 18:15): /root
# now_epoch=$(eval date +%s); printf "[$now_epoch] ADD_HOST_COMMENT;centos03;1;nagiosadmin;This host does funny stuff\n" > /usr/local/nagios/var/rw/nagios.cmd
You have mail in /var/spool/mail/root
root@nagmonus1:(03-30 18:15): /root
# grep centos03 /usr/local/nagios/var/nagios.log
[1427755084] Error: External command failed -> ADD_HOST_COMMENT;centos03;1;nagiosadmin;This host does funny stuff
root@nagmonus1:(03-30 18:15): /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 »

We checked the permissions on the "rw" directory's contents, but we didn't check the permissions of the directory itself. Can you run the following command and show us the output?

Code: Select all

ls -ld /usr/local/nagios/var/rw
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 »

root@nagmonus1:(03-31 15:28): /root
# ls -ld /usr/local/nagios/var/rw
drwxrwsr-x 2 nagios nagios 4096 Mar 31 11:18 /usr/local/nagios/var/rw
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 »

bosecorp wrote:I am the admin
Are you doing this as the user nagiosadmin or as another user who is an admin?

If you have not tested as the user nagiosadmin, can you please test and let us know if that causes the same problem.
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 »

it happends with other accounts other than nagiosadmin
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post by tgriep »

In Nagios XI, go to Admin, Manage Users, edit one of the users that are having problems and post back the settings for that user.
We need to see the following settings are selected or not.

Code: Select all

Authorization Level:
Can see all hosts and services :
Can (re)configure hosts and services :
Can control all hosts and services :
Can see/control monitoring engine :
Can access advanced features:
Has read-only access:
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 »

Authorization Level:Admin
Can see all hosts and services :Yes
Can (re)configure hosts and services :Yes
Can control all hosts and services :Yes
Can see/control monitoring engine :Yes
Can access advanced features:Yes
Has read-only access:No
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

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

Post by jdalrymple »

bosecorp wrote: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.
it happends with other accounts other than nagiosadmin
Does this mean that you've tried it as both nagiosadmin and also as another user specified as admin. For the purpose of troubleshooting we'll need you to do EVERYTHING as nagiosadmin, then later if we get that working we'll troubleshoot other users.

Can you send other commands into the system? Maybe schedule a downtime or something?

Again - please - do everything consistently as nagiosadmin so that we can properly diagnose. Verify the user you're logged on as in the upper right-hand corner of the screen.
Locked