Page 1 of 1

Alarm/Notification changes not possible due to permissions

Posted: Thu Aug 05, 2021 4:53 am
by ejd4389
Hi Nagios team,

Could you please assist us in resolving an issue we are having with our current XI setup.

Currently we have a host of alarms configured which have been overtuned and are spamming some of my colleagues. I would like to adjust the thresholds of some, to modify warning/critical values, or simply delete various notifications altogether.

However it seems that all of our users share the same problem at the moment. When entering CCM we are notified to apply the configuration we are greeted with the following error resulting in us unable to apply our changes.

Image

Initially I received the message that my user permissions were not set right and to perform the following actions.

The permissions on the Nagios XI configuration scripts appear to be okay.

Config Files

The following configuration files have incorrect permissions:



/usr/local/nagios/etc/commands.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/contactgroups.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/contacts.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/contacttemplates.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostdependencies.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostescalations.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostextinfo.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hostgroups.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/hosttemplates.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/servicedependencies.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/serviceescalations.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/serviceextinfo.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/servicegroups.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/servicetemplates.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)
/usr/local/nagios/etc/timeperiods.cfg (OWNER=nagios, GROUP=users, PERMS=-rw-rw-r--)

Each of these config files needs to be writable by the apache and nagios users. To fix this problem, follow these steps:
Login to your Nagios XI server via SSH as the root user

Execute the following commands:
/usr/local/nagiosxi/scripts/reset_config_perms.sh


This was done and no problems appeared to occur when running the script, but I still received the above error. I have tried to examine the error itself and locate the source of the problem, but I do not see anything wrong.

Could you please provide a little assistance or guidance on the next course of action?

Thanks
Xavier

Re: Alarm/Notification changes not possible due to permissio

Posted: Thu Aug 05, 2021 10:10 am
by gsmith
Hi

When you say:
This was done and no problems appeared to occur when running the script, but I still received the above error. I have tried to examine the error itself and locate the source of the problem, but I do not see anything wrong.
Is that referring to a permissions error or to the original configuration (red box) errors?

Thanks

Re: Alarm/Notification changes not possible due to permissio

Posted: Fri Sep 03, 2021 6:03 am
by ejd4389
Sorry for the slow response. It was in reference to permissions error.

Re: Alarm/Notification changes not possible due to permissio

Posted: Fri Sep 03, 2021 10:16 am
by gsmith
Hi

Please send me the output of:

Code: Select all

ls -l /usr/local/nagios/etc/
Thanks!