Not authorized to commit

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Not authorized to commit

Post by BanditBBS »

So....I was doing some last minute testing before enabling alerts and am masqueraded as a user. I was happy with the configuration, so went to hostgroup summary, then hostgroup commands. I tried to "enable notifications for all hosts in this hostgroup" and I get the following response:

Code: Select all

Sorry, but you are not authorized to commit the specified command.
Read the section of the documentation that deals with authentication and authorization in the CGIs for more information.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Not authorized to commit

Post by slansing »

What privileges does this user have? Besides being an admin?
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Not authorized to commit

Post by BanditBBS »

He is actually not an admin, just a user with no check boxes checked. He is a member of the contact group for all the hosts in the hostgroup. Does he need one of the check boxes checked?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Not authorized to commit

Post by sreinhardt »

I may be mistaken, but I believe he would need Can (re)configure hosts and services. This should only apply to hosts\services that he is a contact for, and not everything.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Not authorized to commit

Post by BanditBBS »

My problem with that is two things:
1) I don't want to give him that
2) Why is he able to do them one at a time but not the entire hostgroup?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Not authorized to commit

Post by abrist »

That is interesting. Can he see the whole hostgroup (i.e. is he a monitoring contact on all the hosts in the hostgroup)?
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.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Not authorized to commit

Post by BanditBBS »

abrist wrote:That is interesting. Can he see the whole hostgroup (i.e. is he a monitoring contact on all the hosts in the hostgroup)?
Andy,

He is a member of the contact group that is assigned to the template that is assigned to the hosts in that hostgroup.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Not authorized to commit

Post by abrist »

BanditBBS wrote: He is a member of the contact group that is assigned to the template that is assigned to the hosts in that hostgroup.
Is he also the Very Model of a Modern Major-General? :P
Testing this now.
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.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Not authorized to commit

Post by BanditBBS »

abrist wrote:
BanditBBS wrote: He is a member of the contact group that is assigned to the template that is assigned to the hosts in that hostgroup.
Is he also the Very Model of a Modern Major-General? :P
Testing this now.
Quit trying to be funny like benhank!

Stop testing, it was my fault! There was one server that was a member of the hostgroup that he did not have access to. Took some digging, but I found it!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Not authorized to commit

Post by abrist »

:P Tested anyways. You are correct. The only way I could reproduce your issue was to remove the contact from one of the hostgroup members. Solved.
That was your "one" for the day. :P
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.
Locked