Page 2 of 3

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

Posted: Mon Mar 30, 2015 5:31 pm
by bosecorp
#
root@nagmonus1:(03-30 18:15): /root
# getenforce
Disabled

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

Posted: Mon Mar 30, 2015 5:34 pm
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

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

Posted: Mon Mar 30, 2015 5:38 pm
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

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

Posted: Tue Mar 31, 2015 2:11 pm
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

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

Posted: Tue Mar 31, 2015 2:29 pm
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

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

Posted: Tue Mar 31, 2015 9:34 pm
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.

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

Posted: Wed Apr 01, 2015 6:04 am
by bosecorp
it happends with other accounts other than nagiosadmin

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

Posted: Wed Apr 01, 2015 2:24 pm
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:

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

Posted: Wed Apr 01, 2015 2:47 pm
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

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

Posted: Thu Apr 02, 2015 11:34 am
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.