NagiosXI 5.2.7 : acknowledgement doesn't work

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Post by tgriep »

Can you login to the Core interface, select a host or service from the menu and try and Acknowledge it and see if that works?
To access the core interface you would use this link.

Code: Select all

http://xxx.xxx.xxx.xxx/nagios/
Then use an administrator account to login.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Post by Frédéric GRANAT »

Hi,
I tried that but I can't acknowwledge because : "Your account does not have permissions to execute commands."
I used a user displayed as "admin" in NagiosXI.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Post by lmiltchev »

Can you run the following command and show the output?

Code: Select all

grep -i '<username>\|authentication' /usr/local/nagios/etc/cgi.cfg
where you substitute the "<username>" with the actual username.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Post by Frédéric GRANAT »

Here it is :

Code: Select all

[root@nagiosxi ~]# grep -i 'nagiosadmin\|authentication' /usr/local/nagios/etc/cgi.cfg
authorized_for_all_host_commands=nagiosadmin,stg-ldemoulin,JUrsch2,nagiosadmin,nagiosadmin
authorized_for_all_hosts=nagiosadmin,stg-ldemoulin,JUrsch2,nagiosadmin,nagios,nagiosadmin,nagiosexploit
authorized_for_all_service_commands=nagiosadmin,stg-ldemoulin,JUrsch2,nagiosadmin,nagiosadmin
authorized_for_all_services=nagiosadmin,stg-ldemoulin,JUrsch2,nagiosadmin,nagios,nagiosadmin,nagiosexploit
authorized_for_configuration_information=nagiosadmin,stg-ldemoulin,JUrsch2,nagiosadmin,nagios,nagiosadmin,nagiosexploit
authorized_for_system_commands=nagiosadmin,stg-ldemoulin,JUrsch2,nagiosadmin,nagiosadmin
authorized_for_system_information=nagiosadmin,stg-ldemoulin,JUrsch2,nagiosadmin,nagiosadmin
use_authentication=1
use_ssl_authentication=0
authorized_for_read_only=nagios,nagiosadmin
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Post by lmiltchev »

Your "nagiosadmin" contact is set as "read-only" in the cgi.cfg... Did you change this on purpose?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Post by Frédéric GRANAT »

Hi,
authorized_for_read_only=nagios,nagiosadmin
Remark : Authorized for read only is not the same than set for read only
I didn't change anything to the privileges of that user.

What do I have to do ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Post by lmiltchev »

Change:

Code: Select all

authorized_for_read_only=nagios,nagiosadmin
to:

Code: Select all

authorized_for_read_only=
save, exit and restart nagios.

Code: Select all

service nagios restart
Next, try to acknowledge a problem in Nagios XI and/or Nagios Core. Let us know if this fixed your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Post by Frédéric GRANAT »

Hi,
Thank you, the problem is solved.
It seems the migrating to NagiosXI 5 changed the privileges of nagiosadmin account.
You can close the post.

Regards,

Frederic
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Post by mcapra »

Closing this per your request
Former Nagios employee
https://www.mcapra.com/
Locked