Page 1 of 1

Acknowledgment doesn't work

Posted: Tue Apr 17, 2018 5:51 am
by Frédéric GRANAT
Hi,
Acknowledgment doesn't work since yesterday.
I already created a topic about that in 2016.
The problem came from the right of user nagiosadmin.

If I ran the following command (the same proposed by the Nagioxi support) :

Code: Select all

authorized_for_read_only=nagiosadmin,nagios
[root@nagiosxi ~]# grep -i 'nagiosadmin\|authentication' /usr/local/nagios/etc/cgi.cfg
authorized_for_all_host_commands=nagiosadmin,nagiosadmin,fgay,JUrsch2,nagiosadmin
authorized_for_all_hosts=nagiosadmin,nagiosadmin,fgay,JUrsch2,nagiosexploit,nagiosadmin,nagios
authorized_for_all_service_commands=nagiosadmin,nagiosadmin,fgay,JUrsch2,nagiosadmin
authorized_for_all_services=nagiosadmin,nagiosadmin,fgay,JUrsch2,nagiosexploit,nagiosadmin,nagios
authorized_for_configuration_information=nagiosadmin,nagiosadmin,fgay,JUrsch2,nagiosexploit,nagiosadmin,nagios
authorized_for_system_commands=nagiosadmin,nagiosadmin,fgay,JUrsch2,nagiosadmin
authorized_for_system_information=nagiosadmin,nagiosadmin,fgay,JUrsch2,nagiosadmin
use_authentication=1
use_ssl_authentication=0
authorized_for_read_only=nagiosadmin,nagios
I saw that authorized_for_read_only=nagiosadmin,nagios whereas (according to the solution proposed by the NagiosXI support in 2016) it should be empty

I performed the following operations (according to the solution proposed by the NagiosXI support in 2016) :
I set authorized_for_read_only=
service nagios restart

Now the acknowledgement works.

Do you have any explanation about that ?
Particularly, Is it possible that the value authorized_for_read_only changed in the file /usr/local/nagios/etc/cgi.cfg whereas no change occured ?

Rgds,

Frederic

Re: Acknowledgment doesn't work

Posted: Tue Apr 17, 2018 8:46 am
by scottwilkerson
The only place that file is edited is when setting permissions for users in Admin -> Manage Users.

You shouldn't be able to mark read only and admin at the same time.

However it is possible the the file was manually edited by someone.

Re: Acknowledgment doesn't work

Posted: Thu Apr 19, 2018 1:57 am
by Frédéric GRANAT
Hi,
Is there another explanation about the fact that acknowledgement doesn't work anymore ?

Rgds,

Frederic

Re: Acknowledgment doesn't work

Posted: Thu Apr 19, 2018 7:56 am
by scottwilkerson
Frédéric GRANAT wrote:Hi,
Is there another explanation about the fact that acknowledgement doesn't work anymore ?

Rgds,

Frederic
If your previous message you said
Frédéric GRANAT wrote:I performed the following operations (according to the solution proposed by the NagiosXI support in 2016) :
I set authorized_for_read_only=
service nagios restart

Now the acknowledgement works.
Did something switch these back again?