Page 2 of 2
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Posted: Fri Jun 24, 2016 9:59 am
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.
Then use an administrator account to login.
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Posted: Mon Jun 27, 2016 4:08 am
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.
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Posted: Mon Jun 27, 2016 9:19 am
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.
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Posted: Mon Jun 27, 2016 10:27 am
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
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Posted: Mon Jun 27, 2016 10:44 am
by lmiltchev
Your "nagiosadmin" contact is set as "read-only" in the cgi.cfg... Did you change this on purpose?
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Posted: Tue Jun 28, 2016 2:40 am
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 ?
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Posted: Tue Jun 28, 2016 9:11 am
by lmiltchev
Change:
Code: Select all
authorized_for_read_only=nagios,nagiosadmin
to:
save, exit and restart nagios.
Next, try to acknowledge a problem in Nagios XI and/or Nagios Core. Let us know if this fixed your issue.
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Posted: Tue Jun 28, 2016 10:19 am
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
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Posted: Tue Jun 28, 2016 11:35 am
by mcapra
Closing this per your request