Sorry, but you are not authorized to commit the specifie
Re: Sorry, but you are not authorized to commit the specifie
#
root@nagmonus1:(03-30 18:15): /root
# getenforce
Disabled
root@nagmonus1:(03-30 18:15): /root
# getenforce
Disabled
- 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
What is the output of this?
This should also be logged in /usr/local/nagios/var/nagios.log
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.cmdCode: Select all
grep centos03 /usr/local/nagios/var/nagios.logAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Sorry, but you are not authorized to commit the specifie
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
# 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
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/rwBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Sorry, but you are not authorized to commit the specifie
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
# ls -ld /usr/local/nagios/var/rw
drwxrwsr-x 2 nagios nagios 4096 Mar 31 11:18 /usr/local/nagios/var/rw
- 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
Are you doing this as the user nagiosadmin or as another user who is an admin?bosecorp wrote:I am the 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.
Re: Sorry, but you are not authorized to commit the specifie
it happends with other accounts other than nagiosadmin
Re: Sorry, but you are not authorized to commit the specifie
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.
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!
Re: Sorry, but you are not authorized to commit the specifie
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
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
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.
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.it happends with other accounts other than nagiosadmin
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.